Class: VCloudSdk::NetworkConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_vcloud_sdk/network_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_name, vapp_net_name = nil, fence_mode = Xml::FENCE_MODES[:BRIDGED]) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



6
7
8
9
10
11
12
13
# File 'lib/ruby_vcloud_sdk/network_config.rb', line 6

def initialize(
    network_name,
    vapp_net_name = nil,
    fence_mode = Xml::FENCE_MODES[:BRIDGED])
  @network_name = network_name
  @vapp_net_name = vapp_net_name
  @fence_mode = fence_mode
end

Instance Attribute Details

#fence_modeObject (readonly)

Returns the value of attribute fence_mode.



4
5
6
# File 'lib/ruby_vcloud_sdk/network_config.rb', line 4

def fence_mode
  @fence_mode
end

#network_nameObject (readonly)

Returns the value of attribute network_name.



4
5
6
# File 'lib/ruby_vcloud_sdk/network_config.rb', line 4

def network_name
  @network_name
end

#vapp_net_nameObject (readonly)

Returns the value of attribute vapp_net_name.



4
5
6
# File 'lib/ruby_vcloud_sdk/network_config.rb', line 4

def vapp_net_name
  @vapp_net_name
end