oraclebmc 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/oraclebmc/core/blockstorage_client.rb +16 -11
- data/lib/oraclebmc/core/compute_client.rb +227 -37
- data/lib/oraclebmc/core/core.rb +11 -0
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +1 -2
- data/lib/oraclebmc/core/models/attach_vnic_details.rb +144 -0
- data/lib/oraclebmc/core/models/attach_volume_details.rb +5 -6
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +1 -2
- data/lib/oraclebmc/core/models/console_history.rb +8 -8
- data/lib/oraclebmc/core/models/cpe.rb +7 -6
- data/lib/oraclebmc/core/models/create_cpe_details.rb +4 -5
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +9 -8
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +4 -3
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +5 -6
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +4 -5
- data/lib/oraclebmc/core/models/create_drg_details.rb +3 -4
- data/lib/oraclebmc/core/models/create_image_details.rb +19 -7
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +5 -6
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +6 -7
- data/lib/oraclebmc/core/models/create_private_ip_details.rb +173 -0
- data/lib/oraclebmc/core/models/create_route_table_details.rb +5 -6
- data/lib/oraclebmc/core/models/create_security_list_details.rb +6 -7
- data/lib/oraclebmc/core/models/create_subnet_details.rb +14 -15
- data/lib/oraclebmc/core/models/create_vcn_details.rb +6 -8
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +11 -12
- data/lib/oraclebmc/core/models/create_vnic_details.rb +39 -27
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +4 -3
- data/lib/oraclebmc/core/models/create_volume_details.rb +6 -6
- data/lib/oraclebmc/core/models/cross_connect.rb +11 -10
- data/lib/oraclebmc/core/models/cross_connect_group.rb +6 -6
- data/lib/oraclebmc/core/models/cross_connect_location.rb +2 -3
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +5 -6
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +2 -3
- data/lib/oraclebmc/core/models/cross_connect_status.rb +4 -5
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +2 -3
- data/lib/oraclebmc/core/models/dhcp_option.rb +1 -2
- data/lib/oraclebmc/core/models/dhcp_options.rb +9 -8
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +1 -2
- data/lib/oraclebmc/core/models/drg.rb +7 -6
- data/lib/oraclebmc/core/models/drg_attachment.rb +9 -8
- data/lib/oraclebmc/core/models/egress_security_rule.rb +6 -7
- data/lib/oraclebmc/core/models/export_image_details.rb +134 -0
- data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +150 -0
- data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +130 -0
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +3 -4
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +5 -6
- data/lib/oraclebmc/core/models/icmp_options.rb +2 -3
- data/lib/oraclebmc/core/models/image.rb +12 -10
- data/lib/oraclebmc/core/models/image_source_details.rb +134 -0
- data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +150 -0
- data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +128 -0
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +6 -7
- data/lib/oraclebmc/core/models/instance.rb +13 -13
- data/lib/oraclebmc/core/models/instance_credentials.rb +2 -3
- data/lib/oraclebmc/core/models/internet_gateway.rb +9 -8
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +10 -9
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +4 -5
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +4 -5
- data/lib/oraclebmc/core/models/launch_instance_details.rb +17 -15
- data/lib/oraclebmc/core/models/letter_of_authority.rb +6 -7
- data/lib/oraclebmc/core/models/port_range.rb +2 -3
- data/lib/oraclebmc/core/models/private_ip.rb +248 -0
- data/lib/oraclebmc/core/models/route_rule.rb +2 -3
- data/lib/oraclebmc/core/models/route_table.rb +9 -8
- data/lib/oraclebmc/core/models/security_list.rb +10 -9
- data/lib/oraclebmc/core/models/shape.rb +1 -2
- data/lib/oraclebmc/core/models/subnet.rb +21 -19
- data/lib/oraclebmc/core/models/tcp_options.rb +2 -3
- data/lib/oraclebmc/core/models/tunnel_config.rb +3 -4
- data/lib/oraclebmc/core/models/tunnel_status.rb +4 -5
- data/lib/oraclebmc/core/models/udp_options.rb +2 -3
- data/lib/oraclebmc/core/models/update_cpe_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +4 -3
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +4 -3
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_drg_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_image_details.rb +3 -3
- data/lib/oraclebmc/core/models/update_instance_details.rb +2 -2
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +4 -3
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_private_ip_details.rb +157 -0
- data/lib/oraclebmc/core/models/update_route_table_details.rb +4 -3
- data/lib/oraclebmc/core/models/update_security_list_details.rb +5 -4
- data/lib/oraclebmc/core/models/update_subnet_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_vcn_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +8 -8
- data/lib/oraclebmc/core/models/update_vnic_details.rb +144 -0
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +3 -2
- data/lib/oraclebmc/core/models/update_volume_details.rb +2 -2
- data/lib/oraclebmc/core/models/vcn.rb +13 -12
- data/lib/oraclebmc/core/models/virtual_circuit.rb +18 -18
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +2 -3
- data/lib/oraclebmc/core/models/vnic.rb +47 -19
- data/lib/oraclebmc/core/models/vnic_attachment.rb +33 -15
- data/lib/oraclebmc/core/models/volume.rb +8 -8
- data/lib/oraclebmc/core/models/volume_attachment.rb +10 -10
- data/lib/oraclebmc/core/models/volume_backup.rb +11 -10
- data/lib/oraclebmc/core/virtual_network_client.rb +364 -87
- data/lib/oraclebmc/errors.rb +19 -1
- data/lib/oraclebmc/identity/identity_client.rb +31 -31
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +2 -3
- data/lib/oraclebmc/identity/models/api_key.rb +7 -8
- data/lib/oraclebmc/identity/models/availability_domain.rb +2 -3
- data/lib/oraclebmc/identity/models/compartment.rb +7 -8
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +1 -2
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +3 -4
- data/lib/oraclebmc/identity/models/create_group_details.rb +3 -4
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +5 -6
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +2 -3
- data/lib/oraclebmc/identity/models/create_policy_details.rb +5 -6
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +1 -2
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +2 -3
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +1 -2
- data/lib/oraclebmc/identity/models/create_user_details.rb +3 -4
- data/lib/oraclebmc/identity/models/group.rb +7 -8
- data/lib/oraclebmc/identity/models/identity_provider.rb +9 -10
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +8 -9
- data/lib/oraclebmc/identity/models/policy.rb +9 -10
- data/lib/oraclebmc/identity/models/region.rb +2 -3
- data/lib/oraclebmc/identity/models/region_subscription.rb +4 -5
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +3 -4
- data/lib/oraclebmc/identity/models/swift_password.rb +8 -9
- data/lib/oraclebmc/identity/models/tenancy.rb +4 -5
- data/lib/oraclebmc/identity/models/ui_password.rb +5 -6
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +1 -2
- data/lib/oraclebmc/identity/models/update_group_details.rb +1 -2
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +2 -3
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +2 -3
- data/lib/oraclebmc/identity/models/update_policy_details.rb +3 -4
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +2 -3
- data/lib/oraclebmc/identity/models/update_state_details.rb +1 -2
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +1 -2
- data/lib/oraclebmc/identity/models/update_user_details.rb +1 -2
- data/lib/oraclebmc/identity/models/user.rb +7 -8
- data/lib/oraclebmc/identity/models/user_group_membership.rb +7 -8
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +11 -11
- data/lib/oraclebmc/load_balancer/models/backend.rb +7 -8
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +6 -7
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +6 -7
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/certificate.rb +3 -4
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +6 -7
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +6 -7
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +8 -9
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +8 -9
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +8 -9
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +2 -3
- data/lib/oraclebmc/load_balancer/models/listener.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +4 -5
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +12 -13
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +1 -2
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +1 -2
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +1 -2
- data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +2 -3
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +3 -4
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +3 -4
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +4 -5
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +5 -6
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +8 -9
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +4 -5
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +1 -2
- data/lib/oraclebmc/load_balancer/models/work_request.rb +8 -9
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +2 -3
- data/lib/oraclebmc/version.rb +1 -1
- metadata +13 -2
data/lib/oraclebmc/core/core.rb
CHANGED
@@ -9,6 +9,7 @@ end
|
|
9
9
|
|
10
10
|
# Require models
|
11
11
|
require 'oraclebmc/core/models/attach_i_scsi_volume_details'
|
12
|
+
require 'oraclebmc/core/models/attach_vnic_details'
|
12
13
|
require 'oraclebmc/core/models/attach_volume_details'
|
13
14
|
require 'oraclebmc/core/models/capture_console_history_details'
|
14
15
|
require 'oraclebmc/core/models/console_history'
|
@@ -22,6 +23,7 @@ require 'oraclebmc/core/models/create_drg_details'
|
|
22
23
|
require 'oraclebmc/core/models/create_ip_sec_connection_details'
|
23
24
|
require 'oraclebmc/core/models/create_image_details'
|
24
25
|
require 'oraclebmc/core/models/create_internet_gateway_details'
|
26
|
+
require 'oraclebmc/core/models/create_private_ip_details'
|
25
27
|
require 'oraclebmc/core/models/create_route_table_details'
|
26
28
|
require 'oraclebmc/core/models/create_security_list_details'
|
27
29
|
require 'oraclebmc/core/models/create_subnet_details'
|
@@ -43,6 +45,9 @@ require 'oraclebmc/core/models/dhcp_search_domain_option'
|
|
43
45
|
require 'oraclebmc/core/models/drg'
|
44
46
|
require 'oraclebmc/core/models/drg_attachment'
|
45
47
|
require 'oraclebmc/core/models/egress_security_rule'
|
48
|
+
require 'oraclebmc/core/models/export_image_details'
|
49
|
+
require 'oraclebmc/core/models/export_image_via_object_storage_tuple_details'
|
50
|
+
require 'oraclebmc/core/models/export_image_via_object_storage_uri_details'
|
46
51
|
require 'oraclebmc/core/models/fast_connect_provider_service'
|
47
52
|
require 'oraclebmc/core/models/ip_sec_connection'
|
48
53
|
require 'oraclebmc/core/models/ip_sec_connection_device_config'
|
@@ -50,6 +55,9 @@ require 'oraclebmc/core/models/ip_sec_connection_device_status'
|
|
50
55
|
require 'oraclebmc/core/models/i_scsi_volume_attachment'
|
51
56
|
require 'oraclebmc/core/models/icmp_options'
|
52
57
|
require 'oraclebmc/core/models/image'
|
58
|
+
require 'oraclebmc/core/models/image_source_details'
|
59
|
+
require 'oraclebmc/core/models/image_source_via_object_storage_tuple_details'
|
60
|
+
require 'oraclebmc/core/models/image_source_via_object_storage_uri_details'
|
53
61
|
require 'oraclebmc/core/models/ingress_security_rule'
|
54
62
|
require 'oraclebmc/core/models/instance'
|
55
63
|
require 'oraclebmc/core/models/instance_credentials'
|
@@ -57,6 +65,7 @@ require 'oraclebmc/core/models/internet_gateway'
|
|
57
65
|
require 'oraclebmc/core/models/launch_instance_details'
|
58
66
|
require 'oraclebmc/core/models/letter_of_authority'
|
59
67
|
require 'oraclebmc/core/models/port_range'
|
68
|
+
require 'oraclebmc/core/models/private_ip'
|
60
69
|
require 'oraclebmc/core/models/route_rule'
|
61
70
|
require 'oraclebmc/core/models/route_table'
|
62
71
|
require 'oraclebmc/core/models/security_list'
|
@@ -76,11 +85,13 @@ require 'oraclebmc/core/models/update_ip_sec_connection_details'
|
|
76
85
|
require 'oraclebmc/core/models/update_image_details'
|
77
86
|
require 'oraclebmc/core/models/update_instance_details'
|
78
87
|
require 'oraclebmc/core/models/update_internet_gateway_details'
|
88
|
+
require 'oraclebmc/core/models/update_private_ip_details'
|
79
89
|
require 'oraclebmc/core/models/update_route_table_details'
|
80
90
|
require 'oraclebmc/core/models/update_security_list_details'
|
81
91
|
require 'oraclebmc/core/models/update_subnet_details'
|
82
92
|
require 'oraclebmc/core/models/update_vcn_details'
|
83
93
|
require 'oraclebmc/core/models/update_virtual_circuit_details'
|
94
|
+
require 'oraclebmc/core/models/update_vnic_details'
|
84
95
|
require 'oraclebmc/core/models/update_volume_backup_details'
|
85
96
|
require 'oraclebmc/core/models/update_volume_details'
|
86
97
|
require 'oraclebmc/core/models/vcn'
|
@@ -22,11 +22,10 @@ module OracleBMC
|
|
22
22
|
# convert string to symbol for hash key
|
23
23
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
24
24
|
|
25
|
-
|
26
25
|
if attributes[:'useChap']
|
27
26
|
self.use_chap = attributes[:'useChap']
|
28
27
|
end
|
29
|
-
|
28
|
+
|
30
29
|
end
|
31
30
|
|
32
31
|
# Checks equality by comparing each attribute.
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OracleBMC
|
6
|
+
class Core::Models::AttachVnicDetails
|
7
|
+
# Details for creating a new VNIC.
|
8
|
+
#
|
9
|
+
# @return [OracleBMC::Core::Models::CreateVnicDetails]
|
10
|
+
attr_accessor :create_vnic_details
|
11
|
+
|
12
|
+
# A user-friendly name for the attachment. Does not have to be unique, and it cannot be changed.
|
13
|
+
#
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :display_name
|
16
|
+
|
17
|
+
# The OCID of the instance.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :instance_id
|
20
|
+
|
21
|
+
|
22
|
+
# Initializes the object
|
23
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
+
def initialize(attributes = {})
|
25
|
+
return unless attributes.is_a?(Hash)
|
26
|
+
|
27
|
+
# convert string to symbol for hash key
|
28
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
29
|
+
|
30
|
+
if attributes[:'createVnicDetails']
|
31
|
+
self.create_vnic_details = attributes[:'createVnicDetails']
|
32
|
+
end
|
33
|
+
|
34
|
+
if attributes[:'displayName']
|
35
|
+
self.display_name = attributes[:'displayName']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'instanceId']
|
39
|
+
self.instance_id = attributes[:'instanceId']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
# Checks equality by comparing each attribute.
|
45
|
+
# @param [Object] other_object to be compared
|
46
|
+
def ==(other_object)
|
47
|
+
return true if self.equal?(other_object)
|
48
|
+
self.class == other_object.class &&
|
49
|
+
create_vnic_details == other_object.create_vnic_details &&
|
50
|
+
display_name == other_object.display_name &&
|
51
|
+
instance_id == other_object.instance_id
|
52
|
+
end
|
53
|
+
|
54
|
+
# @see the `==` method
|
55
|
+
# @param [Object] other_object to be compared
|
56
|
+
def eql?(other_object)
|
57
|
+
self == other_object
|
58
|
+
end
|
59
|
+
|
60
|
+
# Calculates hash code according to all attributes.
|
61
|
+
# @return [Fixnum] Hash code
|
62
|
+
def hash
|
63
|
+
[create_vnic_details, display_name, instance_id].hash
|
64
|
+
end
|
65
|
+
|
66
|
+
# Builds the object from hash
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
# @return [Object] Returns the model itself
|
69
|
+
def build_from_hash(attributes)
|
70
|
+
return nil unless attributes.is_a?(Hash)
|
71
|
+
self.class.swagger_types.each_pair do |key, type|
|
72
|
+
if type =~ /^Array<(.*)>/i
|
73
|
+
# check to ensure the input is an array given that the the attribute
|
74
|
+
# is documented as an array but the input is not
|
75
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
76
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
77
|
+
end
|
78
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
79
|
+
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
80
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
81
|
+
end
|
82
|
+
|
83
|
+
self
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the string representation of the object
|
87
|
+
# @return [String] String presentation of the object
|
88
|
+
def to_s
|
89
|
+
to_hash.to_s
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns the object in the form of hash
|
93
|
+
# @return [Hash] Returns the object in the form of hash
|
94
|
+
def to_hash
|
95
|
+
hash = {}
|
96
|
+
self.class.attribute_map.each_pair do |attr, param|
|
97
|
+
value = self.send(attr)
|
98
|
+
next if value.nil?
|
99
|
+
hash[param] = _to_hash(value)
|
100
|
+
end
|
101
|
+
hash
|
102
|
+
end
|
103
|
+
|
104
|
+
private
|
105
|
+
|
106
|
+
# Outputs non-array value in the form of hash
|
107
|
+
# For object, use to_hash. Otherwise, just return the value
|
108
|
+
# @param [Object] value Any valid value
|
109
|
+
# @return [Hash] Returns the value in the form of hash
|
110
|
+
def _to_hash(value)
|
111
|
+
if value.is_a?(Array)
|
112
|
+
value.compact.map{ |v| _to_hash(v) }
|
113
|
+
elsif value.is_a?(Hash)
|
114
|
+
{}.tap do |hash|
|
115
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
116
|
+
end
|
117
|
+
elsif value.respond_to? :to_hash
|
118
|
+
value.to_hash
|
119
|
+
else
|
120
|
+
value
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
127
|
+
def self.attribute_map
|
128
|
+
{
|
129
|
+
:'create_vnic_details' => :'createVnicDetails',
|
130
|
+
:'display_name' => :'displayName',
|
131
|
+
:'instance_id' => :'instanceId'
|
132
|
+
}
|
133
|
+
end
|
134
|
+
|
135
|
+
# Attribute type mapping.
|
136
|
+
def self.swagger_types
|
137
|
+
{
|
138
|
+
:'create_vnic_details' => :'OracleBMC::Core::Models::CreateVnicDetails',
|
139
|
+
:'display_name' => :'String',
|
140
|
+
:'instance_id' => :'String'
|
141
|
+
}
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -4,7 +4,7 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class Core::Models::AttachVolumeDetails
|
7
|
-
# A user-friendly name. Does not have to be unique, and it cannot be changed.
|
7
|
+
# A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.
|
8
8
|
#
|
9
9
|
# @return [String]
|
10
10
|
attr_accessor :display_name
|
@@ -41,23 +41,22 @@ module OracleBMC
|
|
41
41
|
# convert string to symbol for hash key
|
42
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
43
|
|
44
|
-
|
45
44
|
if attributes[:'displayName']
|
46
45
|
self.display_name = attributes[:'displayName']
|
47
46
|
end
|
48
|
-
|
47
|
+
|
49
48
|
if attributes[:'instanceId']
|
50
49
|
self.instance_id = attributes[:'instanceId']
|
51
50
|
end
|
52
|
-
|
51
|
+
|
53
52
|
if attributes[:'type']
|
54
53
|
self.type = attributes[:'type']
|
55
54
|
end
|
56
|
-
|
55
|
+
|
57
56
|
if attributes[:'volumeId']
|
58
57
|
self.volume_id = attributes[:'volumeId']
|
59
58
|
end
|
60
|
-
|
59
|
+
|
61
60
|
end
|
62
61
|
|
63
62
|
# Checks equality by comparing each attribute.
|
@@ -17,11 +17,10 @@ module OracleBMC
|
|
17
17
|
# convert string to symbol for hash key
|
18
18
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
19
19
|
|
20
|
-
|
21
20
|
if attributes[:'instanceId']
|
22
21
|
self.instance_id = attributes[:'instanceId']
|
23
22
|
end
|
24
|
-
|
23
|
+
|
25
24
|
end
|
26
25
|
|
27
26
|
# Checks equality by comparing each attribute.
|
@@ -23,6 +23,7 @@ module OracleBMC
|
|
23
23
|
attr_accessor :compartment_id
|
24
24
|
|
25
25
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
26
|
+
# Avoid entering confidential information.
|
26
27
|
#
|
27
28
|
# Example: `My console history metadata`
|
28
29
|
#
|
@@ -57,35 +58,34 @@ module OracleBMC
|
|
57
58
|
# convert string to symbol for hash key
|
58
59
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
59
60
|
|
60
|
-
|
61
61
|
if attributes[:'availabilityDomain']
|
62
62
|
self.availability_domain = attributes[:'availabilityDomain']
|
63
63
|
end
|
64
|
-
|
64
|
+
|
65
65
|
if attributes[:'compartmentId']
|
66
66
|
self.compartment_id = attributes[:'compartmentId']
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
if attributes[:'displayName']
|
70
70
|
self.display_name = attributes[:'displayName']
|
71
71
|
end
|
72
|
-
|
72
|
+
|
73
73
|
if attributes[:'id']
|
74
74
|
self.id = attributes[:'id']
|
75
75
|
end
|
76
|
-
|
76
|
+
|
77
77
|
if attributes[:'instanceId']
|
78
78
|
self.instance_id = attributes[:'instanceId']
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
if attributes[:'lifecycleState']
|
82
82
|
self.lifecycle_state = attributes[:'lifecycleState']
|
83
83
|
end
|
84
|
-
|
84
|
+
|
85
85
|
if attributes[:'timeCreated']
|
86
86
|
self.time_created = attributes[:'timeCreated']
|
87
87
|
end
|
88
|
-
|
88
|
+
|
89
89
|
end
|
90
90
|
|
91
91
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -9,6 +9,8 @@ module OracleBMC
|
|
9
9
|
attr_accessor :compartment_id
|
10
10
|
|
11
11
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
12
|
+
# Avoid entering confidential information.
|
13
|
+
#
|
12
14
|
# @return [String]
|
13
15
|
attr_accessor :display_name
|
14
16
|
|
@@ -36,27 +38,26 @@ module OracleBMC
|
|
36
38
|
# convert string to symbol for hash key
|
37
39
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
38
40
|
|
39
|
-
|
40
41
|
if attributes[:'compartmentId']
|
41
42
|
self.compartment_id = attributes[:'compartmentId']
|
42
43
|
end
|
43
|
-
|
44
|
+
|
44
45
|
if attributes[:'displayName']
|
45
46
|
self.display_name = attributes[:'displayName']
|
46
47
|
end
|
47
|
-
|
48
|
+
|
48
49
|
if attributes[:'id']
|
49
50
|
self.id = attributes[:'id']
|
50
51
|
end
|
51
|
-
|
52
|
+
|
52
53
|
if attributes[:'ipAddress']
|
53
54
|
self.ip_address = attributes[:'ipAddress']
|
54
55
|
end
|
55
|
-
|
56
|
+
|
56
57
|
if attributes[:'timeCreated']
|
57
58
|
self.time_created = attributes[:'timeCreated']
|
58
59
|
end
|
59
|
-
|
60
|
+
|
60
61
|
end
|
61
62
|
|
62
63
|
# Checks equality by comparing each attribute.
|
@@ -8,7 +8,7 @@ module OracleBMC
|
|
8
8
|
# @return [String]
|
9
9
|
attr_accessor :compartment_id
|
10
10
|
|
11
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
11
|
+
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
12
12
|
# @return [String]
|
13
13
|
attr_accessor :display_name
|
14
14
|
|
@@ -28,19 +28,18 @@ module OracleBMC
|
|
28
28
|
# convert string to symbol for hash key
|
29
29
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
30
30
|
|
31
|
-
|
32
31
|
if attributes[:'compartmentId']
|
33
32
|
self.compartment_id = attributes[:'compartmentId']
|
34
33
|
end
|
35
|
-
|
34
|
+
|
36
35
|
if attributes[:'displayName']
|
37
36
|
self.display_name = attributes[:'displayName']
|
38
37
|
end
|
39
|
-
|
38
|
+
|
40
39
|
if attributes[:'ipAddress']
|
41
40
|
self.ip_address = attributes[:'ipAddress']
|
42
41
|
end
|
43
|
-
|
42
|
+
|
44
43
|
end
|
45
44
|
|
46
45
|
# Checks equality by comparing each attribute.
|
@@ -13,6 +13,8 @@ module OracleBMC
|
|
13
13
|
attr_accessor :cross_connect_group_id
|
14
14
|
|
15
15
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
16
|
+
# Avoid entering confidential information.
|
17
|
+
#
|
16
18
|
# @return [String]
|
17
19
|
attr_accessor :display_name
|
18
20
|
|
@@ -57,35 +59,34 @@ module OracleBMC
|
|
57
59
|
# convert string to symbol for hash key
|
58
60
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
59
61
|
|
60
|
-
|
61
62
|
if attributes[:'compartmentId']
|
62
63
|
self.compartment_id = attributes[:'compartmentId']
|
63
64
|
end
|
64
|
-
|
65
|
+
|
65
66
|
if attributes[:'crossConnectGroupId']
|
66
67
|
self.cross_connect_group_id = attributes[:'crossConnectGroupId']
|
67
68
|
end
|
68
|
-
|
69
|
+
|
69
70
|
if attributes[:'displayName']
|
70
71
|
self.display_name = attributes[:'displayName']
|
71
72
|
end
|
72
|
-
|
73
|
+
|
73
74
|
if attributes[:'farCrossConnectOrCrossConnectGroupId']
|
74
75
|
self.far_cross_connect_or_cross_connect_group_id = attributes[:'farCrossConnectOrCrossConnectGroupId']
|
75
76
|
end
|
76
|
-
|
77
|
+
|
77
78
|
if attributes[:'locationName']
|
78
79
|
self.location_name = attributes[:'locationName']
|
79
80
|
end
|
80
|
-
|
81
|
+
|
81
82
|
if attributes[:'nearCrossConnectOrCrossConnectGroupId']
|
82
83
|
self.near_cross_connect_or_cross_connect_group_id = attributes[:'nearCrossConnectOrCrossConnectGroupId']
|
83
84
|
end
|
84
|
-
|
85
|
+
|
85
86
|
if attributes[:'portSpeedShapeName']
|
86
87
|
self.port_speed_shape_name = attributes[:'portSpeedShapeName']
|
87
88
|
end
|
88
|
-
|
89
|
+
|
89
90
|
end
|
90
91
|
|
91
92
|
# Checks equality by comparing each attribute.
|
@@ -9,6 +9,8 @@ module OracleBMC
|
|
9
9
|
attr_accessor :compartment_id
|
10
10
|
|
11
11
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
12
|
+
# Avoid entering confidential information.
|
13
|
+
#
|
12
14
|
# @return [String]
|
13
15
|
attr_accessor :display_name
|
14
16
|
|
@@ -21,15 +23,14 @@ module OracleBMC
|
|
21
23
|
# convert string to symbol for hash key
|
22
24
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
23
25
|
|
24
|
-
|
25
26
|
if attributes[:'compartmentId']
|
26
27
|
self.compartment_id = attributes[:'compartmentId']
|
27
28
|
end
|
28
|
-
|
29
|
+
|
29
30
|
if attributes[:'displayName']
|
30
31
|
self.display_name = attributes[:'displayName']
|
31
32
|
end
|
32
|
-
|
33
|
+
|
33
34
|
end
|
34
35
|
|
35
36
|
# Checks equality by comparing each attribute.
|