oraclebmc 1.2.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.md → README_BMCS.md} +21 -26
- data/lib/oraclebmc.rb +1 -19
- metadata +16 -259
- data/lib/oraclebmc/api_client.rb +0 -306
- data/lib/oraclebmc/config.rb +0 -80
- data/lib/oraclebmc/config_file_loader.rb +0 -85
- data/lib/oraclebmc/core/blockstorage_client.rb +0 -460
- data/lib/oraclebmc/core/compute_client.rb +0 -1267
- data/lib/oraclebmc/core/core.rb +0 -112
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +0 -137
- data/lib/oraclebmc/core/models/attach_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/attach_volume_details.rb +0 -165
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +0 -120
- data/lib/oraclebmc/core/models/console_history.rb +0 -213
- data/lib/oraclebmc/core/models/cpe.rb +0 -169
- data/lib/oraclebmc/core/models/create_cpe_details.rb +0 -145
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +0 -204
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +0 -142
- data/lib/oraclebmc/core/models/create_drg_details.rb +0 -131
- data/lib/oraclebmc/core/models/create_image_details.rb +0 -159
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +0 -168
- data/lib/oraclebmc/core/models/create_private_ip_details.rb +0 -173
- data/lib/oraclebmc/core/models/create_route_table_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_security_list_details.rb +0 -164
- data/lib/oraclebmc/core/models/create_subnet_details.rb +0 -257
- data/lib/oraclebmc/core/models/create_vcn_details.rb +0 -171
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +0 -260
- data/lib/oraclebmc/core/models/create_vnic_details.rb +0 -214
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_volume_details.rb +0 -170
- data/lib/oraclebmc/core/models/cross_connect.rb +0 -235
- data/lib/oraclebmc/core/models/cross_connect_group.rb +0 -187
- data/lib/oraclebmc/core/models/cross_connect_location.rb +0 -134
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +0 -190
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +0 -137
- data/lib/oraclebmc/core/models/cross_connect_status.rb +0 -200
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +0 -171
- data/lib/oraclebmc/core/models/dhcp_option.rb +0 -135
- data/lib/oraclebmc/core/models/dhcp_options.rb +0 -208
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +0 -141
- data/lib/oraclebmc/core/models/drg.rb +0 -186
- data/lib/oraclebmc/core/models/drg_attachment.rb +0 -208
- data/lib/oraclebmc/core/models/egress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/export_image_details.rb +0 -134
- data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +0 -130
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +0 -145
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +0 -212
- data/lib/oraclebmc/core/models/icmp_options.rb +0 -131
- data/lib/oraclebmc/core/models/image.rb +0 -245
- data/lib/oraclebmc/core/models/image_source_details.rb +0 -134
- data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +0 -128
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/instance.rb +0 -307
- data/lib/oraclebmc/core/models/instance_credentials.rb +0 -131
- data/lib/oraclebmc/core/models/internet_gateway.rb +0 -210
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +0 -223
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +0 -153
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +0 -156
- data/lib/oraclebmc/core/models/launch_instance_details.rb +0 -336
- data/lib/oraclebmc/core/models/letter_of_authority.rb +0 -194
- data/lib/oraclebmc/core/models/port_range.rb +0 -133
- data/lib/oraclebmc/core/models/private_ip.rb +0 -248
- data/lib/oraclebmc/core/models/route_rule.rb +0 -135
- data/lib/oraclebmc/core/models/route_table.rb +0 -208
- data/lib/oraclebmc/core/models/security_list.rb +0 -219
- data/lib/oraclebmc/core/models/shape.rb +0 -122
- data/lib/oraclebmc/core/models/subnet.rb +0 -351
- data/lib/oraclebmc/core/models/tcp_options.rb +0 -135
- data/lib/oraclebmc/core/models/tunnel_config.rb +0 -151
- data/lib/oraclebmc/core/models/tunnel_status.rb +0 -178
- data/lib/oraclebmc/core/models/udp_options.rb +0 -135
- data/lib/oraclebmc/core/models/update_cpe_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +0 -138
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +0 -132
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_drg_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_image_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_instance_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_private_ip_details.rb +0 -157
- data/lib/oraclebmc/core/models/update_route_table_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_security_list_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_subnet_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_vcn_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +0 -240
- data/lib/oraclebmc/core/models/update_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_volume_details.rb +0 -122
- data/lib/oraclebmc/core/models/vcn.rb +0 -276
- data/lib/oraclebmc/core/models/virtual_circuit.rb +0 -395
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +0 -137
- data/lib/oraclebmc/core/models/vnic.rb +0 -287
- data/lib/oraclebmc/core/models/vnic_attachment.rb +0 -250
- data/lib/oraclebmc/core/models/volume.rb +0 -210
- data/lib/oraclebmc/core/models/volume_attachment.rb +0 -246
- data/lib/oraclebmc/core/models/volume_backup.rb +0 -235
- data/lib/oraclebmc/core/util.rb +0 -1
- data/lib/oraclebmc/core/virtual_network_client.rb +0 -3419
- data/lib/oraclebmc/errors.rb +0 -80
- data/lib/oraclebmc/global_context.rb +0 -21
- data/lib/oraclebmc/identity/identity.rb +0 -51
- data/lib/oraclebmc/identity/identity_client.rb +0 -1983
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +0 -131
- data/lib/oraclebmc/identity/models/api_key.rb +0 -211
- data/lib/oraclebmc/identity/models/availability_domain.rb +0 -131
- data/lib/oraclebmc/identity/models/compartment.rb +0 -211
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +0 -120
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +0 -145
- data/lib/oraclebmc/identity/models/create_group_details.rb +0 -144
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +0 -212
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +0 -133
- data/lib/oraclebmc/identity/models/create_policy_details.rb +0 -173
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +0 -127
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +0 -154
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +0 -121
- data/lib/oraclebmc/identity/models/create_user_details.rb +0 -144
- data/lib/oraclebmc/identity/models/group.rb +0 -211
- data/lib/oraclebmc/identity/models/identity_provider.rb +0 -256
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +0 -220
- data/lib/oraclebmc/identity/models/policy.rb +0 -237
- data/lib/oraclebmc/identity/models/region.rb +0 -141
- data/lib/oraclebmc/identity/models/region_subscription.rb +0 -178
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +0 -180
- data/lib/oraclebmc/identity/models/swift_password.rb +0 -226
- data/lib/oraclebmc/identity/models/tenancy.rb +0 -158
- data/lib/oraclebmc/identity/models/ui_password.rb +0 -187
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_group_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +0 -160
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +0 -131
- data/lib/oraclebmc/identity/models/update_policy_details.rb +0 -148
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +0 -145
- data/lib/oraclebmc/identity/models/update_state_details.rb +0 -121
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_user_details.rb +0 -120
- data/lib/oraclebmc/identity/models/user.rb +0 -217
- data/lib/oraclebmc/identity/models/user_group_membership.rb +0 -209
- data/lib/oraclebmc/identity/util.rb +0 -1
- data/lib/oraclebmc/internal/internal.rb +0 -11
- data/lib/oraclebmc/internal/util.rb +0 -69
- data/lib/oraclebmc/load_balancer/load_balancer.rb +0 -46
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +0 -1281
- data/lib/oraclebmc/load_balancer/models/backend.rb +0 -220
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +0 -179
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/certificate.rb +0 -167
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +0 -219
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +0 -223
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +0 -222
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +0 -139
- data/lib/oraclebmc/load_balancer/models/listener.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +0 -280
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +0 -141
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +0 -221
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +0 -123
- data/lib/oraclebmc/load_balancer/models/work_request.rb +0 -229
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +0 -145
- data/lib/oraclebmc/load_balancer/util.rb +0 -55
- data/lib/oraclebmc/regions.rb +0 -41
- data/lib/oraclebmc/response.rb +0 -86
- data/lib/oraclebmc/signer.rb +0 -119
- data/lib/oraclebmc/version.rb +0 -5
- data/lib/oraclebmc/waiter.rb +0 -111
@@ -1,144 +0,0 @@
|
|
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::UpdateVnicDetails
|
7
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
|
-
# @return [String]
|
9
|
-
attr_accessor :display_name
|
10
|
-
|
11
|
-
# The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname
|
12
|
-
# portion of the primary private IP's fully qualified domain name (FQDN)
|
13
|
-
# (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`).
|
14
|
-
# Must be unique across all VNICs in the subnet and comply with
|
15
|
-
# [RFC 952](https://tools.ietf.org/html/rfc952) and
|
16
|
-
# [RFC 1123](https://tools.ietf.org/html/rfc1123).
|
17
|
-
# The value appears in the {Vnic} object and also the
|
18
|
-
# {PrivateIp} object returned by
|
19
|
-
# {#list_private_ips list_private_ips} and
|
20
|
-
# {#get_private_ip get_private_ip}.
|
21
|
-
#
|
22
|
-
# For more information, see
|
23
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
24
|
-
#
|
25
|
-
# @return [String]
|
26
|
-
attr_accessor :hostname_label
|
27
|
-
|
28
|
-
|
29
|
-
# Initializes the object
|
30
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
31
|
-
def initialize(attributes = {})
|
32
|
-
return unless attributes.is_a?(Hash)
|
33
|
-
|
34
|
-
# convert string to symbol for hash key
|
35
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
36
|
-
|
37
|
-
if attributes[:'displayName']
|
38
|
-
self.display_name = attributes[:'displayName']
|
39
|
-
end
|
40
|
-
|
41
|
-
if attributes[:'hostnameLabel']
|
42
|
-
self.hostname_label = attributes[:'hostnameLabel']
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
# Checks equality by comparing each attribute.
|
48
|
-
# @param [Object] other_object to be compared
|
49
|
-
def ==(other_object)
|
50
|
-
return true if self.equal?(other_object)
|
51
|
-
self.class == other_object.class &&
|
52
|
-
display_name == other_object.display_name &&
|
53
|
-
hostname_label == other_object.hostname_label
|
54
|
-
end
|
55
|
-
|
56
|
-
# @see the `==` method
|
57
|
-
# @param [Object] other_object to be compared
|
58
|
-
def eql?(other_object)
|
59
|
-
self == other_object
|
60
|
-
end
|
61
|
-
|
62
|
-
# Calculates hash code according to all attributes.
|
63
|
-
# @return [Fixnum] Hash code
|
64
|
-
def hash
|
65
|
-
[display_name, hostname_label].hash
|
66
|
-
end
|
67
|
-
|
68
|
-
# Builds the object from hash
|
69
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
-
# @return [Object] Returns the model itself
|
71
|
-
def build_from_hash(attributes)
|
72
|
-
return nil unless attributes.is_a?(Hash)
|
73
|
-
self.class.swagger_types.each_pair do |key, type|
|
74
|
-
if type =~ /^Array<(.*)>/i
|
75
|
-
# check to ensure the input is an array given that the the attribute
|
76
|
-
# is documented as an array but the input is not
|
77
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
78
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
79
|
-
end
|
80
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
81
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
82
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
83
|
-
end
|
84
|
-
|
85
|
-
self
|
86
|
-
end
|
87
|
-
|
88
|
-
# Returns the string representation of the object
|
89
|
-
# @return [String] String presentation of the object
|
90
|
-
def to_s
|
91
|
-
to_hash.to_s
|
92
|
-
end
|
93
|
-
|
94
|
-
# Returns the object in the form of hash
|
95
|
-
# @return [Hash] Returns the object in the form of hash
|
96
|
-
def to_hash
|
97
|
-
hash = {}
|
98
|
-
self.class.attribute_map.each_pair do |attr, param|
|
99
|
-
value = self.send(attr)
|
100
|
-
next if value.nil?
|
101
|
-
hash[param] = _to_hash(value)
|
102
|
-
end
|
103
|
-
hash
|
104
|
-
end
|
105
|
-
|
106
|
-
private
|
107
|
-
|
108
|
-
# Outputs non-array value in the form of hash
|
109
|
-
# For object, use to_hash. Otherwise, just return the value
|
110
|
-
# @param [Object] value Any valid value
|
111
|
-
# @return [Hash] Returns the value in the form of hash
|
112
|
-
def _to_hash(value)
|
113
|
-
if value.is_a?(Array)
|
114
|
-
value.compact.map{ |v| _to_hash(v) }
|
115
|
-
elsif value.is_a?(Hash)
|
116
|
-
{}.tap do |hash|
|
117
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
118
|
-
end
|
119
|
-
elsif value.respond_to? :to_hash
|
120
|
-
value.to_hash
|
121
|
-
else
|
122
|
-
value
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
129
|
-
def self.attribute_map
|
130
|
-
{
|
131
|
-
:'display_name' => :'displayName',
|
132
|
-
:'hostname_label' => :'hostnameLabel'
|
133
|
-
}
|
134
|
-
end
|
135
|
-
|
136
|
-
# Attribute type mapping.
|
137
|
-
def self.swagger_types
|
138
|
-
{
|
139
|
-
:'display_name' => :'String',
|
140
|
-
:'hostname_label' => :'String'
|
141
|
-
}
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
@@ -1,122 +0,0 @@
|
|
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::UpdateVolumeBackupDetails
|
7
|
-
# A friendly user-specified name for the volume backup.
|
8
|
-
# Avoid entering confidential information.
|
9
|
-
#
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :display_name
|
12
|
-
|
13
|
-
|
14
|
-
# Initializes the object
|
15
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
16
|
-
def initialize(attributes = {})
|
17
|
-
return unless attributes.is_a?(Hash)
|
18
|
-
|
19
|
-
# convert string to symbol for hash key
|
20
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
|
-
|
22
|
-
if attributes[:'displayName']
|
23
|
-
self.display_name = attributes[:'displayName']
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
# Checks equality by comparing each attribute.
|
29
|
-
# @param [Object] other_object to be compared
|
30
|
-
def ==(other_object)
|
31
|
-
return true if self.equal?(other_object)
|
32
|
-
self.class == other_object.class &&
|
33
|
-
display_name == other_object.display_name
|
34
|
-
end
|
35
|
-
|
36
|
-
# @see the `==` method
|
37
|
-
# @param [Object] other_object to be compared
|
38
|
-
def eql?(other_object)
|
39
|
-
self == other_object
|
40
|
-
end
|
41
|
-
|
42
|
-
# Calculates hash code according to all attributes.
|
43
|
-
# @return [Fixnum] Hash code
|
44
|
-
def hash
|
45
|
-
[display_name].hash
|
46
|
-
end
|
47
|
-
|
48
|
-
# Builds the object from hash
|
49
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
-
# @return [Object] Returns the model itself
|
51
|
-
def build_from_hash(attributes)
|
52
|
-
return nil unless attributes.is_a?(Hash)
|
53
|
-
self.class.swagger_types.each_pair do |key, type|
|
54
|
-
if type =~ /^Array<(.*)>/i
|
55
|
-
# check to ensure the input is an array given that the the attribute
|
56
|
-
# is documented as an array but the input is not
|
57
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
59
|
-
end
|
60
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
|
-
end
|
64
|
-
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
# Returns the string representation of the object
|
69
|
-
# @return [String] String presentation of the object
|
70
|
-
def to_s
|
71
|
-
to_hash.to_s
|
72
|
-
end
|
73
|
-
|
74
|
-
# Returns the object in the form of hash
|
75
|
-
# @return [Hash] Returns the object in the form of hash
|
76
|
-
def to_hash
|
77
|
-
hash = {}
|
78
|
-
self.class.attribute_map.each_pair do |attr, param|
|
79
|
-
value = self.send(attr)
|
80
|
-
next if value.nil?
|
81
|
-
hash[param] = _to_hash(value)
|
82
|
-
end
|
83
|
-
hash
|
84
|
-
end
|
85
|
-
|
86
|
-
private
|
87
|
-
|
88
|
-
# Outputs non-array value in the form of hash
|
89
|
-
# For object, use to_hash. Otherwise, just return the value
|
90
|
-
# @param [Object] value Any valid value
|
91
|
-
# @return [Hash] Returns the value in the form of hash
|
92
|
-
def _to_hash(value)
|
93
|
-
if value.is_a?(Array)
|
94
|
-
value.compact.map{ |v| _to_hash(v) }
|
95
|
-
elsif value.is_a?(Hash)
|
96
|
-
{}.tap do |hash|
|
97
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
98
|
-
end
|
99
|
-
elsif value.respond_to? :to_hash
|
100
|
-
value.to_hash
|
101
|
-
else
|
102
|
-
value
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
109
|
-
def self.attribute_map
|
110
|
-
{
|
111
|
-
:'display_name' => :'displayName'
|
112
|
-
}
|
113
|
-
end
|
114
|
-
|
115
|
-
# Attribute type mapping.
|
116
|
-
def self.swagger_types
|
117
|
-
{
|
118
|
-
:'display_name' => :'String'
|
119
|
-
}
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
@@ -1,122 +0,0 @@
|
|
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::UpdateVolumeDetails
|
7
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
|
-
# Avoid entering confidential information.
|
9
|
-
#
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :display_name
|
12
|
-
|
13
|
-
|
14
|
-
# Initializes the object
|
15
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
16
|
-
def initialize(attributes = {})
|
17
|
-
return unless attributes.is_a?(Hash)
|
18
|
-
|
19
|
-
# convert string to symbol for hash key
|
20
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
|
-
|
22
|
-
if attributes[:'displayName']
|
23
|
-
self.display_name = attributes[:'displayName']
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
# Checks equality by comparing each attribute.
|
29
|
-
# @param [Object] other_object to be compared
|
30
|
-
def ==(other_object)
|
31
|
-
return true if self.equal?(other_object)
|
32
|
-
self.class == other_object.class &&
|
33
|
-
display_name == other_object.display_name
|
34
|
-
end
|
35
|
-
|
36
|
-
# @see the `==` method
|
37
|
-
# @param [Object] other_object to be compared
|
38
|
-
def eql?(other_object)
|
39
|
-
self == other_object
|
40
|
-
end
|
41
|
-
|
42
|
-
# Calculates hash code according to all attributes.
|
43
|
-
# @return [Fixnum] Hash code
|
44
|
-
def hash
|
45
|
-
[display_name].hash
|
46
|
-
end
|
47
|
-
|
48
|
-
# Builds the object from hash
|
49
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
-
# @return [Object] Returns the model itself
|
51
|
-
def build_from_hash(attributes)
|
52
|
-
return nil unless attributes.is_a?(Hash)
|
53
|
-
self.class.swagger_types.each_pair do |key, type|
|
54
|
-
if type =~ /^Array<(.*)>/i
|
55
|
-
# check to ensure the input is an array given that the the attribute
|
56
|
-
# is documented as an array but the input is not
|
57
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
59
|
-
end
|
60
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
|
-
end
|
64
|
-
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
# Returns the string representation of the object
|
69
|
-
# @return [String] String presentation of the object
|
70
|
-
def to_s
|
71
|
-
to_hash.to_s
|
72
|
-
end
|
73
|
-
|
74
|
-
# Returns the object in the form of hash
|
75
|
-
# @return [Hash] Returns the object in the form of hash
|
76
|
-
def to_hash
|
77
|
-
hash = {}
|
78
|
-
self.class.attribute_map.each_pair do |attr, param|
|
79
|
-
value = self.send(attr)
|
80
|
-
next if value.nil?
|
81
|
-
hash[param] = _to_hash(value)
|
82
|
-
end
|
83
|
-
hash
|
84
|
-
end
|
85
|
-
|
86
|
-
private
|
87
|
-
|
88
|
-
# Outputs non-array value in the form of hash
|
89
|
-
# For object, use to_hash. Otherwise, just return the value
|
90
|
-
# @param [Object] value Any valid value
|
91
|
-
# @return [Hash] Returns the value in the form of hash
|
92
|
-
def _to_hash(value)
|
93
|
-
if value.is_a?(Array)
|
94
|
-
value.compact.map{ |v| _to_hash(v) }
|
95
|
-
elsif value.is_a?(Hash)
|
96
|
-
{}.tap do |hash|
|
97
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
98
|
-
end
|
99
|
-
elsif value.respond_to? :to_hash
|
100
|
-
value.to_hash
|
101
|
-
else
|
102
|
-
value
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
109
|
-
def self.attribute_map
|
110
|
-
{
|
111
|
-
:'display_name' => :'displayName'
|
112
|
-
}
|
113
|
-
end
|
114
|
-
|
115
|
-
# Attribute type mapping.
|
116
|
-
def self.swagger_types
|
117
|
-
{
|
118
|
-
:'display_name' => :'String'
|
119
|
-
}
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
@@ -1,276 +0,0 @@
|
|
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::Vcn
|
7
|
-
|
8
|
-
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING',
|
9
|
-
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE',
|
10
|
-
LIFECYCLE_STATE_TERMINATING = 'TERMINATING',
|
11
|
-
LIFECYCLE_STATE_TERMINATED = 'TERMINATED',
|
12
|
-
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
13
|
-
|
14
|
-
# The CIDR IP address block of the VCN.
|
15
|
-
#
|
16
|
-
# Example: `172.16.0.0/16`
|
17
|
-
#
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :cidr_block
|
20
|
-
|
21
|
-
# The OCID of the compartment containing the VCN.
|
22
|
-
# @return [String]
|
23
|
-
attr_accessor :compartment_id
|
24
|
-
|
25
|
-
# The OCID for the VCN's default set of DHCP options.
|
26
|
-
#
|
27
|
-
# @return [String]
|
28
|
-
attr_accessor :default_dhcp_options_id
|
29
|
-
|
30
|
-
# The OCID for the VCN's default route table.
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :default_route_table_id
|
33
|
-
|
34
|
-
# The OCID for the VCN's default security list.
|
35
|
-
# @return [String]
|
36
|
-
attr_accessor :default_security_list_id
|
37
|
-
|
38
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
39
|
-
# Avoid entering confidential information.
|
40
|
-
#
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :display_name
|
43
|
-
|
44
|
-
# A DNS label for the VCN, used in conjunction with the VNIC's hostname and
|
45
|
-
# subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC
|
46
|
-
# within this subnet (e.g., `bminstance-1.subnet123.vcn1.oraclevcn.com`).
|
47
|
-
# Must be an alphanumeric string that begins with a letter.
|
48
|
-
# The value cannot be changed.
|
49
|
-
#
|
50
|
-
# The absence of this parameter means the Internet and VCN Resolver will
|
51
|
-
# not work for this VCN.
|
52
|
-
#
|
53
|
-
# For more information, see
|
54
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
55
|
-
#
|
56
|
-
# Example: `vcn1`
|
57
|
-
#
|
58
|
-
# @return [String]
|
59
|
-
attr_accessor :dns_label
|
60
|
-
|
61
|
-
# The VCN's Oracle ID (OCID).
|
62
|
-
# @return [String]
|
63
|
-
attr_accessor :id
|
64
|
-
|
65
|
-
# The VCN's current state.
|
66
|
-
# @return [String]
|
67
|
-
attr_accessor :lifecycle_state
|
68
|
-
|
69
|
-
# The date and time the VCN was created, in the format defined by RFC3339.
|
70
|
-
#
|
71
|
-
# Example: `2016-08-25T21:10:29.600Z`
|
72
|
-
#
|
73
|
-
# @return [DateTime]
|
74
|
-
attr_accessor :time_created
|
75
|
-
|
76
|
-
# The VCN's domain name, which consists of the VCN's DNS label, and the
|
77
|
-
# `oraclevcn.com` domain.
|
78
|
-
#
|
79
|
-
# For more information, see
|
80
|
-
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
81
|
-
#
|
82
|
-
# Example: `vcn1.oraclevcn.com`
|
83
|
-
#
|
84
|
-
# @return [String]
|
85
|
-
attr_accessor :vcn_domain_name
|
86
|
-
|
87
|
-
|
88
|
-
# Initializes the object
|
89
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
-
def initialize(attributes = {})
|
91
|
-
return unless attributes.is_a?(Hash)
|
92
|
-
|
93
|
-
# convert string to symbol for hash key
|
94
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
95
|
-
|
96
|
-
if attributes[:'cidrBlock']
|
97
|
-
self.cidr_block = attributes[:'cidrBlock']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes[:'compartmentId']
|
101
|
-
self.compartment_id = attributes[:'compartmentId']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes[:'defaultDhcpOptionsId']
|
105
|
-
self.default_dhcp_options_id = attributes[:'defaultDhcpOptionsId']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes[:'defaultRouteTableId']
|
109
|
-
self.default_route_table_id = attributes[:'defaultRouteTableId']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes[:'defaultSecurityListId']
|
113
|
-
self.default_security_list_id = attributes[:'defaultSecurityListId']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes[:'displayName']
|
117
|
-
self.display_name = attributes[:'displayName']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes[:'dnsLabel']
|
121
|
-
self.dns_label = attributes[:'dnsLabel']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes[:'id']
|
125
|
-
self.id = attributes[:'id']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes[:'lifecycleState']
|
129
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes[:'timeCreated']
|
133
|
-
self.time_created = attributes[:'timeCreated']
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes[:'vcnDomainName']
|
137
|
-
self.vcn_domain_name = attributes[:'vcnDomainName']
|
138
|
-
end
|
139
|
-
|
140
|
-
end
|
141
|
-
|
142
|
-
# Custom attribute writer method checking allowed values (enum).
|
143
|
-
# @param [Object] lifecycle_state Object to be assigned
|
144
|
-
def lifecycle_state=(lifecycle_state)
|
145
|
-
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
146
|
-
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
147
|
-
else
|
148
|
-
@lifecycle_state = lifecycle_state
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
# Checks equality by comparing each attribute.
|
153
|
-
# @param [Object] other_object to be compared
|
154
|
-
def ==(other_object)
|
155
|
-
return true if self.equal?(other_object)
|
156
|
-
self.class == other_object.class &&
|
157
|
-
cidr_block == other_object.cidr_block &&
|
158
|
-
compartment_id == other_object.compartment_id &&
|
159
|
-
default_dhcp_options_id == other_object.default_dhcp_options_id &&
|
160
|
-
default_route_table_id == other_object.default_route_table_id &&
|
161
|
-
default_security_list_id == other_object.default_security_list_id &&
|
162
|
-
display_name == other_object.display_name &&
|
163
|
-
dns_label == other_object.dns_label &&
|
164
|
-
id == other_object.id &&
|
165
|
-
lifecycle_state == other_object.lifecycle_state &&
|
166
|
-
time_created == other_object.time_created &&
|
167
|
-
vcn_domain_name == other_object.vcn_domain_name
|
168
|
-
end
|
169
|
-
|
170
|
-
# @see the `==` method
|
171
|
-
# @param [Object] other_object to be compared
|
172
|
-
def eql?(other_object)
|
173
|
-
self == other_object
|
174
|
-
end
|
175
|
-
|
176
|
-
# Calculates hash code according to all attributes.
|
177
|
-
# @return [Fixnum] Hash code
|
178
|
-
def hash
|
179
|
-
[cidr_block, compartment_id, default_dhcp_options_id, default_route_table_id, default_security_list_id, display_name, dns_label, id, lifecycle_state, time_created, vcn_domain_name].hash
|
180
|
-
end
|
181
|
-
|
182
|
-
# Builds the object from hash
|
183
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
184
|
-
# @return [Object] Returns the model itself
|
185
|
-
def build_from_hash(attributes)
|
186
|
-
return nil unless attributes.is_a?(Hash)
|
187
|
-
self.class.swagger_types.each_pair do |key, type|
|
188
|
-
if type =~ /^Array<(.*)>/i
|
189
|
-
# check to ensure the input is an array given that the the attribute
|
190
|
-
# is documented as an array but the input is not
|
191
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
193
|
-
end
|
194
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
195
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
196
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
197
|
-
end
|
198
|
-
|
199
|
-
self
|
200
|
-
end
|
201
|
-
|
202
|
-
# Returns the string representation of the object
|
203
|
-
# @return [String] String presentation of the object
|
204
|
-
def to_s
|
205
|
-
to_hash.to_s
|
206
|
-
end
|
207
|
-
|
208
|
-
# Returns the object in the form of hash
|
209
|
-
# @return [Hash] Returns the object in the form of hash
|
210
|
-
def to_hash
|
211
|
-
hash = {}
|
212
|
-
self.class.attribute_map.each_pair do |attr, param|
|
213
|
-
value = self.send(attr)
|
214
|
-
next if value.nil?
|
215
|
-
hash[param] = _to_hash(value)
|
216
|
-
end
|
217
|
-
hash
|
218
|
-
end
|
219
|
-
|
220
|
-
private
|
221
|
-
|
222
|
-
# Outputs non-array value in the form of hash
|
223
|
-
# For object, use to_hash. Otherwise, just return the value
|
224
|
-
# @param [Object] value Any valid value
|
225
|
-
# @return [Hash] Returns the value in the form of hash
|
226
|
-
def _to_hash(value)
|
227
|
-
if value.is_a?(Array)
|
228
|
-
value.compact.map{ |v| _to_hash(v) }
|
229
|
-
elsif value.is_a?(Hash)
|
230
|
-
{}.tap do |hash|
|
231
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
232
|
-
end
|
233
|
-
elsif value.respond_to? :to_hash
|
234
|
-
value.to_hash
|
235
|
-
else
|
236
|
-
value
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
243
|
-
def self.attribute_map
|
244
|
-
{
|
245
|
-
:'cidr_block' => :'cidrBlock',
|
246
|
-
:'compartment_id' => :'compartmentId',
|
247
|
-
:'default_dhcp_options_id' => :'defaultDhcpOptionsId',
|
248
|
-
:'default_route_table_id' => :'defaultRouteTableId',
|
249
|
-
:'default_security_list_id' => :'defaultSecurityListId',
|
250
|
-
:'display_name' => :'displayName',
|
251
|
-
:'dns_label' => :'dnsLabel',
|
252
|
-
:'id' => :'id',
|
253
|
-
:'lifecycle_state' => :'lifecycleState',
|
254
|
-
:'time_created' => :'timeCreated',
|
255
|
-
:'vcn_domain_name' => :'vcnDomainName'
|
256
|
-
}
|
257
|
-
end
|
258
|
-
|
259
|
-
# Attribute type mapping.
|
260
|
-
def self.swagger_types
|
261
|
-
{
|
262
|
-
:'cidr_block' => :'String',
|
263
|
-
:'compartment_id' => :'String',
|
264
|
-
:'default_dhcp_options_id' => :'String',
|
265
|
-
:'default_route_table_id' => :'String',
|
266
|
-
:'default_security_list_id' => :'String',
|
267
|
-
:'display_name' => :'String',
|
268
|
-
:'dns_label' => :'String',
|
269
|
-
:'id' => :'String',
|
270
|
-
:'lifecycle_state' => :'String',
|
271
|
-
:'time_created' => :'DateTime',
|
272
|
-
:'vcn_domain_name' => :'String'
|
273
|
-
}
|
274
|
-
end
|
275
|
-
end
|
276
|
-
end
|