Revision ebc810f4 src/oca/ruby/opennebula/zone.rb

View differences:

src/oca/ruby/opennebula/zone.rb
28 28
            :allocate       => "zone.allocate",
29 29
            :update         => "zone.update",
30 30
            :rename         => "zone.rename",
31
            :delete         => "zone.delete"
31
            :delete         => "zone.delete",
32
            :addserver      => "zone.addserver"
32 33
        }
33 34

  
34 35
        # Creates a Zone description with just its identifier
......
103 104
        def rename(name)
104 105
            return call(ZONE_METHODS[:rename], @pe_id, name)
105 106
        end
107

  
108
        # Adds servers to this Zone
109
        #
110
        # @param name [String] Template with zone servers
111
        #   SERVER = [ NAME = "<server_name>", ENDPOINT = "<rpc_ep>" ]
112
        #
113
        # @return [nil, OpenNebula::Error] nil in case of success, Error
114
        #   otherwise
115
        def add_servers(servers)
116
            return call(ZONE_METHODS[:addserver], @pe_id, servers)
117
        end
106 118
    end
107 119
end

Also available in: Unified diff