oraclebmc 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +51 -17
- data/lib/oraclebmc.rb +1 -1
- data/lib/oraclebmc/api_client.rb +1 -1
- data/lib/oraclebmc/config.rb +1 -1
- data/lib/oraclebmc/config_file_loader.rb +1 -1
- data/lib/oraclebmc/core/blockstorage_client.rb +1 -5
- data/lib/oraclebmc/core/compute_client.rb +1 -11
- data/lib/oraclebmc/core/core.rb +1 -1
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +1 -1
- data/lib/oraclebmc/core/models/attach_volume_details.rb +4 -3
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +1 -1
- data/lib/oraclebmc/core/models/console_history.rb +1 -1
- data/lib/oraclebmc/core/models/cpe.rb +1 -1
- data/lib/oraclebmc/core/models/create_cpe_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_drg_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_image_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_route_table_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_security_list_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_subnet_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_vcn_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +1 -1
- data/lib/oraclebmc/core/models/create_volume_details.rb +1 -1
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +1 -1
- data/lib/oraclebmc/core/models/dhcp_option.rb +4 -3
- data/lib/oraclebmc/core/models/dhcp_options.rb +1 -1
- data/lib/oraclebmc/core/models/drg.rb +1 -1
- data/lib/oraclebmc/core/models/drg_attachment.rb +1 -1
- data/lib/oraclebmc/core/models/egress_security_rule.rb +1 -1
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +1 -1
- data/lib/oraclebmc/core/models/icmp_options.rb +1 -1
- data/lib/oraclebmc/core/models/image.rb +1 -1
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +1 -1
- data/lib/oraclebmc/core/models/instance.rb +1 -1
- data/lib/oraclebmc/core/models/internet_gateway.rb +1 -1
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +1 -1
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +1 -1
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +1 -1
- data/lib/oraclebmc/core/models/launch_instance_details.rb +1 -1
- data/lib/oraclebmc/core/models/port_range.rb +1 -1
- data/lib/oraclebmc/core/models/route_rule.rb +1 -1
- data/lib/oraclebmc/core/models/route_table.rb +1 -1
- data/lib/oraclebmc/core/models/security_list.rb +1 -1
- data/lib/oraclebmc/core/models/shape.rb +1 -1
- data/lib/oraclebmc/core/models/subnet.rb +1 -1
- data/lib/oraclebmc/core/models/tcp_options.rb +1 -1
- data/lib/oraclebmc/core/models/tunnel_config.rb +1 -1
- data/lib/oraclebmc/core/models/tunnel_status.rb +1 -1
- data/lib/oraclebmc/core/models/udp_options.rb +1 -1
- data/lib/oraclebmc/core/models/update_cpe_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_drg_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_image_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_instance_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_route_table_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_security_list_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_subnet_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_vcn_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +1 -1
- data/lib/oraclebmc/core/models/update_volume_details.rb +1 -1
- data/lib/oraclebmc/core/models/vcn.rb +1 -1
- data/lib/oraclebmc/core/models/vnic.rb +1 -1
- data/lib/oraclebmc/core/models/vnic_attachment.rb +1 -1
- data/lib/oraclebmc/core/models/volume.rb +1 -1
- data/lib/oraclebmc/core/models/volume_attachment.rb +4 -3
- data/lib/oraclebmc/core/models/volume_backup.rb +1 -1
- data/lib/oraclebmc/core/util.rb +1 -1
- data/lib/oraclebmc/core/virtual_network_client.rb +1 -5
- data/lib/oraclebmc/errors.rb +1 -1
- data/lib/oraclebmc/global_context.rb +1 -1
- data/lib/oraclebmc/identity/identity.rb +1 -1
- data/lib/oraclebmc/identity/identity_client.rb +1 -5
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +1 -1
- data/lib/oraclebmc/identity/models/api_key.rb +1 -1
- data/lib/oraclebmc/identity/models/availability_domain.rb +1 -1
- data/lib/oraclebmc/identity/models/compartment.rb +1 -1
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +1 -1
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +1 -1
- data/lib/oraclebmc/identity/models/create_group_details.rb +1 -1
- data/lib/oraclebmc/identity/models/create_policy_details.rb +1 -1
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +1 -1
- data/lib/oraclebmc/identity/models/create_user_details.rb +1 -1
- data/lib/oraclebmc/identity/models/group.rb +1 -1
- data/lib/oraclebmc/identity/models/policy.rb +1 -1
- data/lib/oraclebmc/identity/models/swift_password.rb +1 -1
- data/lib/oraclebmc/identity/models/ui_password.rb +1 -1
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +1 -1
- data/lib/oraclebmc/identity/models/update_group_details.rb +1 -1
- data/lib/oraclebmc/identity/models/update_policy_details.rb +1 -1
- data/lib/oraclebmc/identity/models/update_state_details.rb +1 -1
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +1 -1
- data/lib/oraclebmc/identity/models/update_user_details.rb +1 -1
- data/lib/oraclebmc/identity/models/user.rb +1 -1
- data/lib/oraclebmc/identity/models/user_group_membership.rb +1 -1
- data/lib/oraclebmc/identity/util.rb +1 -1
- data/lib/oraclebmc/load_balancer/load_balancer.rb +1 -1
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +1 -5
- data/lib/oraclebmc/load_balancer/models/backend.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/certificate.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/listener.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/work_request.rb +1 -1
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +1 -1
- data/lib/oraclebmc/load_balancer/util.rb +1 -1
- data/lib/oraclebmc/regions.rb +1 -1
- data/lib/oraclebmc/response.rb +1 -1
- data/lib/oraclebmc/signer.rb +1 -1
- data/lib/oraclebmc/version.rb +2 -2
- data/lib/oraclebmc/waiter.rb +1 -1
- metadata +3 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
@@ -61,9 +61,10 @@ module OracleBMC
|
|
61
61
|
def self.get_subtype(object_hash)
|
62
62
|
type = object_hash[:'attachmentType']
|
63
63
|
|
64
|
-
return 'OracleBMC::Core::Models::IScsiVolumeAttachment' if
|
64
|
+
return 'OracleBMC::Core::Models::IScsiVolumeAttachment' if type == 'iscsi'
|
65
65
|
|
66
|
-
|
66
|
+
# TODO: Log a warning when the subtype is not found.
|
67
|
+
return 'OracleBMC::Core::Models::VolumeAttachment'
|
67
68
|
end
|
68
69
|
|
69
70
|
# Initializes the object
|
data/lib/oraclebmc/core/util.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require "uri"
|
4
4
|
require "logger"
|
@@ -46,10 +46,6 @@ module OracleBMC
|
|
46
46
|
|
47
47
|
fail 'A region must be specified.' unless @region
|
48
48
|
|
49
|
-
if not OracleBMC::Regions.valid_region? region
|
50
|
-
logger.info "Unknown region '#{@region}', falling back to default endpoint format." if logger
|
51
|
-
end
|
52
|
-
|
53
49
|
@endpoint = OracleBMC::Regions.get_service_endpoint(@region, :VirtualNetworkClient) + '/20160918'
|
54
50
|
logger.info "VirtualNetworkClient endpoint set to '#{endpoint}'." if logger
|
55
51
|
end
|
data/lib/oraclebmc/errors.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require "uri"
|
4
4
|
require "logger"
|
@@ -46,10 +46,6 @@ module OracleBMC
|
|
46
46
|
|
47
47
|
fail 'A region must be specified.' unless @region
|
48
48
|
|
49
|
-
if not OracleBMC::Regions.valid_region? region
|
50
|
-
logger.info "Unknown region '#{@region}', falling back to default endpoint format." if logger
|
51
|
-
end
|
52
|
-
|
53
49
|
@endpoint = OracleBMC::Regions.get_service_endpoint(@region, :IdentityClient) + '/20160918'
|
54
50
|
logger.info "IdentityClient endpoint set to '#{endpoint}'." if logger
|
55
51
|
end
|