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
|
|
|
@@ -15,6 +15,14 @@ module OCI
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
attr_accessor :compartment_id
|
|
17
17
|
|
|
18
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
19
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
20
|
+
#
|
|
21
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
22
|
+
#
|
|
23
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
24
|
+
attr_accessor :defined_tags
|
|
25
|
+
|
|
18
26
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
|
19
27
|
# @return [String]
|
|
20
28
|
attr_accessor :display_name
|
|
@@ -38,6 +46,15 @@ module OCI
|
|
|
38
46
|
# @return [String]
|
|
39
47
|
attr_accessor :dns_label
|
|
40
48
|
|
|
49
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
50
|
+
# predefined name, type, or namespace. For more information, see
|
|
51
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
52
|
+
#
|
|
53
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
54
|
+
#
|
|
55
|
+
# @return [Hash<String, String>]
|
|
56
|
+
attr_accessor :freeform_tags
|
|
57
|
+
|
|
41
58
|
|
|
42
59
|
# Initializes the object
|
|
43
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -55,6 +72,10 @@ module OCI
|
|
|
55
72
|
self.compartment_id = attributes[:'compartmentId']
|
|
56
73
|
end
|
|
57
74
|
|
|
75
|
+
if attributes[:'definedTags']
|
|
76
|
+
self.defined_tags = attributes[:'definedTags']
|
|
77
|
+
end
|
|
78
|
+
|
|
58
79
|
if attributes[:'displayName']
|
|
59
80
|
self.display_name = attributes[:'displayName']
|
|
60
81
|
end
|
|
@@ -63,6 +84,10 @@ module OCI
|
|
|
63
84
|
self.dns_label = attributes[:'dnsLabel']
|
|
64
85
|
end
|
|
65
86
|
|
|
87
|
+
if attributes[:'freeformTags']
|
|
88
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
89
|
+
end
|
|
90
|
+
|
|
66
91
|
end
|
|
67
92
|
|
|
68
93
|
# Checks equality by comparing each attribute.
|
|
@@ -72,8 +97,10 @@ module OCI
|
|
|
72
97
|
self.class == other_object.class &&
|
|
73
98
|
cidr_block == other_object.cidr_block &&
|
|
74
99
|
compartment_id == other_object.compartment_id &&
|
|
100
|
+
defined_tags == other_object.defined_tags &&
|
|
75
101
|
display_name == other_object.display_name &&
|
|
76
|
-
dns_label == other_object.dns_label
|
|
102
|
+
dns_label == other_object.dns_label &&
|
|
103
|
+
freeform_tags == other_object.freeform_tags
|
|
77
104
|
end
|
|
78
105
|
|
|
79
106
|
# @see the `==` method
|
|
@@ -85,7 +112,7 @@ module OCI
|
|
|
85
112
|
# Calculates hash code according to all attributes.
|
|
86
113
|
# @return [Fixnum] Hash code
|
|
87
114
|
def hash
|
|
88
|
-
[cidr_block, compartment_id, display_name, dns_label].hash
|
|
115
|
+
[cidr_block, compartment_id, defined_tags, display_name, dns_label, freeform_tags].hash
|
|
89
116
|
end
|
|
90
117
|
|
|
91
118
|
# Builds the object from hash
|
|
@@ -98,10 +125,10 @@ module OCI
|
|
|
98
125
|
# check to ensure the input is an array given that the the attribute
|
|
99
126
|
# is documented as an array but the input is not
|
|
100
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
101
|
-
self.
|
|
128
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
102
129
|
end
|
|
103
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
104
|
-
self.
|
|
131
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
105
132
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
106
133
|
end
|
|
107
134
|
|
|
@@ -119,7 +146,7 @@ module OCI
|
|
|
119
146
|
def to_hash
|
|
120
147
|
hash = {}
|
|
121
148
|
self.class.attribute_map.each_pair do |attr, param|
|
|
122
|
-
value =
|
|
149
|
+
value = public_method(attr).call
|
|
123
150
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
124
151
|
hash[param] = _to_hash(value)
|
|
125
152
|
end
|
|
@@ -153,8 +180,10 @@ module OCI
|
|
|
153
180
|
{
|
|
154
181
|
:'cidr_block' => :'cidrBlock',
|
|
155
182
|
:'compartment_id' => :'compartmentId',
|
|
183
|
+
:'defined_tags' => :'definedTags',
|
|
156
184
|
:'display_name' => :'displayName',
|
|
157
|
-
:'dns_label' => :'dnsLabel'
|
|
185
|
+
:'dns_label' => :'dnsLabel',
|
|
186
|
+
:'freeform_tags' => :'freeformTags'
|
|
158
187
|
}
|
|
159
188
|
end
|
|
160
189
|
|
|
@@ -163,8 +192,10 @@ module OCI
|
|
|
163
192
|
{
|
|
164
193
|
:'cidr_block' => :'String',
|
|
165
194
|
:'compartment_id' => :'String',
|
|
195
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
166
196
|
:'display_name' => :'String',
|
|
167
|
-
:'dns_label' => :'String'
|
|
197
|
+
:'dns_label' => :'String',
|
|
198
|
+
:'freeform_tags' => :'Hash<String, String>'
|
|
168
199
|
}
|
|
169
200
|
end
|
|
170
201
|
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
|
|
|
@@ -197,10 +197,10 @@ module OCI
|
|
|
197
197
|
# check to ensure the input is an array given that the the attribute
|
|
198
198
|
# is documented as an array but the input is not
|
|
199
199
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
200
|
-
self.
|
|
200
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
201
201
|
end
|
|
202
202
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
203
|
-
self.
|
|
203
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
204
204
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
205
205
|
end
|
|
206
206
|
|
|
@@ -218,7 +218,7 @@ module OCI
|
|
|
218
218
|
def to_hash
|
|
219
219
|
hash = {}
|
|
220
220
|
self.class.attribute_map.each_pair do |attr, param|
|
|
221
|
-
value =
|
|
221
|
+
value = public_method(attr).call
|
|
222
222
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
223
223
|
hash[param] = _to_hash(value)
|
|
224
224
|
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
|
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_method(attr).call
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
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
|
|
|
@@ -154,10 +154,10 @@ module OCI
|
|
|
154
154
|
# check to ensure the input is an array given that the the attribute
|
|
155
155
|
# is documented as an array but the input is not
|
|
156
156
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
157
|
-
self.
|
|
157
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
158
158
|
end
|
|
159
159
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
160
|
-
self.
|
|
160
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
161
161
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -175,7 +175,7 @@ module OCI
|
|
|
175
175
|
def to_hash
|
|
176
176
|
hash = {}
|
|
177
177
|
self.class.attribute_map.each_pair do |attr, param|
|
|
178
|
-
value =
|
|
178
|
+
value = public_method(attr).call
|
|
179
179
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
180
180
|
hash[param] = _to_hash(value)
|
|
181
181
|
end
|
|
@@ -1,15 +1,32 @@
|
|
|
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::CreateVolumeBackupDetails
|
|
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 for the volume backup. Does not have to be unique and it's changeable.
|
|
8
16
|
# Avoid entering confidential information.
|
|
9
17
|
#
|
|
10
18
|
# @return [String]
|
|
11
19
|
attr_accessor :display_name
|
|
12
20
|
|
|
21
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
22
|
+
# predefined name, type, or namespace. For more information, see
|
|
23
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
24
|
+
#
|
|
25
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
26
|
+
#
|
|
27
|
+
# @return [Hash<String, String>]
|
|
28
|
+
attr_accessor :freeform_tags
|
|
29
|
+
|
|
13
30
|
# The OCID of the volume that needs to be backed up.
|
|
14
31
|
# @return [String]
|
|
15
32
|
attr_accessor :volume_id
|
|
@@ -23,10 +40,18 @@ module OCI
|
|
|
23
40
|
# convert string to symbol for hash key
|
|
24
41
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
25
42
|
|
|
43
|
+
if attributes[:'definedTags']
|
|
44
|
+
self.defined_tags = attributes[:'definedTags']
|
|
45
|
+
end
|
|
46
|
+
|
|
26
47
|
if attributes[:'displayName']
|
|
27
48
|
self.display_name = attributes[:'displayName']
|
|
28
49
|
end
|
|
29
50
|
|
|
51
|
+
if attributes[:'freeformTags']
|
|
52
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
53
|
+
end
|
|
54
|
+
|
|
30
55
|
if attributes[:'volumeId']
|
|
31
56
|
self.volume_id = attributes[:'volumeId']
|
|
32
57
|
end
|
|
@@ -38,7 +63,9 @@ module OCI
|
|
|
38
63
|
def ==(other_object)
|
|
39
64
|
return true if self.equal?(other_object)
|
|
40
65
|
self.class == other_object.class &&
|
|
66
|
+
defined_tags == other_object.defined_tags &&
|
|
41
67
|
display_name == other_object.display_name &&
|
|
68
|
+
freeform_tags == other_object.freeform_tags &&
|
|
42
69
|
volume_id == other_object.volume_id
|
|
43
70
|
end
|
|
44
71
|
|
|
@@ -51,7 +78,7 @@ module OCI
|
|
|
51
78
|
# Calculates hash code according to all attributes.
|
|
52
79
|
# @return [Fixnum] Hash code
|
|
53
80
|
def hash
|
|
54
|
-
[display_name, volume_id].hash
|
|
81
|
+
[defined_tags, display_name, freeform_tags, volume_id].hash
|
|
55
82
|
end
|
|
56
83
|
|
|
57
84
|
# Builds the object from hash
|
|
@@ -64,10 +91,10 @@ module OCI
|
|
|
64
91
|
# check to ensure the input is an array given that the the attribute
|
|
65
92
|
# is documented as an array but the input is not
|
|
66
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
67
|
-
self.
|
|
94
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
68
95
|
end
|
|
69
96
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
70
|
-
self.
|
|
97
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
71
98
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
72
99
|
end
|
|
73
100
|
|
|
@@ -85,7 +112,7 @@ module OCI
|
|
|
85
112
|
def to_hash
|
|
86
113
|
hash = {}
|
|
87
114
|
self.class.attribute_map.each_pair do |attr, param|
|
|
88
|
-
value =
|
|
115
|
+
value = public_method(attr).call
|
|
89
116
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
90
117
|
hash[param] = _to_hash(value)
|
|
91
118
|
end
|
|
@@ -117,7 +144,9 @@ module OCI
|
|
|
117
144
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
118
145
|
def self.attribute_map
|
|
119
146
|
{
|
|
147
|
+
:'defined_tags' => :'definedTags',
|
|
120
148
|
:'display_name' => :'displayName',
|
|
149
|
+
:'freeform_tags' => :'freeformTags',
|
|
121
150
|
:'volume_id' => :'volumeId'
|
|
122
151
|
}
|
|
123
152
|
end
|
|
@@ -125,7 +154,9 @@ module OCI
|
|
|
125
154
|
# Attribute type mapping.
|
|
126
155
|
def self.swagger_types
|
|
127
156
|
{
|
|
157
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
128
158
|
:'display_name' => :'String',
|
|
159
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
129
160
|
:'volume_id' => :'String'
|
|
130
161
|
}
|
|
131
162
|
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
|
|
|
@@ -15,12 +15,29 @@ module OCI
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
attr_accessor :compartment_id
|
|
17
17
|
|
|
18
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
19
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
20
|
+
#
|
|
21
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
22
|
+
#
|
|
23
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
24
|
+
attr_accessor :defined_tags
|
|
25
|
+
|
|
18
26
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
19
27
|
# Avoid entering confidential information.
|
|
20
28
|
#
|
|
21
29
|
# @return [String]
|
|
22
30
|
attr_accessor :display_name
|
|
23
31
|
|
|
32
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
33
|
+
# predefined name, type, or namespace. For more information, see
|
|
34
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
35
|
+
#
|
|
36
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
37
|
+
#
|
|
38
|
+
# @return [Hash<String, String>]
|
|
39
|
+
attr_accessor :freeform_tags
|
|
40
|
+
|
|
24
41
|
# The size of the volume in GBs.
|
|
25
42
|
# @return [Integer]
|
|
26
43
|
attr_accessor :size_in_gbs
|
|
@@ -62,10 +79,18 @@ module OCI
|
|
|
62
79
|
self.compartment_id = attributes[:'compartmentId']
|
|
63
80
|
end
|
|
64
81
|
|
|
82
|
+
if attributes[:'definedTags']
|
|
83
|
+
self.defined_tags = attributes[:'definedTags']
|
|
84
|
+
end
|
|
85
|
+
|
|
65
86
|
if attributes[:'displayName']
|
|
66
87
|
self.display_name = attributes[:'displayName']
|
|
67
88
|
end
|
|
68
89
|
|
|
90
|
+
if attributes[:'freeformTags']
|
|
91
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
92
|
+
end
|
|
93
|
+
|
|
69
94
|
if attributes[:'sizeInGBs']
|
|
70
95
|
self.size_in_gbs = attributes[:'sizeInGBs']
|
|
71
96
|
end
|
|
@@ -91,7 +116,9 @@ module OCI
|
|
|
91
116
|
self.class == other_object.class &&
|
|
92
117
|
availability_domain == other_object.availability_domain &&
|
|
93
118
|
compartment_id == other_object.compartment_id &&
|
|
119
|
+
defined_tags == other_object.defined_tags &&
|
|
94
120
|
display_name == other_object.display_name &&
|
|
121
|
+
freeform_tags == other_object.freeform_tags &&
|
|
95
122
|
size_in_gbs == other_object.size_in_gbs &&
|
|
96
123
|
size_in_mbs == other_object.size_in_mbs &&
|
|
97
124
|
source_details == other_object.source_details &&
|
|
@@ -107,7 +134,7 @@ module OCI
|
|
|
107
134
|
# Calculates hash code according to all attributes.
|
|
108
135
|
# @return [Fixnum] Hash code
|
|
109
136
|
def hash
|
|
110
|
-
[availability_domain, compartment_id, display_name, size_in_gbs, size_in_mbs, source_details, volume_backup_id].hash
|
|
137
|
+
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, size_in_gbs, size_in_mbs, source_details, volume_backup_id].hash
|
|
111
138
|
end
|
|
112
139
|
|
|
113
140
|
# Builds the object from hash
|
|
@@ -120,10 +147,10 @@ module OCI
|
|
|
120
147
|
# check to ensure the input is an array given that the the attribute
|
|
121
148
|
# is documented as an array but the input is not
|
|
122
149
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
123
|
-
self.
|
|
150
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
124
151
|
end
|
|
125
152
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
126
|
-
self.
|
|
153
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
127
154
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
128
155
|
end
|
|
129
156
|
|
|
@@ -141,7 +168,7 @@ module OCI
|
|
|
141
168
|
def to_hash
|
|
142
169
|
hash = {}
|
|
143
170
|
self.class.attribute_map.each_pair do |attr, param|
|
|
144
|
-
value =
|
|
171
|
+
value = public_method(attr).call
|
|
145
172
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
146
173
|
hash[param] = _to_hash(value)
|
|
147
174
|
end
|
|
@@ -175,7 +202,9 @@ module OCI
|
|
|
175
202
|
{
|
|
176
203
|
:'availability_domain' => :'availabilityDomain',
|
|
177
204
|
:'compartment_id' => :'compartmentId',
|
|
205
|
+
:'defined_tags' => :'definedTags',
|
|
178
206
|
:'display_name' => :'displayName',
|
|
207
|
+
:'freeform_tags' => :'freeformTags',
|
|
179
208
|
:'size_in_gbs' => :'sizeInGBs',
|
|
180
209
|
:'size_in_mbs' => :'sizeInMBs',
|
|
181
210
|
:'source_details' => :'sourceDetails',
|
|
@@ -188,7 +217,9 @@ module OCI
|
|
|
188
217
|
{
|
|
189
218
|
:'availability_domain' => :'String',
|
|
190
219
|
:'compartment_id' => :'String',
|
|
220
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
191
221
|
:'display_name' => :'String',
|
|
222
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
192
223
|
:'size_in_gbs' => :'Integer',
|
|
193
224
|
:'size_in_mbs' => :'Integer',
|
|
194
225
|
:'source_details' => :'OCI::Core::Models::VolumeSourceDetails',
|
|
@@ -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
|
|
|
@@ -152,10 +152,10 @@ module OCI
|
|
|
152
152
|
# check to ensure the input is an array given that the the attribute
|
|
153
153
|
# is documented as an array but the input is not
|
|
154
154
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
155
|
-
self.
|
|
155
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
156
156
|
end
|
|
157
157
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
158
|
-
self.
|
|
158
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
159
159
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
160
160
|
end
|
|
161
161
|
|
|
@@ -173,7 +173,7 @@ module OCI
|
|
|
173
173
|
def to_hash
|
|
174
174
|
hash = {}
|
|
175
175
|
self.class.attribute_map.each_pair do |attr, param|
|
|
176
|
-
value =
|
|
176
|
+
value = public_method(attr).call
|
|
177
177
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
178
178
|
hash[param] = _to_hash(value)
|
|
179
179
|
end
|