    # File lib/fog/ecloud/requests/compute/trusted_network_groups_edit.rb, line 8
            def trusted_network_groups_edit(data)
              validate_data([:name], data)
              unless (data[:hosts] || data[:networks])
                raise ArgumentError.new("Required data missing: Either hosts or networks must be present")
              end

              request(
                :body => generate_edit_trusted_network_groups_request(data),
                :expects => 202,
                :method => "PUT",
                :headers => {},
                :uri => data[:uri],
                :parse => true
              )
            end