def write(path, data = {}, options = {})
      headers = extract_headers!(options)
      json = client.put("/v1/#{encode_path(path)}", JSON.fast_generate(data), headers)
      if json.nil?
        return true
      else
        return Secret.decode(json)
      end
    end
def write(path, data = {}, options = {})
      headers = extract_headers!(options)
      json = client.put("/v1/#{encode_path(path)}", JSON.fast_generate(data), headers)
      if json.nil?
        return true
      else
        return Secret.decode(json)
      end
    end
Write the secret at the given path with the given data. Note that the
 data must be a {Hash}!

 @example
   Vault.logical.write("secret/password", value: "secret") #=> #<Vault::Secret lease_id="">

 @param [String] path
   the path to write
 @param [Hash] data
   the data to write

 @return [Secret]