class VCloudSdk::Xml::NetworkConfigSection
Public Instance Methods
add_network_config(config)
click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/network_config_section.rb, line 8 def add_network_config(config) unless config.is_a? NetworkConfig fail CloudError, "Only NetworkConfig can be added to #{self.class}" end add_child(config) end
delete_network_config(net_name)
click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/network_config_section.rb, line 15 def delete_network_config(net_name) net_config = network_configs.find { |n| n.network_name == net_name } fail ObjectNotFoundError, "Cannot delete network #{net_name}: not found" unless net_config net_config.node.remove end
network_configs()
click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/network_config_section.rb, line 4 def network_configs get_nodes("NetworkConfig") end