Class: Apcera::VirtualNetworkEndpoint
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::VirtualNetworkEndpoint
- Defined in:
- lib/apcera/models/virtual_network_endpoint.rb
Instance Attribute Summary collapse
-
#end_point_interface ⇒ Object
Returns the value of attribute end_point_interface.
-
#fqn ⇒ Object
Returns the value of attribute fqn.
-
#network_fqn ⇒ Object
Returns the value of attribute network_fqn.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
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 = {}) ⇒ VirtualNetworkEndpoint
constructor
A new instance of VirtualNetworkEndpoint.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ VirtualNetworkEndpoint
Returns a new instance of VirtualNetworkEndpoint.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 35 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[:'end_point_interface'] if (value = attributes[:'end_point_interface']).is_a?(Array) self.end_point_interface = value end end if attributes[:'fqn'] self.fqn = attributes[:'fqn'] end if attributes[:'network_fqn'] self.network_fqn = attributes[:'network_fqn'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end |
Instance Attribute Details
#end_point_interface ⇒ Object
Returns the value of attribute end_point_interface.
4 5 6 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 4 def end_point_interface @end_point_interface end |
#fqn ⇒ Object
Returns the value of attribute fqn.
4 5 6 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 4 def fqn @fqn end |
#network_fqn ⇒ Object
Returns the value of attribute network_fqn.
4 5 6 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 4 def network_fqn @network_fqn end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 4 def uuid @uuid 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 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 6 def self.attribute_map { # A list of interfaces associated with the job. :'end_point_interface' => :'end_point_interface', # Fully-qualified name of the job the endpoint is attached to. :'fqn' => :'fqn', # Fully-qualified name of the network that the endpoint belongs to. :'network_fqn' => :'network_fqn', # The UUID of the network endpoint. :'uuid' => :'uuid' } end |
.swagger_types ⇒ Object
attribute type
25 26 27 28 29 30 31 32 33 |
# File 'lib/apcera/models/virtual_network_endpoint.rb', line 25 def self.swagger_types { :'end_point_interface' => :'Array<VirtualNetworkEndpointInterface>', :'fqn' => :'String', :'network_fqn' => :'String', :'uuid' => :'String' } end |