module Gitlab::Client::BuildVariables

def update_variable(project, key, value, **opts)

Returns:
  • (Gitlab::ObjectifiedHash) - The variable.

Parameters:
  • opts (Hash) -- optional parameters
  • value (String) -- The value of a variable
  • key (String) -- The key of a variable
  • project (Integer, String) -- The ID or name of a project.
def update_variable(project, key, value, **opts)
  put("/projects/#{url_encode project}/variables/#{key}", body: opts.merge(value: value))
end