Class: VCloudSdk::NetworkConfig
- Inherits:
-
Object
- Object
- VCloudSdk::NetworkConfig
- Defined in:
- lib/ruby_vcloud_sdk/network_config.rb
Instance Attribute Summary collapse
-
#fence_mode ⇒ Object
readonly
Returns the value of attribute fence_mode.
-
#network_name ⇒ Object
readonly
Returns the value of attribute network_name.
-
#vapp_net_name ⇒ Object
readonly
Returns the value of attribute vapp_net_name.
Instance Method Summary collapse
-
#initialize(network_name, vapp_net_name = nil, fence_mode = Xml::FENCE_MODES[:BRIDGED]) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
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_mode ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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 |