Class: NSXDriver::NSXVtz

Inherits:
TransportZone show all
Defined in:
lib/nsxv_tz.rb

Overview

Class Transport Zone

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TransportZone

new_child

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_idObject (readonly)

ATTRIBUTES



22
23
24
# File 'lib/nsxv_tz.rb', line 22

def tz_id
  @tz_id
end

Instance Method Details

#tzsObject

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