Class: Apcera::VirtualNetwork
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::VirtualNetwork
- Defined in:
- lib/apcera/models/virtual_network.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by ⇒ Object
Returns the value of attribute created_by.
-
#description ⇒ Object
Returns the value of attribute description.
-
#fqn ⇒ Object
Returns the value of attribute fqn.
-
#name ⇒ Object
Returns the value of attribute name.
-
#network_end_points ⇒ Object
Returns the value of attribute network_end_points.
-
#subnet_info ⇒ Object
Returns the value of attribute subnet_info.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#updated_by ⇒ Object
Returns the value of attribute updated_by.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
-
#version_id ⇒ Object
Returns the value of attribute version_id.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ VirtualNetwork
constructor
A new instance of VirtualNetwork.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ VirtualNetwork
Returns a new instance of VirtualNetwork.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/apcera/models/virtual_network.rb', line 63 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'created_at'] self.created_at = attributes[:'created_at'] end if attributes[:'created_by'] self.created_by = attributes[:'created_by'] end if attributes[:'description'] self.description = attributes[:'description'] end if attributes[:'fqn'] self.fqn = attributes[:'fqn'] end if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'network_end_points'] if (value = attributes[:'network_end_points']).is_a?(Array) self.network_end_points = value end end if attributes[:'subnet_info'] self.subnet_info = attributes[:'subnet_info'] end if attributes[:'updated_at'] self.updated_at = attributes[:'updated_at'] end if attributes[:'updated_by'] self.updated_by = attributes[:'updated_by'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end if attributes[:'version_id'] self.version_id = attributes[:'version_id'] end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def created_at @created_at end |
#created_by ⇒ Object
Returns the value of attribute created_by.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def created_by @created_by end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def description @description end |
#fqn ⇒ Object
Returns the value of attribute fqn.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def fqn @fqn end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def name @name end |
#network_end_points ⇒ Object
Returns the value of attribute network_end_points.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def network_end_points @network_end_points end |
#subnet_info ⇒ Object
Returns the value of attribute subnet_info.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def subnet_info @subnet_info end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def updated_at @updated_at end |
#updated_by ⇒ Object
Returns the value of attribute updated_by.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def updated_by @updated_by end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def uuid @uuid end |
#version_id ⇒ Object
Returns the value of attribute version_id.
4 5 6 |
# File 'lib/apcera/models/virtual_network.rb', line 4 def version_id @version_id end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/apcera/models/virtual_network.rb', line 6 def self.attribute_map { # UNIX timestamp when the network was created. :'created_at' => :'created_at', # Principal name of user who created the network. :'created_by' => :'created_by', # Network description. :'description' => :'description', # Network's fully-qualified name. :'fqn' => :'fqn', # Network's local name. :'name' => :'name', # A list of network endpoints in the network. :'network_end_points' => :'network_end_points', # Contains information about the network's subnet. :'subnet_info' => :'subnet_info', # UNIX timestamp when the network was last updated. :'updated_at' => :'updated_at', # Principal name of user who last updated the network. :'updated_by' => :'updated_by', # Network's unique ID. :'uuid' => :'uuid', # Auto-incrementing version number for the network. :'version_id' => :'version_id' } end |
.swagger_types ⇒ Object
attribute type
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/apcera/models/virtual_network.rb', line 46 def self.swagger_types { :'created_at' => :'Float', :'created_by' => :'String', :'description' => :'String', :'fqn' => :'String', :'name' => :'String', :'network_end_points' => :'Array<VirtualNetworkEndpoint>', :'subnet_info' => :'SubnetInfo', :'updated_at' => :'Float', :'updated_by' => :'String', :'uuid' => :'String', :'version_id' => :'Integer' } end |