Class: NSXDriver::TransportZone
- Inherits:
-
NSXComponent
- Object
- NSXComponent
- NSXDriver::TransportZone
- Defined in:
- lib/transport_zone.rb
Overview
Class Transport Zone
Instance Attribute Summary collapse
-
#tz_id ⇒ Object
readonly
ATTRIBUTES.
Class Method Summary collapse
Instance Method Summary collapse
-
#tzs ⇒ Object
METHODS Return the transport zones list.
Methods inherited from NSXComponent
Constructor Details
This class inherits a constructor from NSXDriver::NSXComponent
Instance Attribute Details
#tz_id ⇒ Object (readonly)
ATTRIBUTES
22 23 24 |
# File 'lib/transport_zone.rb', line 22 def tz_id @tz_id end |
Class Method Details
.new_child(nsx_client) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/transport_zone.rb', line 24 def self.new_child(nsx_client) case nsx_client.nsx_type.upcase when NSXConstants::NSXT NSXTtz.new(nsx_client) when NSXConstants::NSXV NSXVtz.new(nsx_client) else error_msg = "Unknown NSX type: #{nsx_client.nsx_type}" error = NSXError::UnknownObject.new(error_msg) raise error end end |
Instance Method Details
#tzs ⇒ Object
METHODS Return the transport zones list
39 |
# File 'lib/transport_zone.rb', line 39 def tzs; end |