module Gitlab::Client::Runners
def create_runner(options)
-
(Gitlab::ObjectifiedHash)
- Response against runner registration {"id": 1, "token": foo "token_expires_at": null}
Options Hash:
(**options)
-
:maintenance_note(optional)
(String
) -- Free-form maintenance notes for the runner (1024 characters). -
:maximum_timeout(optional)
(Integer
) -- Maximum timeout set when this Runner will handle the job. -
:access_level(optional)
(String
) -- Access level of the runner; not_protected or ref_protected. -
:tag_list(optional)
(Array
) -- List of Runner tags. -
:run_untagged(optional)
(Boolean
) -- Whether the Runner should handle untagged jobs. -
:locked(optional)
(Boolean
) -- Whether the Runner should be locked for current project. -
:paused(optional)
(Boolean
) -- Whether the Runner ignores new jobs. -
:info(optional)
(Hash
) -- Runner metadata. -
:description(optional)
(String
) -- Runner description.
Parameters:
-
options(required)
(Hash
) -- A customizable set of options.
def create_runner(options) post('/user/runners', body: options) end