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

View differences:

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

  
35 36
        # Creates a Zone description with just its identifier
......
115 116
        def add_servers(servers)
116 117
            return call(ZONE_METHODS[:addserver], @pe_id, servers)
117 118
        end
119

  
120
        # Delete servers from this Zone
121
        #
122
        # @param id [Int] Server ID
123
        #
124
        # @return [nil, OpenNebula::Error] nil in case of success, Error
125
        #   otherwise
126
        def delete_servers(server_id)
127
            return call(ZONE_METHODS[:delserver], @pe_id, server_id)
128
        end
118 129
    end
119 130
end

Also available in: Unified diff