oci 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
|
@@ -143,10 +143,10 @@ module OCI
|
|
143
143
|
# check to ensure the input is an array given that the the attribute
|
144
144
|
# is documented as an array but the input is not
|
145
145
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
-
self.
|
146
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
147
147
|
end
|
148
148
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
-
self.
|
149
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
150
150
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
151
151
|
end
|
152
152
|
|
@@ -164,7 +164,7 @@ module OCI
|
|
164
164
|
def to_hash
|
165
165
|
hash = {}
|
166
166
|
self.class.attribute_map.each_pair do |attr, param|
|
167
|
-
value =
|
167
|
+
value = public_method(attr).call
|
168
168
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
169
169
|
hash[param] = _to_hash(value)
|
170
170
|
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
|
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_method(attr).call
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
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
|
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_method(attr).call
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
end
|
@@ -1,14 +1,31 @@
|
|
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::CaptureConsoleHistoryDetails
|
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
|
+
|
7
15
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
16
|
#
|
9
17
|
# @return [String]
|
10
18
|
attr_accessor :display_name
|
11
19
|
|
20
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
21
|
+
# predefined name, type, or namespace. For more information, see
|
22
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
23
|
+
#
|
24
|
+
# Example: `{\"Department\": \"Finance\"}`
|
25
|
+
#
|
26
|
+
# @return [Hash<String, String>]
|
27
|
+
attr_accessor :freeform_tags
|
28
|
+
|
12
29
|
# The OCID of the instance to get the console history from.
|
13
30
|
# @return [String]
|
14
31
|
attr_accessor :instance_id
|
@@ -22,10 +39,18 @@ module OCI
|
|
22
39
|
# convert string to symbol for hash key
|
23
40
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
24
41
|
|
42
|
+
if attributes[:'definedTags']
|
43
|
+
self.defined_tags = attributes[:'definedTags']
|
44
|
+
end
|
45
|
+
|
25
46
|
if attributes[:'displayName']
|
26
47
|
self.display_name = attributes[:'displayName']
|
27
48
|
end
|
28
49
|
|
50
|
+
if attributes[:'freeformTags']
|
51
|
+
self.freeform_tags = attributes[:'freeformTags']
|
52
|
+
end
|
53
|
+
|
29
54
|
if attributes[:'instanceId']
|
30
55
|
self.instance_id = attributes[:'instanceId']
|
31
56
|
end
|
@@ -37,7 +62,9 @@ module OCI
|
|
37
62
|
def ==(other_object)
|
38
63
|
return true if self.equal?(other_object)
|
39
64
|
self.class == other_object.class &&
|
65
|
+
defined_tags == other_object.defined_tags &&
|
40
66
|
display_name == other_object.display_name &&
|
67
|
+
freeform_tags == other_object.freeform_tags &&
|
41
68
|
instance_id == other_object.instance_id
|
42
69
|
end
|
43
70
|
|
@@ -50,7 +77,7 @@ module OCI
|
|
50
77
|
# Calculates hash code according to all attributes.
|
51
78
|
# @return [Fixnum] Hash code
|
52
79
|
def hash
|
53
|
-
[display_name, instance_id].hash
|
80
|
+
[defined_tags, display_name, freeform_tags, instance_id].hash
|
54
81
|
end
|
55
82
|
|
56
83
|
# Builds the object from hash
|
@@ -63,10 +90,10 @@ module OCI
|
|
63
90
|
# check to ensure the input is an array given that the the attribute
|
64
91
|
# is documented as an array but the input is not
|
65
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
66
|
-
self.
|
93
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
67
94
|
end
|
68
95
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
69
|
-
self.
|
96
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
70
97
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
71
98
|
end
|
72
99
|
|
@@ -84,7 +111,7 @@ module OCI
|
|
84
111
|
def to_hash
|
85
112
|
hash = {}
|
86
113
|
self.class.attribute_map.each_pair do |attr, param|
|
87
|
-
value =
|
114
|
+
value = public_method(attr).call
|
88
115
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
89
116
|
hash[param] = _to_hash(value)
|
90
117
|
end
|
@@ -116,7 +143,9 @@ module OCI
|
|
116
143
|
# Attribute mapping from ruby-style variable name to JSON key.
|
117
144
|
def self.attribute_map
|
118
145
|
{
|
146
|
+
:'defined_tags' => :'definedTags',
|
119
147
|
:'display_name' => :'displayName',
|
148
|
+
:'freeform_tags' => :'freeformTags',
|
120
149
|
:'instance_id' => :'instanceId'
|
121
150
|
}
|
122
151
|
end
|
@@ -124,7 +153,9 @@ module OCI
|
|
124
153
|
# Attribute type mapping.
|
125
154
|
def self.swagger_types
|
126
155
|
{
|
156
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
127
157
|
:'display_name' => :'String',
|
158
|
+
:'freeform_tags' => :'Hash<String, String>',
|
128
159
|
:'instance_id' => :'String'
|
129
160
|
}
|
130
161
|
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
|
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_method(attr).call
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
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
|
|
@@ -22,6 +22,14 @@ module OCI
|
|
22
22
|
# @return [String]
|
23
23
|
attr_accessor :compartment_id
|
24
24
|
|
25
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
26
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
27
|
+
#
|
28
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
29
|
+
#
|
30
|
+
# @return [Hash<String, Hash<String, Object>>]
|
31
|
+
attr_accessor :defined_tags
|
32
|
+
|
25
33
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
26
34
|
# Avoid entering confidential information.
|
27
35
|
#
|
@@ -30,6 +38,15 @@ module OCI
|
|
30
38
|
# @return [String]
|
31
39
|
attr_accessor :display_name
|
32
40
|
|
41
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
42
|
+
# predefined name, type, or namespace. For more information, see
|
43
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
44
|
+
#
|
45
|
+
# Example: `{\"Department\": \"Finance\"}`
|
46
|
+
#
|
47
|
+
# @return [Hash<String, String>]
|
48
|
+
attr_accessor :freeform_tags
|
49
|
+
|
33
50
|
# The OCID of the console history metadata object.
|
34
51
|
# @return [String]
|
35
52
|
attr_accessor :id
|
@@ -43,7 +60,6 @@ module OCI
|
|
43
60
|
attr_accessor :lifecycle_state
|
44
61
|
|
45
62
|
# The date and time the history was created, in the format defined by RFC3339.
|
46
|
-
#
|
47
63
|
# Example: `2016-08-25T21:10:29.600Z`
|
48
64
|
#
|
49
65
|
# @return [DateTime]
|
@@ -66,10 +82,18 @@ module OCI
|
|
66
82
|
self.compartment_id = attributes[:'compartmentId']
|
67
83
|
end
|
68
84
|
|
85
|
+
if attributes[:'definedTags']
|
86
|
+
self.defined_tags = attributes[:'definedTags']
|
87
|
+
end
|
88
|
+
|
69
89
|
if attributes[:'displayName']
|
70
90
|
self.display_name = attributes[:'displayName']
|
71
91
|
end
|
72
92
|
|
93
|
+
if attributes[:'freeformTags']
|
94
|
+
self.freeform_tags = attributes[:'freeformTags']
|
95
|
+
end
|
96
|
+
|
73
97
|
if attributes[:'id']
|
74
98
|
self.id = attributes[:'id']
|
75
99
|
end
|
@@ -105,7 +129,9 @@ module OCI
|
|
105
129
|
self.class == other_object.class &&
|
106
130
|
availability_domain == other_object.availability_domain &&
|
107
131
|
compartment_id == other_object.compartment_id &&
|
132
|
+
defined_tags == other_object.defined_tags &&
|
108
133
|
display_name == other_object.display_name &&
|
134
|
+
freeform_tags == other_object.freeform_tags &&
|
109
135
|
id == other_object.id &&
|
110
136
|
instance_id == other_object.instance_id &&
|
111
137
|
lifecycle_state == other_object.lifecycle_state &&
|
@@ -121,7 +147,7 @@ module OCI
|
|
121
147
|
# Calculates hash code according to all attributes.
|
122
148
|
# @return [Fixnum] Hash code
|
123
149
|
def hash
|
124
|
-
[availability_domain, compartment_id, display_name, id, instance_id, lifecycle_state, time_created].hash
|
150
|
+
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, id, instance_id, lifecycle_state, time_created].hash
|
125
151
|
end
|
126
152
|
|
127
153
|
# Builds the object from hash
|
@@ -134,10 +160,10 @@ module OCI
|
|
134
160
|
# check to ensure the input is an array given that the the attribute
|
135
161
|
# is documented as an array but the input is not
|
136
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
-
self.
|
163
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
138
164
|
end
|
139
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
|
-
self.
|
166
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
141
167
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
142
168
|
end
|
143
169
|
|
@@ -155,7 +181,7 @@ module OCI
|
|
155
181
|
def to_hash
|
156
182
|
hash = {}
|
157
183
|
self.class.attribute_map.each_pair do |attr, param|
|
158
|
-
value =
|
184
|
+
value = public_method(attr).call
|
159
185
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
160
186
|
hash[param] = _to_hash(value)
|
161
187
|
end
|
@@ -189,7 +215,9 @@ module OCI
|
|
189
215
|
{
|
190
216
|
:'availability_domain' => :'availabilityDomain',
|
191
217
|
:'compartment_id' => :'compartmentId',
|
218
|
+
:'defined_tags' => :'definedTags',
|
192
219
|
:'display_name' => :'displayName',
|
220
|
+
:'freeform_tags' => :'freeformTags',
|
193
221
|
:'id' => :'id',
|
194
222
|
:'instance_id' => :'instanceId',
|
195
223
|
:'lifecycle_state' => :'lifecycleState',
|
@@ -202,7 +230,9 @@ module OCI
|
|
202
230
|
{
|
203
231
|
:'availability_domain' => :'String',
|
204
232
|
:'compartment_id' => :'String',
|
233
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
205
234
|
:'display_name' => :'String',
|
235
|
+
:'freeform_tags' => :'Hash<String, String>',
|
206
236
|
:'id' => :'String',
|
207
237
|
:'instance_id' => :'String',
|
208
238
|
:'lifecycle_state' => :'String',
|
data/lib/oci/core/models/cpe.rb
CHANGED
@@ -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
|
|
@@ -94,10 +94,10 @@ module OCI
|
|
94
94
|
# check to ensure the input is an array given that the the attribute
|
95
95
|
# is documented as an array but the input is not
|
96
96
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
-
self.
|
97
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
98
98
|
end
|
99
99
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
100
|
-
self.
|
100
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
101
101
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
102
102
|
end
|
103
103
|
|
@@ -115,7 +115,7 @@ module OCI
|
|
115
115
|
def to_hash
|
116
116
|
hash = {}
|
117
117
|
self.class.attribute_map.each_pair do |attr, param|
|
118
|
-
value =
|
118
|
+
value = public_method(attr).call
|
119
119
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
120
120
|
hash[param] = _to_hash(value)
|
121
121
|
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
|
|
@@ -74,10 +74,10 @@ module OCI
|
|
74
74
|
# check to ensure the input is an array given that the the attribute
|
75
75
|
# is documented as an array but the input is not
|
76
76
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
77
|
-
self.
|
77
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
78
78
|
end
|
79
79
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
80
|
-
self.
|
80
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
81
81
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
82
82
|
end
|
83
83
|
|
@@ -95,7 +95,7 @@ module OCI
|
|
95
95
|
def to_hash
|
96
96
|
hash = {}
|
97
97
|
self.class.attribute_map.each_pair do |attr, param|
|
98
|
-
value =
|
98
|
+
value = public_method(attr).call
|
99
99
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
100
100
|
hash[param] = _to_hash(value)
|
101
101
|
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
|
|
@@ -125,10 +125,10 @@ module OCI
|
|
125
125
|
# check to ensure the input is an array given that the the attribute
|
126
126
|
# is documented as an array but the input is not
|
127
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
-
self.
|
128
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
129
129
|
end
|
130
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
-
self.
|
131
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
132
132
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
133
|
end
|
134
134
|
|
@@ -146,7 +146,7 @@ module OCI
|
|
146
146
|
def to_hash
|
147
147
|
hash = {}
|
148
148
|
self.class.attribute_map.each_pair do |attr, param|
|
149
|
-
value =
|
149
|
+
value = public_method(attr).call
|
150
150
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
151
151
|
hash[param] = _to_hash(value)
|
152
152
|
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
|
|
@@ -64,10 +64,10 @@ module OCI
|
|
64
64
|
# check to ensure the input is an array given that the the attribute
|
65
65
|
# is documented as an array but the input is not
|
66
66
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
67
|
-
self.
|
67
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
68
68
|
end
|
69
69
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
70
|
-
self.
|
70
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
71
71
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
72
72
|
end
|
73
73
|
|
@@ -85,7 +85,7 @@ module OCI
|
|
85
85
|
def to_hash
|
86
86
|
hash = {}
|
87
87
|
self.class.attribute_map.each_pair do |attr, param|
|
88
|
-
value =
|
88
|
+
value = public_method(attr).call
|
89
89
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
90
90
|
hash[param] = _to_hash(value)
|
91
91
|
end
|