Uses of Class
org.gitlab4j.api.models.Snippet
Package | Description |
---|---|
org.gitlab4j.api |
-
Uses of Snippet in org.gitlab4j.api
Methods in org.gitlab4j.api that return Snippet Modifier and Type Method Description Snippet
ProjectApi. createSnippet(Object projectIdOrPath, String title, String filename, String description, String content, Visibility visibility)
Creates a new project snippet.Snippet
SnippetsApi. createSnippet(String title, String fileName, String content)
Create a new Snippet.Snippet
SnippetsApi. createSnippet(String title, String fileName, String content, Visibility visibility, String description)
Create a new Snippet.Snippet
ProjectApi. getSnippet(Object projectIdOrPath, Integer snippetId)
Get a single of project snippet.Snippet
SnippetsApi. getSnippet(Integer snippetId)
Get a specific Snippet.Snippet
SnippetsApi. getSnippet(Integer snippetId, boolean downloadContent)
Get a specific Snippet.Snippet
ProjectApi. updateSnippet(Object projectIdOrPath, Integer snippetId, String title, String filename, String description, String code, Visibility visibility)
Updates an existing project snippet.Methods in org.gitlab4j.api that return types with arguments of type Snippet Modifier and Type Method Description Optional<Snippet>
ProjectApi. getOptionalSnippet(Object projectIdOrPath, Integer snippetId)
Get a single of project snippet as an Optional instance.Optional<Snippet>
SnippetsApi. getOptionalSnippet(Integer snippetId)
Get a specific snippet as an Optional instance.Optional<Snippet>
SnippetsApi. getOptionalSnippet(Integer snippetId, boolean downloadContent)
Get a specific snippet as an Optional instance.List<Snippet>
ProjectApi. getSnippets(Object projectIdOrPath)
Get a list of the project snippets.Pager<Snippet>
ProjectApi. getSnippets(Object projectIdOrPath, int itemsPerPage)
Get a Pager of project's snippets.List<Snippet>
ProjectApi. getSnippets(Object projectIdOrPath, int page, int perPage)
Get a list of project snippets.List<Snippet>
SnippetsApi. getSnippets()
Get a list of the authenticated user's snippets.List<Snippet>
SnippetsApi. getSnippets(boolean downloadContent)
Get a list of the authenticated user's snippets.Pager<Snippet>
SnippetsApi. getSnippets(int itemsPerPage)
Get a Pager of the authenticated user's snippets.Stream<Snippet>
ProjectApi. getSnippetsStream(Object projectIdOrPath)
Get a Stream of the project snippets.Stream<Snippet>
SnippetsApi. getSnippetsStream()
Get a Stream of the authenticated user's snippets.