module Gitlab::Client::UserSnippets
def create_user_snippet(options = {})
-
(Gitlab::ObjectifiedHash)
- Information about created snippet.
Options Hash:
(**options)
-
:visibility
(String
) -- visibility of a snippet. -
:description
(String
) -- Description of a snippet. -
:content
(String
) -- Content of a snippet. -
:file_name
(String
) -- Name of a snippet file. -
:title
(String
) -- Title of a snippet.
Parameters:
-
options
(Hash
) -- A customizable set of options.
def create_user_snippet(options = {}) post('/snippets', body: options) end