module Gitlab::Client::Features
def set_feature(name, value, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about the set/created/updated feature.
Options Hash:
(**options)
-
:project(optional)
(String
) -- A projects path, for example "gitlab-org/gitlab-ce" -
:user(optional)
(String
) -- A GitLab username -
:feature_group(optional)
(String
) -- A Feature group name
Parameters:
-
options
(Hash
) -- A customizable set of options. -
value(required)
(String, Integer
) -- true or false to enable/disable, or an integer for percentage of time -
name(required)
(String
) -- Name of the feature to create or update
def set_feature(name, value, options = {}) body = { value: value }.merge(options) post("/features/#{name}", body: body) end