Class: NSXDriver::NSXVtz
- Inherits:
-
TransportZone
- Object
- NSXComponent
- TransportZone
- NSXDriver::NSXVtz
- Defined in:
- lib/nsxv_tz.rb
Overview
Class Transport Zone
Instance Attribute Summary collapse
-
#tz_id ⇒ Object
readonly
ATTRIBUTES.
Instance Method Summary collapse
-
#initialize(nsx_client) ⇒ NSXVtz
constructor
CONSTRUCTOR.
-
#tzs ⇒ Object
METHODS Return the transport zones list.
Methods inherited from TransportZone
Constructor Details
#initialize(nsx_client) ⇒ NSXVtz
CONSTRUCTOR
25 26 27 28 29 |
# File 'lib/nsxv_tz.rb', line 25 def initialize(nsx_client) super(nsx_client) # Construct base URLs @url_tzs_nsxv = NSXConstants::NSXV_TZS end |
Instance Attribute Details
#tz_id ⇒ Object (readonly)
ATTRIBUTES
22 23 24 |
# File 'lib/nsxv_tz.rb', line 22 def tz_id @tz_id end |
Instance Method Details
#tzs ⇒ Object
METHODS Return the transport zones list
33 34 35 36 37 |
# File 'lib/nsxv_tz.rb', line 33 def tzs @nsx_client .get(@url_tzs_nsxv) .xpath(NSXConstants::NSXV_TZS_XPATH) end |