id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
64,700 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.getOptionalBranch | public Optional<Branch> getOptionalBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
try {
return (Optional.ofNullable(getBranch(projectIdOrPath, branchName)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | java | public Optional<Branch> getOptionalBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
try {
return (Optional.ofNullable(getBranch(projectIdOrPath, branchName)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | [
"public",
"Optional",
"<",
"Branch",
">",
"getOptionalBranch",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"branchName",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getBranch",
"(",
"projectIdOrPat... | Get an Optional instance with the value for the specific repository branch.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/branches/:branch</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param branchName the name of the branch to get
@return... | [
"Get",
"an",
"Optional",
"instance",
"with",
"the",
"value",
"for",
"the",
"specific",
"repository",
"branch",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L120-L126 |
64,701 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.createBranch | public Branch createBranch(Object projectIdOrPath, String branchName, String ref) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam(isApiVersion(ApiVersion.V3) ? "branch_name" : "branch", branchName, true)
.withParam("ref", ref, true);
Response r... | java | public Branch createBranch(Object projectIdOrPath, String branchName, String ref) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam(isApiVersion(ApiVersion.V3) ? "branch_name" : "branch", branchName, true)
.withParam("ref", ref, true);
Response r... | [
"public",
"Branch",
"createBranch",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"branchName",
",",
"String",
"ref",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"isApiVersion",
"... | Creates a branch for the project. Support as of version 6.8.x
<pre><code>GitLab Endpoint: POST /projects/:id/repository/branches</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param branchName the name of the branch to create
@param ref Source to crea... | [
"Creates",
"a",
"branch",
"for",
"the",
"project",
".",
"Support",
"as",
"of",
"version",
"6",
".",
"8",
".",
"x"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L139-L147 |
64,702 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.deleteBranch | public void deleteBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects",
getProjectIdOrPath(projectIdOrPath), ... | java | public void deleteBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects",
getProjectIdOrPath(projectIdOrPath), ... | [
"public",
"void",
"deleteBranch",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"branchName",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
... | Delete a single project repository branch.
<pre><code>GitLab Endpoint: DELETE /projects/:id/repository/branches/:branch</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param branchName the name of the branch to delete
@throws GitLabApiException if any ... | [
"Delete",
"a",
"single",
"project",
"repository",
"branch",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L158-L162 |
64,703 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.protectBranch | public Branch protectBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
Response response = put(Response.Status.OK, null, "projects",
getProjectIdOrPath(projectIdOrPath), "repository", "branches", urlEncode(branchName), "protect");
return (response.readEntity(B... | java | public Branch protectBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
Response response = put(Response.Status.OK, null, "projects",
getProjectIdOrPath(projectIdOrPath), "repository", "branches", urlEncode(branchName), "protect");
return (response.readEntity(B... | [
"public",
"Branch",
"protectBranch",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"branchName",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"put",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
... | Protects a single project repository branch. This is an idempotent function,
protecting an already protected repository branch will not produce an error.
<pre><code>GitLab Endpoint: PUT /projects/:id/repository/branches/:branch/protect</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), Str... | [
"Protects",
"a",
"single",
"project",
"repository",
"branch",
".",
"This",
"is",
"an",
"idempotent",
"function",
"protecting",
"an",
"already",
"protected",
"repository",
"branch",
"will",
"not",
"produce",
"an",
"error",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L175-L179 |
64,704 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.createTag | public Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("tag_name", tagName, true)
.withParam("ref", ref, true)
.withParam("message", ... | java | public Tag createTag(Object projectIdOrPath, String tagName, String ref, String message, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("tag_name", tagName, true)
.withParam("ref", ref, true)
.withParam("message", ... | [
"public",
"Tag",
"createTag",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
",",
"String",
"ref",
",",
"String",
"message",
",",
"String",
"releaseNotes",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(... | Creates a tag on a particular ref of the given project. A message and release notes are optional.
<pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param tagName The name of the tag Must be u... | [
"Creates",
"a",
"tag",
"on",
"a",
"particular",
"ref",
"of",
"the",
"given",
"project",
".",
"A",
"message",
"and",
"release",
"notes",
"are",
"optional",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L265-L275 |
64,705 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.deleteTag | public void deleteTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", ... | java | public void deleteTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", ... | [
"public",
"void",
"deleteTag",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
".",
... | Deletes the tag from a project with the specified tag name.
<pre><code>GitLab Endpoint: DELETE /projects/:id/repository/tags/:tag_name</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param tagName The name of the tag to delete
@throws GitLabApiExceptio... | [
"Deletes",
"the",
"tag",
"from",
"a",
"project",
"with",
"the",
"specified",
"tag",
"name",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L319-L322 |
64,706 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.getContributors | public List<Contributor> getContributors(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),
"projects", getProjectIdOrPath(projectIdOrPath), "repository", "contributors");
return (respo... | java | public List<Contributor> getContributors(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),
"projects", getProjectIdOrPath(projectIdOrPath), "repository", "contributors");
return (respo... | [
"public",
"List",
"<",
"Contributor",
">",
"getContributors",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
... | Get a list of contributors from a project and in the specified page range.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/contributors</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param page the page to get
@param perPage the number of pro... | [
"Get",
"a",
"list",
"of",
"contributors",
"from",
"a",
"project",
"and",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L732-L736 |
64,707 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RepositoryApi.java | RepositoryApi.getContributors | public Pager<Contributor> getContributors(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return new Pager<Contributor>(this, Contributor.class, itemsPerPage, null, "projects",
getProjectIdOrPath(projectIdOrPath), "repository", "contributors");
} | java | public Pager<Contributor> getContributors(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return new Pager<Contributor>(this, Contributor.class, itemsPerPage, null, "projects",
getProjectIdOrPath(projectIdOrPath), "repository", "contributors");
} | [
"public",
"Pager",
"<",
"Contributor",
">",
"getContributors",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"new",
"Pager",
"<",
"Contributor",
">",
"(",
"this",
",",
"Contributor",
".",
"class... | Get a Pager of contributors from a project.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/contributors</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param itemsPerPage the number of Project instances that will be fetched per page
@return a... | [
"Get",
"a",
"Pager",
"of",
"contributors",
"from",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RepositoryApi.java#L748-L751 |
64,708 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.getProjectIdOrPath | public Object getProjectIdOrPath(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or path from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
re... | java | public Object getProjectIdOrPath(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or path from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
re... | [
"public",
"Object",
"getProjectIdOrPath",
"(",
"Object",
"obj",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"{",
"throw",
"(",
"new",
"RuntimeException",
"(",
"\"Cannot determine ID or path from null object\"",
")",
")",
";",
"}"... | Returns the project ID or path from the provided Integer, String, or Project instance.
@param obj the object to determine the ID or path from
@return the project ID or path from the provided Integer, String, or Project instance
@throws GitLabApiException if any exception occurs during execution | [
"Returns",
"the",
"project",
"ID",
"or",
"path",
"from",
"the",
"provided",
"Integer",
"String",
"or",
"Project",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L37-L64 |
64,709 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.getGroupIdOrPath | public Object getGroupIdOrPath(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or path from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
retu... | java | public Object getGroupIdOrPath(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or path from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
retu... | [
"public",
"Object",
"getGroupIdOrPath",
"(",
"Object",
"obj",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"{",
"throw",
"(",
"new",
"RuntimeException",
"(",
"\"Cannot determine ID or path from null object\"",
")",
")",
";",
"}",
... | Returns the group ID or path from the provided Integer, String, or Group instance.
@param obj the object to determine the ID or path from
@return the group ID or path from the provided Integer, String, or Group instance
@throws GitLabApiException if any exception occurs during execution | [
"Returns",
"the",
"group",
"ID",
"or",
"path",
"from",
"the",
"provided",
"Integer",
"String",
"or",
"Group",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L73-L100 |
64,710 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.getUserIdOrUsername | public Object getUserIdOrUsername(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or username from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
... | java | public Object getUserIdOrUsername(Object obj) throws GitLabApiException {
if (obj == null) {
throw (new RuntimeException("Cannot determine ID or username from null object"));
} else if (obj instanceof Integer) {
return (obj);
} else if (obj instanceof String) {
... | [
"public",
"Object",
"getUserIdOrUsername",
"(",
"Object",
"obj",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"{",
"throw",
"(",
"new",
"RuntimeException",
"(",
"\"Cannot determine ID or username from null object\"",
")",
")",
";",
... | Returns the user ID or path from the provided Integer, String, or User instance.
@param obj the object to determine the ID or username from
@return the user ID or username from the provided Integer, String, or User instance
@throws GitLabApiException if any exception occurs during execution | [
"Returns",
"the",
"user",
"ID",
"or",
"path",
"from",
"the",
"provided",
"Integer",
"String",
"or",
"User",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L109-L136 |
64,711 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.urlEncode | protected String urlEncode(String s) throws GitLabApiException {
try {
String encoded = URLEncoder.encode(s, "UTF-8");
// Since the encode method encodes plus signs as %2B,
// we can simply replace the encoded spaces with the correct encoding here
encoded = encod... | java | protected String urlEncode(String s) throws GitLabApiException {
try {
String encoded = URLEncoder.encode(s, "UTF-8");
// Since the encode method encodes plus signs as %2B,
// we can simply replace the encoded spaces with the correct encoding here
encoded = encod... | [
"protected",
"String",
"urlEncode",
"(",
"String",
"s",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"String",
"encoded",
"=",
"URLEncoder",
".",
"encode",
"(",
"s",
",",
"\"UTF-8\"",
")",
";",
"// Since the encode method encodes plus signs as %2B,",
"// we... | Encode a string to be used as in-path argument for a gitlab api request.
Standard URL encoding changes spaces to plus signs, but for arguments that are part of the path,
like the :file_path in a "Get raw file" request, gitlab expects spaces to be encoded with %20.
@param s the string to encode
@return encoded version... | [
"Encode",
"a",
"string",
"to",
"be",
"used",
"as",
"in",
"-",
"path",
"argument",
"for",
"a",
"gitlab",
"api",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L164-L177 |
64,712 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.post | protected Response post(Response.Status expectedStatus, StreamingOutput stream, String mediaType, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().post(stream, mediaType, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
... | java | protected Response post(Response.Status expectedStatus, StreamingOutput stream, String mediaType, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().post(stream, mediaType, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
... | [
"protected",
"Response",
"post",
"(",
"Response",
".",
"Status",
"expectedStatus",
",",
"StreamingOutput",
"stream",
",",
"String",
"mediaType",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"validate",
"(",
"g... | Perform an HTTP POST call with the specified payload object and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param expectedStatus the HTTP status that should be returned from the server
@param stream the StreamingOutput that will be used for the POST data
@param mediaTyp... | [
"Perform",
"an",
"HTTP",
"POST",
"call",
"with",
"the",
"specified",
"payload",
"object",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L299-L305 |
64,713 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.upload | protected Response upload(Response.Status expectedStatus, String name, File fileToUpload, String mediaType, URL url) throws GitLabApiException {
try {
return validate(getApiClient().upload(name, fileToUpload, mediaType, url), expectedStatus);
} catch (Exception e) {
throw handle(... | java | protected Response upload(Response.Status expectedStatus, String name, File fileToUpload, String mediaType, URL url) throws GitLabApiException {
try {
return validate(getApiClient().upload(name, fileToUpload, mediaType, url), expectedStatus);
} catch (Exception e) {
throw handle(... | [
"protected",
"Response",
"upload",
"(",
"Response",
".",
"Status",
"expectedStatus",
",",
"String",
"name",
",",
"File",
"fileToUpload",
",",
"String",
"mediaType",
",",
"URL",
"url",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"validate",
... | Perform a file upload with the specified File instance and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param expectedStatus the HTTP status that should be returned from the server
@param name the name for the form field that contains the file name
@param fileToUpload a ... | [
"Perform",
"a",
"file",
"upload",
"with",
"the",
"specified",
"File",
"instance",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L375-L381 |
64,714 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.put | protected Response put(Response.Status expectedStatus, MultivaluedMap<String, String> queryParams, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().put(queryParams, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
}
... | java | protected Response put(Response.Status expectedStatus, MultivaluedMap<String, String> queryParams, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().put(queryParams, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
}
... | [
"protected",
"Response",
"put",
"(",
"Response",
".",
"Status",
"expectedStatus",
",",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"validate... | Perform an HTTP PUT call with the specified form data and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param expectedStatus the HTTP status that should be returned from the server
@param queryParams multivalue map of request parameters
@param pathArgs variable list of ar... | [
"Perform",
"an",
"HTTP",
"PUT",
"call",
"with",
"the",
"specified",
"form",
"data",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L415-L421 |
64,715 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.putUpload | protected Response putUpload(Response.Status expectedStatus, String name, File fileToUpload, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().putUpload(name, fileToUpload, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
... | java | protected Response putUpload(Response.Status expectedStatus, String name, File fileToUpload, Object... pathArgs) throws GitLabApiException {
try {
return validate(getApiClient().putUpload(name, fileToUpload, pathArgs), expectedStatus);
} catch (Exception e) {
throw handle(e);
... | [
"protected",
"Response",
"putUpload",
"(",
"Response",
".",
"Status",
"expectedStatus",
",",
"String",
"name",
",",
"File",
"fileToUpload",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"validate",
"(",
"getApi... | Perform a file upload using the HTTP PUT method with the specified File instance and path objects,
returning a ClientResponse instance with the data returned from the endpoint.
@param expectedStatus the HTTP status that should be returned from the server
@param name the name for the form field that contains the file n... | [
"Perform",
"a",
"file",
"upload",
"using",
"the",
"HTTP",
"PUT",
"method",
"with",
"the",
"specified",
"File",
"instance",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L471-L477 |
64,716 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.validate | protected Response validate(Response response, Response.Status expected) throws GitLabApiException {
int responseCode = response.getStatus();
int expectedResponseCode = expected.getStatusCode();
if (responseCode != expectedResponseCode) {
// If the expected code is 200-204 and the... | java | protected Response validate(Response response, Response.Status expected) throws GitLabApiException {
int responseCode = response.getStatus();
int expectedResponseCode = expected.getStatusCode();
if (responseCode != expectedResponseCode) {
// If the expected code is 200-204 and the... | [
"protected",
"Response",
"validate",
"(",
"Response",
"response",
",",
"Response",
".",
"Status",
"expected",
")",
"throws",
"GitLabApiException",
"{",
"int",
"responseCode",
"=",
"response",
".",
"getStatus",
"(",
")",
";",
"int",
"expectedResponseCode",
"=",
"... | Validates response the response from the server against the expected HTTP status and
the returned secret token, if either is not correct will throw a GitLabApiException.
@param response response
@param expected expected response status
@return original response if the response status is expected
@throws GitLabApiExcep... | [
"Validates",
"response",
"the",
"response",
"from",
"the",
"server",
"against",
"the",
"expected",
"HTTP",
"status",
"and",
"the",
"returned",
"secret",
"token",
"if",
"either",
"is",
"not",
"correct",
"will",
"throw",
"a",
"GitLabApiException",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L583-L601 |
64,717 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.handle | protected GitLabApiException handle(Exception thrown) {
if (thrown instanceof GitLabApiException) {
return ((GitLabApiException) thrown);
}
return (new GitLabApiException(thrown));
} | java | protected GitLabApiException handle(Exception thrown) {
if (thrown instanceof GitLabApiException) {
return ((GitLabApiException) thrown);
}
return (new GitLabApiException(thrown));
} | [
"protected",
"GitLabApiException",
"handle",
"(",
"Exception",
"thrown",
")",
"{",
"if",
"(",
"thrown",
"instanceof",
"GitLabApiException",
")",
"{",
"return",
"(",
"(",
"GitLabApiException",
")",
"thrown",
")",
";",
"}",
"return",
"(",
"new",
"GitLabApiExceptio... | Wraps an exception in a GitLabApiException if needed.
@param thrown the exception that should be wrapped
@return either the untouched GitLabApiException or a new GitLabApiExceptin wrapping a non-GitLabApiException | [
"Wraps",
"an",
"exception",
"in",
"a",
"GitLabApiException",
"if",
"needed",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L609-L616 |
64,718 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.getPerPageQueryParam | protected MultivaluedMap<String, String> getPerPageQueryParam(int perPage) {
return (new GitLabApiForm().withParam(PER_PAGE_PARAM, perPage).asMap());
} | java | protected MultivaluedMap<String, String> getPerPageQueryParam(int perPage) {
return (new GitLabApiForm().withParam(PER_PAGE_PARAM, perPage).asMap());
} | [
"protected",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"getPerPageQueryParam",
"(",
"int",
"perPage",
")",
"{",
"return",
"(",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"PER_PAGE_PARAM",
",",
"perPage",
")",
".",
"asMap",
"(",
")",
... | Creates a MultivaluedMap instance containing the "per_page" param.
@param perPage the number of projects per page
@return a MultivaluedMap instance containing the "per_page" param | [
"Creates",
"a",
"MultivaluedMap",
"instance",
"containing",
"the",
"per_page",
"param",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L624-L626 |
64,719 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/AbstractApi.java | AbstractApi.getDefaultPerPageParam | protected MultivaluedMap<String, String> getDefaultPerPageParam(boolean customAttributesEnabled) {
GitLabApiForm form = new GitLabApiForm().withParam(PER_PAGE_PARAM, getDefaultPerPage());
if (customAttributesEnabled)
return (form.withParam("with_custom_attributes", true).asMap());
... | java | protected MultivaluedMap<String, String> getDefaultPerPageParam(boolean customAttributesEnabled) {
GitLabApiForm form = new GitLabApiForm().withParam(PER_PAGE_PARAM, getDefaultPerPage());
if (customAttributesEnabled)
return (form.withParam("with_custom_attributes", true).asMap());
... | [
"protected",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"getDefaultPerPageParam",
"(",
"boolean",
"customAttributesEnabled",
")",
"{",
"GitLabApiForm",
"form",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"PER_PAGE_PARAM",
",",
"getDefault... | Creates a MultivaluedMap instance containing the "per_page" param with the default value.
@param customAttributesEnabled enables customAttributes for this query
@return a MultivaluedMap instance containing the "per_page" param with the default value | [
"Creates",
"a",
"MultivaluedMap",
"instance",
"containing",
"the",
"per_page",
"param",
"with",
"the",
"default",
"value",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/AbstractApi.java#L671-L678 |
64,720 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.enableRequestResponseLogging | void enableRequestResponseLogging(Logger logger, Level level, int maxEntityLength, List<String> maskedHeaderNames) {
MaskingLoggingFilter loggingFilter = new MaskingLoggingFilter(logger, level, maxEntityLength, maskedHeaderNames);
clientConfig.register(loggingFilter);
// Recreate the Client in... | java | void enableRequestResponseLogging(Logger logger, Level level, int maxEntityLength, List<String> maskedHeaderNames) {
MaskingLoggingFilter loggingFilter = new MaskingLoggingFilter(logger, level, maxEntityLength, maskedHeaderNames);
clientConfig.register(loggingFilter);
// Recreate the Client in... | [
"void",
"enableRequestResponseLogging",
"(",
"Logger",
"logger",
",",
"Level",
"level",
",",
"int",
"maxEntityLength",
",",
"List",
"<",
"String",
">",
"maskedHeaderNames",
")",
"{",
"MaskingLoggingFilter",
"loggingFilter",
"=",
"new",
"MaskingLoggingFilter",
"(",
"... | Enable the logging of the requests to and the responses from the GitLab server API.
@param logger the Logger instance to log to
@param level the logging level (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST)
@param maxEntitySize maximum number of entity bytes to be logged. When logging if the maxEntitySize
is rea... | [
"Enable",
"the",
"logging",
"of",
"the",
"requests",
"to",
"and",
"the",
"responses",
"from",
"the",
"GitLab",
"server",
"API",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L253-L262 |
64,721 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.getApiUrl | protected URL getApiUrl(Object... pathArgs) throws IOException {
String url = appendPathArgs(this.hostUrl, pathArgs);
return (new URL(url));
} | java | protected URL getApiUrl(Object... pathArgs) throws IOException {
String url = appendPathArgs(this.hostUrl, pathArgs);
return (new URL(url));
} | [
"protected",
"URL",
"getApiUrl",
"(",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"String",
"url",
"=",
"appendPathArgs",
"(",
"this",
".",
"hostUrl",
",",
"pathArgs",
")",
";",
"return",
"(",
"new",
"URL",
"(",
"url",
")",
")",
";",
... | Construct a REST URL with the specified path arguments.
@param pathArgs variable list of arguments used to build the URI
@return a REST URL with the specified path arguments
@throws IOException if an error occurs while constructing the URL | [
"Construct",
"a",
"REST",
"URL",
"with",
"the",
"specified",
"path",
"arguments",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L315-L318 |
64,722 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.getUrlWithBase | protected URL getUrlWithBase(Object... pathArgs) throws IOException {
String url = appendPathArgs(this.baseUrl, pathArgs);
return (new URL(url));
} | java | protected URL getUrlWithBase(Object... pathArgs) throws IOException {
String url = appendPathArgs(this.baseUrl, pathArgs);
return (new URL(url));
} | [
"protected",
"URL",
"getUrlWithBase",
"(",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"String",
"url",
"=",
"appendPathArgs",
"(",
"this",
".",
"baseUrl",
",",
"pathArgs",
")",
";",
"return",
"(",
"new",
"URL",
"(",
"url",
")",
")",
... | Construct a REST URL with the specified path arguments using
Gitlab base url.
@param pathArgs variable list of arguments used to build the URI
@return a REST URL with the specified path arguments
@throws IOException if an error occurs while constructing the URL | [
"Construct",
"a",
"REST",
"URL",
"with",
"the",
"specified",
"path",
"arguments",
"using",
"Gitlab",
"base",
"url",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L328-L331 |
64,723 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.getWithAccepts | protected Response getWithAccepts(MultivaluedMap<String, String> queryParams, String accepts, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (getWithAccepts(queryParams, url, accepts));
} | java | protected Response getWithAccepts(MultivaluedMap<String, String> queryParams, String accepts, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (getWithAccepts(queryParams, url, accepts));
} | [
"protected",
"Response",
"getWithAccepts",
"(",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"String",
"accepts",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"URL",
"url",
"=",
"getApiUrl",
"(",
"pathArgs",
... | Perform an HTTP GET call with the specified query parameters and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param queryParams multivalue map of request parameters
@param accepts if non-empty will set the Accepts header to this value
@param pathArgs variable list of arg... | [
"Perform",
"an",
"HTTP",
"GET",
"call",
"with",
"the",
"specified",
"query",
"parameters",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L399-L402 |
64,724 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.head | protected Response head(MultivaluedMap<String, String> queryParams, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (head(queryParams, url));
} | java | protected Response head(MultivaluedMap<String, String> queryParams, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (head(queryParams, url));
} | [
"protected",
"Response",
"head",
"(",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"URL",
"url",
"=",
"getApiUrl",
"(",
"pathArgs",
")",
";",
"return",
"(",
"head",
... | Perform an HTTP HEAD call with the specified query parameters and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param queryParams multivalue map of request parameters
@param pathArgs variable list of arguments used to build the URI
@return a ClientResponse instance with t... | [
"Perform",
"an",
"HTTP",
"HEAD",
"call",
"with",
"the",
"specified",
"query",
"parameters",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L426-L429 |
64,725 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.head | protected Response head(MultivaluedMap<String, String> queryParams, URL url) {
return (invocation(url, queryParams).head());
} | java | protected Response head(MultivaluedMap<String, String> queryParams, URL url) {
return (invocation(url, queryParams).head());
} | [
"protected",
"Response",
"head",
"(",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"URL",
"url",
")",
"{",
"return",
"(",
"invocation",
"(",
"url",
",",
"queryParams",
")",
".",
"head",
"(",
")",
")",
";",
"}"
] | Perform an HTTP HEAD call with the specified query parameters and URL, returning
a ClientResponse instance with the data returned from the endpoint.
@param queryParams multivalue map of request parameters
@param url the fully formed path to the GitLab API endpoint
@return a ClientResponse instance with the data return... | [
"Perform",
"an",
"HTTP",
"HEAD",
"call",
"with",
"the",
"specified",
"query",
"parameters",
"and",
"URL",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L439-L441 |
64,726 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.post | protected Response post(Object payload, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
Entity<?> entity = Entity.entity(payload, MediaType.APPLICATION_JSON);
return (invocation(url, null).post(entity));
} | java | protected Response post(Object payload, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
Entity<?> entity = Entity.entity(payload, MediaType.APPLICATION_JSON);
return (invocation(url, null).post(entity));
} | [
"protected",
"Response",
"post",
"(",
"Object",
"payload",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"URL",
"url",
"=",
"getApiUrl",
"(",
"pathArgs",
")",
";",
"Entity",
"<",
"?",
">",
"entity",
"=",
"Entity",
".",
"entity",
"(... | Perform an HTTP POST call with the specified payload object and URL, returning
a ClientResponse instance with the data returned from the endpoint.
@param payload the object instance that will be serialized to JSON and used as the POST data
@param pathArgs variable list of arguments used to build the URI
@return a Clie... | [
"Perform",
"an",
"HTTP",
"POST",
"call",
"with",
"the",
"specified",
"payload",
"object",
"and",
"URL",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L507-L511 |
64,727 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.post | protected Response post(StreamingOutput stream, String mediaType, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (invocation(url, null).post(Entity.entity(stream, mediaType)));
} | java | protected Response post(StreamingOutput stream, String mediaType, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (invocation(url, null).post(Entity.entity(stream, mediaType)));
} | [
"protected",
"Response",
"post",
"(",
"StreamingOutput",
"stream",
",",
"String",
"mediaType",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"URL",
"url",
"=",
"getApiUrl",
"(",
"pathArgs",
")",
";",
"return",
"(",
"invocation",
"(",
"... | Perform an HTTP POST call with the specified StreamingOutput, MediaType, and path objects, returning
a ClientResponse instance with the data returned from the endpoint.
@param stream the StreamingOutput instance that contains the POST data
@param mediaType the content-type of the POST data
@param pathArgs variable lis... | [
"Perform",
"an",
"HTTP",
"POST",
"call",
"with",
"the",
"specified",
"StreamingOutput",
"MediaType",
"and",
"path",
"objects",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L523-L526 |
64,728 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.upload | protected Response upload(String name, File fileToUpload, String mediaTypeString, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (upload(name, fileToUpload, mediaTypeString, null, url));
} | java | protected Response upload(String name, File fileToUpload, String mediaTypeString, Object... pathArgs) throws IOException {
URL url = getApiUrl(pathArgs);
return (upload(name, fileToUpload, mediaTypeString, null, url));
} | [
"protected",
"Response",
"upload",
"(",
"String",
"name",
",",
"File",
"fileToUpload",
",",
"String",
"mediaTypeString",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"URL",
"url",
"=",
"getApiUrl",
"(",
"pathArgs",
")",
";",
"return",
... | Perform a file upload using the specified media type, returning
a ClientResponse instance with the data returned from the endpoint.
@param name the name for the form field that contains the file name
@param fileToUpload a File instance pointing to the file to upload
@param mediaTypeString the content-type of the uploa... | [
"Perform",
"a",
"file",
"upload",
"using",
"the",
"specified",
"media",
"type",
"returning",
"a",
"ClientResponse",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L539-L542 |
64,729 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.delete | protected Response delete(MultivaluedMap<String, String> queryParams, Object... pathArgs) throws IOException {
return (delete(queryParams, getApiUrl(pathArgs)));
} | java | protected Response delete(MultivaluedMap<String, String> queryParams, Object... pathArgs) throws IOException {
return (delete(queryParams, getApiUrl(pathArgs)));
} | [
"protected",
"Response",
"delete",
"(",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"Object",
"...",
"pathArgs",
")",
"throws",
"IOException",
"{",
"return",
"(",
"delete",
"(",
"queryParams",
",",
"getApiUrl",
"(",
"pathArgs",
")"... | Perform an HTTP DELETE call with the specified form data and path objects, returning
a Response instance with the data returned from the endpoint.
@param queryParams multivalue map of request parameters
@param pathArgs variable list of arguments used to build the URI
@return a Response instance with the data returned ... | [
"Perform",
"an",
"HTTP",
"DELETE",
"call",
"with",
"the",
"specified",
"form",
"data",
"and",
"path",
"objects",
"returning",
"a",
"Response",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L700-L702 |
64,730 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.delete | protected Response delete(MultivaluedMap<String, String> queryParams, URL url) {
return (invocation(url, queryParams).delete());
} | java | protected Response delete(MultivaluedMap<String, String> queryParams, URL url) {
return (invocation(url, queryParams).delete());
} | [
"protected",
"Response",
"delete",
"(",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"queryParams",
",",
"URL",
"url",
")",
"{",
"return",
"(",
"invocation",
"(",
"url",
",",
"queryParams",
")",
".",
"delete",
"(",
")",
")",
";",
"}"
] | Perform an HTTP DELETE call with the specified form data and URL, returning
a Response instance with the data returned from the endpoint.
@param queryParams multivalue map of request parameters
@param url the fully formed path to the GitLab API endpoint
@return a Response instance with the data returned from the endpo... | [
"Perform",
"an",
"HTTP",
"DELETE",
"call",
"with",
"the",
"specified",
"form",
"data",
"and",
"URL",
"returning",
"a",
"Response",
"instance",
"with",
"the",
"data",
"returned",
"from",
"the",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L712-L714 |
64,731 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.setIgnoreCertificateErrors | public void setIgnoreCertificateErrors(boolean ignoreCertificateErrors) {
if (this.ignoreCertificateErrors == ignoreCertificateErrors) {
return;
}
if (!ignoreCertificateErrors) {
this.ignoreCertificateErrors = false;
openSslContext = null;
openH... | java | public void setIgnoreCertificateErrors(boolean ignoreCertificateErrors) {
if (this.ignoreCertificateErrors == ignoreCertificateErrors) {
return;
}
if (!ignoreCertificateErrors) {
this.ignoreCertificateErrors = false;
openSslContext = null;
openH... | [
"public",
"void",
"setIgnoreCertificateErrors",
"(",
"boolean",
"ignoreCertificateErrors",
")",
"{",
"if",
"(",
"this",
".",
"ignoreCertificateErrors",
"==",
"ignoreCertificateErrors",
")",
"{",
"return",
";",
"}",
"if",
"(",
"!",
"ignoreCertificateErrors",
")",
"{"... | Sets up the Jersey system ignore SSL certificate errors or not.
@param ignoreCertificateErrors if true will set up the Jersey system ignore SSL certificate errors | [
"Sets",
"up",
"the",
"Jersey",
"system",
"ignore",
"SSL",
"certificate",
"errors",
"or",
"not",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L777-L801 |
64,732 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/GitLabApiClient.java | GitLabApiClient.setupIgnoreCertificateErrors | private boolean setupIgnoreCertificateErrors() {
// Create a TrustManager that trusts all certificates
TrustManager[] trustAllCerts = new TrustManager[] { new X509ExtendedTrustManager() {
@Override
public X509Certificate[] getAcceptedIssuers() {
return null;
... | java | private boolean setupIgnoreCertificateErrors() {
// Create a TrustManager that trusts all certificates
TrustManager[] trustAllCerts = new TrustManager[] { new X509ExtendedTrustManager() {
@Override
public X509Certificate[] getAcceptedIssuers() {
return null;
... | [
"private",
"boolean",
"setupIgnoreCertificateErrors",
"(",
")",
"{",
"// Create a TrustManager that trusts all certificates",
"TrustManager",
"[",
"]",
"trustAllCerts",
"=",
"new",
"TrustManager",
"[",
"]",
"{",
"new",
"X509ExtendedTrustManager",
"(",
")",
"{",
"@",
"Ov... | Sets up Jersey client to ignore certificate errors.
@return true if successful at setting up to ignore certificate errors, otherwise returns false. | [
"Sets",
"up",
"Jersey",
"client",
"to",
"ignore",
"certificate",
"errors",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/GitLabApiClient.java#L808-L861 |
64,733 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getJobs | public List<Job> getJobs(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "jobs");
return (response.readEntity(new GenericType<List<Job>>() {}));
... | java | public List<Job> getJobs(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "jobs");
return (response.readEntity(new GenericType<List<Job>>() {}));
... | [
"public",
"List",
"<",
"Job",
">",
"getJobs",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"getPag... | Get a list of jobs in a project in the specified page range.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the jobs for
@param page the page to get
@param perPage the number of Job instances p... | [
"Get",
"a",
"list",
"of",
"jobs",
"in",
"a",
"project",
"in",
"the",
"specified",
"page",
"range",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L55-L58 |
64,734 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getJobs | public Pager<Job> getJobs(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Job>(this, Job.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "jobs"));
} | java | public Pager<Job> getJobs(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
return (new Pager<Job>(this, Job.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "jobs"));
} | [
"public",
"Pager",
"<",
"Job",
">",
"getJobs",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"Job",
">",
"(",
"this",
",",
"Job",
".",
"class",
",",
"itemsPerPage... | Get a Pager of jobs in a project.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the jobs for
@param itemsPerPage the number of Job instances that will be fetched per page
@return a Pager conta... | [
"Get",
"a",
"Pager",
"of",
"jobs",
"in",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L70-L72 |
64,735 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getJobsStream | public Stream<Job> getJobsStream(Object projectIdOrPath) throws GitLabApiException {
return (getJobs(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Job> getJobsStream(Object projectIdOrPath) throws GitLabApiException {
return (getJobs(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Job",
">",
"getJobsStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getJobs",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
";",
"}... | Get a Stream of jobs in a project.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@return a Stream containing the jobs for the specified project ID
@throws GitLabApiException if any exception occurs d... | [
"Get",
"a",
"Stream",
"of",
"jobs",
"in",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L83-L85 |
64,736 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getJob | public Job getJob(Object projectIdOrPath, int jobId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId);
return (response.readEntity(Job.class));
} | java | public Job getJob(Object projectIdOrPath, int jobId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId);
return (response.readEntity(Job.class));
} | [
"public",
"Job",
"getJob",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"jobId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPat... | Get single job in a project.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs/:job_id</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the job for
@param jobId the job ID to get
@return a single job for the specified project ID
@throws GitLabAp... | [
"Get",
"single",
"job",
"in",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L175-L178 |
64,737 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getOptionalJob | public Optional<Job> getOptionalJob(Object projectIdOrPath, int jobId) {
try {
return (Optional.ofNullable(getJob(projectIdOrPath, jobId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<Job> getOptionalJob(Object projectIdOrPath, int jobId) {
try {
return (Optional.ofNullable(getJob(projectIdOrPath, jobId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"Job",
">",
"getOptionalJob",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"jobId",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getJob",
"(",
"projectIdOrPath",
",",
"jobId",
")",
")",
")",
";",
"... | Get single job in a project as an Optional instance.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs/:job_id</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the job for
@param jobId the job ID to get
@return a single job for the specified pro... | [
"Get",
"single",
"job",
"in",
"a",
"project",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L189-L195 |
64,738 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.downloadArtifactsFile | public InputStream downloadArtifactsFile(Object projectIdOrPath, String ref, String jobName) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("job", jobName, true);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
... | java | public InputStream downloadArtifactsFile(Object projectIdOrPath, String ref, String jobName) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("job", jobName, true);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
... | [
"public",
"InputStream",
"downloadArtifactsFile",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"ref",
",",
"String",
"jobName",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"job\"... | Get an InputStream pointing to the artifacts file from the given reference name and job
provided the job finished successfully. The file will be saved to the specified directory.
If the file already exists in the directory it will be overwritten.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs/artifacts/:ref_name/d... | [
"Get",
"an",
"InputStream",
"pointing",
"to",
"the",
"artifacts",
"file",
"from",
"the",
"given",
"reference",
"name",
"and",
"job",
"provided",
"the",
"job",
"finished",
"successfully",
".",
"The",
"file",
"will",
"be",
"saved",
"to",
"the",
"specified",
"d... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L247-L252 |
64,739 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.downloadArtifactsFile | public InputStream downloadArtifactsFile(Object projectIdOrPath, Integer jobId) throws GitLabApiException {
Response response = getWithAccepts(Response.Status.OK, null, MediaType.MEDIA_TYPE_WILDCARD,
"projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "artifacts");
return (re... | java | public InputStream downloadArtifactsFile(Object projectIdOrPath, Integer jobId) throws GitLabApiException {
Response response = getWithAccepts(Response.Status.OK, null, MediaType.MEDIA_TYPE_WILDCARD,
"projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "artifacts");
return (re... | [
"public",
"InputStream",
"downloadArtifactsFile",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"jobId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"getWithAccepts",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"Medi... | Get an InputStream pointing to the job artifacts file for the specified job ID.
<pre><code>GitLab Endpoint: GET /projects/:id/jobs/:job_id/artifacts</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param jobId the job ID to get the artifacts for
@retur... | [
"Get",
"an",
"InputStream",
"pointing",
"to",
"the",
"job",
"artifacts",
"file",
"for",
"the",
"specified",
"job",
"ID",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L298-L302 |
64,740 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.getTrace | public String getTrace(Object projectIdOrPath, int jobId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "trace");
return (response.readEntity(String.class));
} | java | public String getTrace(Object projectIdOrPath, int jobId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "trace");
return (response.readEntity(String.class));
} | [
"public",
"String",
"getTrace",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"jobId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"getDefaultPerPageParam",
"(",
")",
",",
"\"pro... | Get a trace of a specific job of a project
<pre><code>GitLab Endpoint: GET /projects/:id/jobs/:id/trace</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
to get the specified job's trace for
@param jobId the job ID to get the trace for
@return a String c... | [
"Get",
"a",
"trace",
"of",
"a",
"specific",
"job",
"of",
"a",
"project"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L425-L429 |
64,741 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/JobApi.java | JobApi.playJob | public Job playJob(Object projectIdOrPath, int jobId) throws GitLabApiException {
GitLabApiForm formData = null;
Response response = post(Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "play");
return (response.readEntity(Job.class));
} | java | public Job playJob(Object projectIdOrPath, int jobId) throws GitLabApiException {
GitLabApiForm formData = null;
Response response = post(Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "jobs", jobId, "play");
return (response.readEntity(Job.class));
} | [
"public",
"Job",
"playJob",
"(",
"Object",
"projectIdOrPath",
",",
"int",
"jobId",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"null",
";",
"Response",
"response",
"=",
"post",
"(",
"Status",
".",
"CREATED",
",",
"formData",
","... | Play specified job in a project.
<pre><code>GitLab Endpoint: POST /projects/:id/jobs/:job_id/play</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param jobId the ID to play job
@return job instance which just played
@throws GitLabApiException if any e... | [
"Play",
"specified",
"job",
"in",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/JobApi.java#L489-L493 |
64,742 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.readTree | public JsonNode readTree(String postData) throws JsonParseException, JsonMappingException, IOException {
return (objectMapper.readTree(postData));
} | java | public JsonNode readTree(String postData) throws JsonParseException, JsonMappingException, IOException {
return (objectMapper.readTree(postData));
} | [
"public",
"JsonNode",
"readTree",
"(",
"String",
"postData",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"return",
"(",
"objectMapper",
".",
"readTree",
"(",
"postData",
")",
")",
";",
"}"
] | Reads and parses the String containing JSON data and returns a JsonNode tree representation.
@param postData a String holding the POST data
@return a JsonNode instance containing the parsed JSON
@throws JsonParseException when an error occurs parsing the provided JSON
@throws JsonMappingException if a JSON error occur... | [
"Reads",
"and",
"parses",
"the",
"String",
"containing",
"JSON",
"data",
"and",
"returns",
"a",
"JsonNode",
"tree",
"representation",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L100-L102 |
64,743 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.readTree | public JsonNode readTree(Reader reader) throws JsonParseException, JsonMappingException, IOException {
return (objectMapper.readTree(reader));
} | java | public JsonNode readTree(Reader reader) throws JsonParseException, JsonMappingException, IOException {
return (objectMapper.readTree(reader));
} | [
"public",
"JsonNode",
"readTree",
"(",
"Reader",
"reader",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"return",
"(",
"objectMapper",
".",
"readTree",
"(",
"reader",
")",
")",
";",
"}"
] | Reads and parses the JSON data on the specified Reader instance to a JsonNode tree representation.
@param reader the Reader instance that contains the JSON data
@return a JsonNode instance containing the parsed JSON
@throws JsonParseException when an error occurs parsing the provided JSON
@throws JsonMappingException ... | [
"Reads",
"and",
"parses",
"the",
"JSON",
"data",
"on",
"the",
"specified",
"Reader",
"instance",
"to",
"a",
"JsonNode",
"tree",
"representation",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L113-L115 |
64,744 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.unmarshal | public <T> T unmarshal(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(returnType);
return (objectMapper.readValue(reader, returnType));
} | java | public <T> T unmarshal(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(returnType);
return (objectMapper.readValue(reader, returnType));
} | [
"public",
"<",
"T",
">",
"T",
"unmarshal",
"(",
"Class",
"<",
"T",
">",
"returnType",
",",
"Reader",
"reader",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"ObjectMapper",
"objectMapper",
"=",
"getContext",
"(",
"r... | Unmarshal the JSON data on the specified Reader instance to an instance of the provided class.
@param <T> the generics type for the return value
@param returnType an instance of this type class will be returned
@param reader the Reader instance that contains the JSON data
@return an instance of the provided class cont... | [
"Unmarshal",
"the",
"JSON",
"data",
"on",
"the",
"specified",
"Reader",
"instance",
"to",
"an",
"instance",
"of",
"the",
"provided",
"class",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L144-L147 |
64,745 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.unmarshal | public <T> T unmarshal(Class<T> returnType, String postData) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(returnType);
return (objectMapper.readValue(postData, returnType));
} | java | public <T> T unmarshal(Class<T> returnType, String postData) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(returnType);
return (objectMapper.readValue(postData, returnType));
} | [
"public",
"<",
"T",
">",
"T",
"unmarshal",
"(",
"Class",
"<",
"T",
">",
"returnType",
",",
"String",
"postData",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"ObjectMapper",
"objectMapper",
"=",
"getContext",
"(",
... | Unmarshal the JSON data contained by the string and populate an instance of the provided returnType class.
@param <T> the generics type for the return value
@param returnType an instance of this type class will be returned
@param postData a String holding the POST data
@return an instance of the provided class contain... | [
"Unmarshal",
"the",
"JSON",
"data",
"contained",
"by",
"the",
"string",
"and",
"populate",
"an",
"instance",
"of",
"the",
"provided",
"returnType",
"class",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L160-L163 |
64,746 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.unmarshalList | public <T> List<T> unmarshalList(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(null);
CollectionType javaType = objectMapper.getTypeFactory().constructCollectionType(List.class, returnType);
return (objec... | java | public <T> List<T> unmarshalList(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(null);
CollectionType javaType = objectMapper.getTypeFactory().constructCollectionType(List.class, returnType);
return (objec... | [
"public",
"<",
"T",
">",
"List",
"<",
"T",
">",
"unmarshalList",
"(",
"Class",
"<",
"T",
">",
"returnType",
",",
"Reader",
"reader",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"ObjectMapper",
"objectMapper",
"=",... | Unmarshal the JSON data on the specified Reader instance and populate a List of instances of the provided returnType class.
@param <T> the generics type for the List
@param returnType an instance of this type class will be contained in the returned List
@param reader the Reader instance that contains the JSON data
@re... | [
"Unmarshal",
"the",
"JSON",
"data",
"on",
"the",
"specified",
"Reader",
"instance",
"and",
"populate",
"a",
"List",
"of",
"instances",
"of",
"the",
"provided",
"returnType",
"class",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L176-L180 |
64,747 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.unmarshalMap | public <T> Map<String, T> unmarshalMap(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(null);
return (objectMapper.readValue(reader, new TypeReference<Map<String, T>>() {}));
} | java | public <T> Map<String, T> unmarshalMap(Class<T> returnType, Reader reader) throws JsonParseException, JsonMappingException, IOException {
ObjectMapper objectMapper = getContext(null);
return (objectMapper.readValue(reader, new TypeReference<Map<String, T>>() {}));
} | [
"public",
"<",
"T",
">",
"Map",
"<",
"String",
",",
"T",
">",
"unmarshalMap",
"(",
"Class",
"<",
"T",
">",
"returnType",
",",
"Reader",
"reader",
")",
"throws",
"JsonParseException",
",",
"JsonMappingException",
",",
"IOException",
"{",
"ObjectMapper",
"obje... | Unmarshal the JSON data on the specified Reader instance and populate a Map of String keys and values of the provided returnType class.
@param <T> the generics type for the Map value
@param returnType an instance of this type class will be contained the values of the Map
@param reader the Reader instance that contains... | [
"Unmarshal",
"the",
"JSON",
"data",
"on",
"the",
"specified",
"Reader",
"instance",
"and",
"populate",
"a",
"Map",
"of",
"String",
"keys",
"and",
"values",
"of",
"the",
"provided",
"returnType",
"class",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L210-L213 |
64,748 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.marshal | public <T> String marshal(final T object) {
if (object == null) {
throw new IllegalArgumentException("object parameter is null");
}
ObjectWriter writer = objectMapper.writer().withDefaultPrettyPrinter();
String results = null;
try {
results = writer.writ... | java | public <T> String marshal(final T object) {
if (object == null) {
throw new IllegalArgumentException("object parameter is null");
}
ObjectWriter writer = objectMapper.writer().withDefaultPrettyPrinter();
String results = null;
try {
results = writer.writ... | [
"public",
"<",
"T",
">",
"String",
"marshal",
"(",
"final",
"T",
"object",
")",
"{",
"if",
"(",
"object",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"object parameter is null\"",
")",
";",
"}",
"ObjectWriter",
"writer",
"=",
... | Marshals the supplied object out as a formatted JSON string.
@param <T> the generics type for the provided object
@param object the object to output as a JSON string
@return a String containing the JSON for the specified object | [
"Marshals",
"the",
"supplied",
"object",
"out",
"as",
"a",
"formatted",
"JSON",
"string",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L238-L258 |
64,749 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/utils/JacksonJson.java | JacksonJson.toJsonNode | public static JsonNode toJsonNode(String jsonString) throws IOException {
return (JacksonJsonSingletonHelper.JACKSON_JSON.objectMapper.readTree(jsonString));
} | java | public static JsonNode toJsonNode(String jsonString) throws IOException {
return (JacksonJsonSingletonHelper.JACKSON_JSON.objectMapper.readTree(jsonString));
} | [
"public",
"static",
"JsonNode",
"toJsonNode",
"(",
"String",
"jsonString",
")",
"throws",
"IOException",
"{",
"return",
"(",
"JacksonJsonSingletonHelper",
".",
"JACKSON_JSON",
".",
"objectMapper",
".",
"readTree",
"(",
"jsonString",
")",
")",
";",
"}"
] | Parse the provided String into a JsonNode instance.
@param jsonString a String containing JSON to parse
@return a JsonNode with the String parsed into a JSON tree
@throws IOException if any IO error occurs | [
"Parse",
"the",
"provided",
"String",
"into",
"a",
"JsonNode",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/utils/JacksonJson.java#L365-L367 |
64,750 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/LicensesApi.java | LicensesApi.getAllLicenseTemplates | public List<LicenseTemplate> getAllLicenseTemplates() throws GitLabApiException {
Response response = get(Response.Status.OK, null, "licenses");
return (response.readEntity(new GenericType<List<LicenseTemplate>>() {}));
} | java | public List<LicenseTemplate> getAllLicenseTemplates() throws GitLabApiException {
Response response = get(Response.Status.OK, null, "licenses");
return (response.readEntity(new GenericType<List<LicenseTemplate>>() {}));
} | [
"public",
"List",
"<",
"LicenseTemplate",
">",
"getAllLicenseTemplates",
"(",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"licenses\"",
")",
";",
"return",
"(",
... | Get all license templates.
GET /licenses
@return a list of LicenseTemplate instances
@throws GitLabApiException if any exception occurs | [
"Get",
"all",
"license",
"templates",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/LicensesApi.java#L28-L31 |
64,751 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/LicensesApi.java | LicensesApi.getPopularLicenseTemplates | public List<LicenseTemplate> getPopularLicenseTemplates() throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("popular", true, true);
Response response = get(Response.Status.OK, formData.asMap(), "licenses");
return (response.readEntity(new GenericType<List<LicenseTemplate>... | java | public List<LicenseTemplate> getPopularLicenseTemplates() throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("popular", true, true);
Response response = get(Response.Status.OK, formData.asMap(), "licenses");
return (response.readEntity(new GenericType<List<LicenseTemplate>... | [
"public",
"List",
"<",
"LicenseTemplate",
">",
"getPopularLicenseTemplates",
"(",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"popular\"",
",",
"true",
",",
"true",
")",
";",
"Re... | Get popular license templates.
GET /licenses
@return a list of LicenseTemplate instances
@throws GitLabApiException if any exception occurs | [
"Get",
"popular",
"license",
"templates",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/LicensesApi.java#L41-L45 |
64,752 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/LicensesApi.java | LicensesApi.getSingleLicenseTemplate | public LicenseTemplate getSingleLicenseTemplate(String key) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "licenses", key);
return (response.readEntity(LicenseTemplate.class));
} | java | public LicenseTemplate getSingleLicenseTemplate(String key) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "licenses", key);
return (response.readEntity(LicenseTemplate.class));
} | [
"public",
"LicenseTemplate",
"getSingleLicenseTemplate",
"(",
"String",
"key",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"licenses\"",
",",
"key",
")",
";",
"ret... | Get a single license template.
GET /licenses
@param key The key of the license template
@return a LicenseTemplate instance
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"single",
"license",
"template",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/LicensesApi.java#L56-L59 |
64,753 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/HealthCheckApi.java | HealthCheckApi.getLiveness | public HealthCheckInfo getLiveness(String token) throws GitLabApiException {
try {
URL livenessUrl = getApiClient().getUrlWithBase("-", "liveness");
GitLabApiForm formData = new GitLabApiForm().withParam("token", token, false);
Response response = get(Response.Status.OK, form... | java | public HealthCheckInfo getLiveness(String token) throws GitLabApiException {
try {
URL livenessUrl = getApiClient().getUrlWithBase("-", "liveness");
GitLabApiForm formData = new GitLabApiForm().withParam("token", token, false);
Response response = get(Response.Status.OK, form... | [
"public",
"HealthCheckInfo",
"getLiveness",
"(",
"String",
"token",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"URL",
"livenessUrl",
"=",
"getApiClient",
"(",
")",
".",
"getUrlWithBase",
"(",
"\"-\"",
",",
"\"liveness\"",
")",
";",
"GitLabApiForm",
"f... | Get Health Checks from the liveness endpoint.
<pre><code>GitLab Endpoint: GET /-/liveness</code></pre>
@param token Health Status token
@return HealthCheckInfo instance
@throws GitLabApiException if any exception occurs
@deprecated | [
"Get",
"Health",
"Checks",
"from",
"the",
"liveness",
"endpoint",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/HealthCheckApi.java#L40-L49 |
64,754 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.setGitLabCI | public void setGitLabCI(Object projectIdOrPath, String token, String projectCIUrl) throws GitLabApiException {
final Form formData = new Form();
formData.param("token", token);
formData.param("project_url", projectCIUrl);
put(Response.Status.OK, formData.asMap(), "projects", getProjectId... | java | public void setGitLabCI(Object projectIdOrPath, String token, String projectCIUrl) throws GitLabApiException {
final Form formData = new Form();
formData.param("token", token);
formData.param("project_url", projectCIUrl);
put(Response.Status.OK, formData.asMap(), "projects", getProjectId... | [
"public",
"void",
"setGitLabCI",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"token",
",",
"String",
"projectCIUrl",
")",
"throws",
"GitLabApiException",
"{",
"final",
"Form",
"formData",
"=",
"new",
"Form",
"(",
")",
";",
"formData",
".",
"param",
"(",
... | Activates the gitlab-ci service for a project.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/gitlab-ci</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param token for authentication
@param projectCIUrl URL of the GitLab-CI projec... | [
"Activates",
"the",
"gitlab",
"-",
"ci",
"service",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L33-L38 |
64,755 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.deleteGitLabCI | public void deleteGitLabCI(Object projectIdOrPath) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "gitlab-ci");
} | java | public void deleteGitLabCI(Object projectIdOrPath) throws GitLabApiException {
Response.Status expectedStatus = (isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
delete(expectedStatus, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "gitlab-ci");
} | [
"public",
"void",
"deleteGitLabCI",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
".",
"Status",
"expectedStatus",
"=",
"(",
"isApiVersion",
"(",
"ApiVersion",
".",
"V3",
")",
"?",
"Response",
".",
"Status",
".",
"OK",
... | Deletes the gitlab-ci service for a project.
<pre><code>GitLab Endpoint: DELETE /projects/:id/services/gitlab-ci</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@throws GitLabApiException if any exception occurs
@deprecated No longer supported | [
"Deletes",
"the",
"gitlab",
"-",
"ci",
"service",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L49-L52 |
64,756 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.getHipChatService | public HipChatService getHipChatService(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "hipchat");
return (response.readEntity(HipChatService.class));
} | java | public HipChatService getHipChatService(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "hipchat");
return (response.readEntity(HipChatService.class));
} | [
"public",
"HipChatService",
"getHipChatService",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
... | Get the HipChatService notification configuration for a project.
<pre><code>GitLab Endpoint: GET /projects/:id/services/hipchat</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@return a HipChatService instance holding the HipChatService notification se... | [
"Get",
"the",
"HipChatService",
"notification",
"configuration",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L63-L66 |
64,757 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.updateHipChatService | public HipChatService updateHipChatService(Object projectIdOrPath, HipChatService hipChat) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("push_events", hipChat.getPushEvents())
.withParam("issues_events", hipChat.getIssuesEvents())
... | java | public HipChatService updateHipChatService(Object projectIdOrPath, HipChatService hipChat) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("push_events", hipChat.getPushEvents())
.withParam("issues_events", hipChat.getIssuesEvents())
... | [
"public",
"HipChatService",
"updateHipChatService",
"(",
"Object",
"projectIdOrPath",
",",
"HipChatService",
"hipChat",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"push_events\""... | Updates the HipChatService notification settings for a project.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/hipchat</code></pre>
The following properties on the HipChatService instance are utilized in the update of the settings:
<p>
pushEvents (optional) - Enable notifications for push events
issuesEvents ... | [
"Updates",
"the",
"HipChatService",
"notification",
"settings",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L96-L115 |
64,758 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.setHipChat | public void setHipChat(Object projectIdOrPath, String token, String room, String server) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("token", token)
.withParam("room", room)
.withParam("server", server);
put(Response... | java | public void setHipChat(Object projectIdOrPath, String token, String room, String server) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("token", token)
.withParam("room", room)
.withParam("server", server);
put(Response... | [
"public",
"void",
"setHipChat",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"token",
",",
"String",
"room",
",",
"String",
"server",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withPara... | Activates HipChatService notifications.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/hipchat</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param token for authentication
@param room HipChatService Room
@param server ... | [
"Activates",
"HipChatService",
"notifications",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L129-L135 |
64,759 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.getSlackService | public SlackService getSlackService(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "slack");
return (response.readEntity(SlackService.class));
} | java | public SlackService getSlackService(Object projectIdOrPath) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "services", "slack");
return (response.readEntity(SlackService.class));
} | [
"public",
"SlackService",
"getSlackService",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectIdOrPath",
"("... | Get the Slack notification settings for a project.
<pre><code>GitLab Endpoint: GET /projects/:id/services/slack</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@return a SlackService instance holding the Slack notification settings
@throws GitLabApiExc... | [
"Get",
"the",
"Slack",
"notification",
"settings",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L172-L175 |
64,760 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.updateSlackService | public SlackService updateSlackService(Object projectIdOrPath, SlackService slackNotifications) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("webhook", slackNotifications.getWebhook(), true)
.withParam("username", slackNotifications.getUsern... | java | public SlackService updateSlackService(Object projectIdOrPath, SlackService slackNotifications) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("webhook", slackNotifications.getWebhook(), true)
.withParam("username", slackNotifications.getUsern... | [
"public",
"SlackService",
"updateSlackService",
"(",
"Object",
"projectIdOrPath",
",",
"SlackService",
"slackNotifications",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"webhook\"... | Updates the Slack notification settings for a project.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/slack</code></pre>
The following properties on the SlackService instance are utilized in the update of the settings:
<p>
webhook (required) - https://hooks.slack.com/services/...
username (optional) - usernam... | [
"Updates",
"the",
"Slack",
"notification",
"settings",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L213-L240 |
64,761 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.updateJiraService | public JiraService updateJiraService(Object projectIdOrPath, JiraService jira) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("merge_requests_events", jira.getMergeRequestsEvents())
.withParam("commit_events", jira.getCommitEvents())
... | java | public JiraService updateJiraService(Object projectIdOrPath, JiraService jira) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("merge_requests_events", jira.getMergeRequestsEvents())
.withParam("commit_events", jira.getCommitEvents())
... | [
"public",
"JiraService",
"updateJiraService",
"(",
"Object",
"projectIdOrPath",
",",
"JiraService",
"jira",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"merge_requests_events\"",
... | Updates the JIRA service settings for a project.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/jira</code></pre>
The following properties on the JiraService instance are utilized in the update of the settings:
<p>
mergeRequestsEvents (optional) - Enable notifications for merge request events
commitEvents (op... | [
"Updates",
"the",
"JIRA",
"service",
"settings",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L290-L302 |
64,762 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/ServicesApi.java | ServicesApi.updateExternalWikiService | public ExternalWikiService updateExternalWikiService(Object projectIdOrPath, ExternalWikiService externalWiki) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("external_wiki_url", externalWiki.getExternalWikiUrl());
Response response = put(Response.St... | java | public ExternalWikiService updateExternalWikiService(Object projectIdOrPath, ExternalWikiService externalWiki) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("external_wiki_url", externalWiki.getExternalWikiUrl());
Response response = put(Response.St... | [
"public",
"ExternalWikiService",
"updateExternalWikiService",
"(",
"Object",
"projectIdOrPath",
",",
"ExternalWikiService",
"externalWiki",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",... | Updates the ExternalWikiService service settings for a project.
<pre><code>GitLab Endpoint: PUT /projects/:id/services/external-wiki</code></pre>
The following properties on the JiraService instance are utilized in the update of the settings:
<p>
external_wiki_url (required) - The URL to the External Wiki project whi... | [
"Updates",
"the",
"ExternalWikiService",
"service",
"settings",
"for",
"a",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/ServicesApi.java#L345-L350 |
64,763 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/systemhooks/SystemHookManager.java | SystemHookManager.handleEvent | public void handleEvent(HttpServletRequest request) throws GitLabApiException {
String eventName = request.getHeader("X-Gitlab-Event");
if (eventName == null || eventName.trim().isEmpty()) {
String message = "X-Gitlab-Event header is missing!";
LOGGER.warning(message);
... | java | public void handleEvent(HttpServletRequest request) throws GitLabApiException {
String eventName = request.getHeader("X-Gitlab-Event");
if (eventName == null || eventName.trim().isEmpty()) {
String message = "X-Gitlab-Event header is missing!";
LOGGER.warning(message);
... | [
"public",
"void",
"handleEvent",
"(",
"HttpServletRequest",
"request",
")",
"throws",
"GitLabApiException",
"{",
"String",
"eventName",
"=",
"request",
".",
"getHeader",
"(",
"\"X-Gitlab-Event\"",
")",
";",
"if",
"(",
"eventName",
"==",
"null",
"||",
"eventName",
... | Parses and verifies an SystemHookEvent instance from the HTTP request and
fires it off to the registered listeners.
@param request the HttpServletRequest to read the Event instance from
@throws GitLabApiException if the parsed event is not supported | [
"Parses",
"and",
"verifies",
"an",
"SystemHookEvent",
"instance",
"from",
"the",
"HTTP",
"request",
"and",
"fires",
"it",
"off",
"to",
"the",
"registered",
"listeners",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/systemhooks/SystemHookManager.java#L57-L135 |
64,764 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.getRunnersStream | public Stream<Runner> getRunnersStream(Runner.RunnerStatus scope) throws GitLabApiException {
return (getRunners(scope, getDefaultPerPage()).stream());
} | java | public Stream<Runner> getRunnersStream(Runner.RunnerStatus scope) throws GitLabApiException {
return (getRunners(scope, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Runner",
">",
"getRunnersStream",
"(",
"Runner",
".",
"RunnerStatus",
"scope",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getRunners",
"(",
"scope",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")... | Get a Stream of all available runners available to the user with pagination support.
<pre><code>GitLab Endpoint: GET /runners</code></pre>
@param scope The scope of specific runners to show, one of: active, paused, online; showing all runners null
@return Stream of Runners
@throws GitLabApiException if any exception ... | [
"Get",
"a",
"Stream",
"of",
"all",
"available",
"runners",
"available",
"to",
"the",
"user",
"with",
"pagination",
"support",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L68-L70 |
64,765 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.getRunners | public Pager<Runner> getRunners(Runner.RunnerStatus scope, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("scope", scope, false);
return (new Pager<>(this, Runner.class, itemsPerPage, formData.asMap(), "runners"));
} | java | public Pager<Runner> getRunners(Runner.RunnerStatus scope, int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("scope", scope, false);
return (new Pager<>(this, Runner.class, itemsPerPage, formData.asMap(), "runners"));
} | [
"public",
"Pager",
"<",
"Runner",
">",
"getRunners",
"(",
"Runner",
".",
"RunnerStatus",
"scope",
",",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"... | Get a list of specific runners available to the user.
<pre><code>GitLab Endpoint: GET /runners</code></pre>
@param scope the scope of specific runners to show, one of: active, paused, online; showing all runners null
@param itemsPerPage The number of Runner instances that will be fetched per page
@return a Pager cont... | [
"Get",
"a",
"list",
"of",
"specific",
"runners",
"available",
"to",
"the",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L130-L133 |
64,766 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.getRunnerDetail | public RunnerDetail getRunnerDetail(Integer runnerId) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeException("runnerId cannot be null");
}
Response response = get(Response.Status.OK, null, "runners", runnerId);
return (response.readEntity(RunnerDetai... | java | public RunnerDetail getRunnerDetail(Integer runnerId) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeException("runnerId cannot be null");
}
Response response = get(Response.Status.OK, null, "runners", runnerId);
return (response.readEntity(RunnerDetai... | [
"public",
"RunnerDetail",
"getRunnerDetail",
"(",
"Integer",
"runnerId",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"runnerId",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"runnerId cannot be null\"",
")",
";",
"}",
"Response",
"re... | Get details of a runner.
<pre><code>GitLab Endpoint: GET /runners/:id</code></pre>
@param runnerId Runner id to get details for
@return RunnerDetail instance.
@throws GitLabApiException if any exception occurs | [
"Get",
"details",
"of",
"a",
"runner",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L256-L264 |
64,767 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.updateRunner | public RunnerDetail updateRunner(Integer runnerId, String description, Boolean active, List<String> tagList,
Boolean runUntagged, Boolean locked, RunnerDetail.RunnerAccessLevel accessLevel) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeExce... | java | public RunnerDetail updateRunner(Integer runnerId, String description, Boolean active, List<String> tagList,
Boolean runUntagged, Boolean locked, RunnerDetail.RunnerAccessLevel accessLevel) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeExce... | [
"public",
"RunnerDetail",
"updateRunner",
"(",
"Integer",
"runnerId",
",",
"String",
"description",
",",
"Boolean",
"active",
",",
"List",
"<",
"String",
">",
"tagList",
",",
"Boolean",
"runUntagged",
",",
"Boolean",
"locked",
",",
"RunnerDetail",
".",
"RunnerAc... | Update details of a runner.
<pre><code>GitLab Endpoint: PUT /runners/:id</code></pre>
@param runnerId The ID of a runner
@param description The description of a runner
@param active The state of a runner; can be set to true or false
@param tagList The list of tags for a runner; put array of tags, that sho... | [
"Update",
"details",
"of",
"a",
"runner",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L281-L296 |
64,768 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.removeRunner | public void removeRunner(Integer runnerId) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeException("runnerId cannot be null");
}
delete(Response.Status.NO_CONTENT, null, "runners", runnerId);
} | java | public void removeRunner(Integer runnerId) throws GitLabApiException {
if (runnerId == null) {
throw new RuntimeException("runnerId cannot be null");
}
delete(Response.Status.NO_CONTENT, null, "runners", runnerId);
} | [
"public",
"void",
"removeRunner",
"(",
"Integer",
"runnerId",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"runnerId",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"runnerId cannot be null\"",
")",
";",
"}",
"delete",
"(",
"Response... | Remove a runner.
<pre><code>GitLab Endpoint: DELETE /runners/:id</code></pre>
@param runnerId The ID of a runner
@throws GitLabApiException if any exception occurs | [
"Remove",
"a",
"runner",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L306-L313 |
64,769 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.enableRunner | public Runner enableRunner(Object projectIdOrPath, Integer runnerId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("runner_id", runnerId, true);
Response response = post(Response.Status.CREATED, formData.asMap(),
"projects", getProjectIdOrPath(project... | java | public Runner enableRunner(Object projectIdOrPath, Integer runnerId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("runner_id", runnerId, true);
Response response = post(Response.Status.CREATED, formData.asMap(),
"projects", getProjectIdOrPath(project... | [
"public",
"Runner",
"enableRunner",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"runnerId",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"runner_id\"",
",",
"runnerId",
... | Enable an available specific runner in the project.
<pre><code>GitLab Endpoint: POST /projects/:id/runners</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param runnerId The ID of a runner
@return Runner instance of the Runner enabled
@throws GitLabAp... | [
"Enable",
"an",
"available",
"specific",
"runner",
"in",
"the",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L459-L464 |
64,770 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.registerRunner | public RunnerDetail registerRunner(String token, String description, Boolean active, List<String> tagList,
Boolean runUntagged, Boolean locked, Integer maximumTimeout) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("token... | java | public RunnerDetail registerRunner(String token, String description, Boolean active, List<String> tagList,
Boolean runUntagged, Boolean locked, Integer maximumTimeout) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm()
.withParam("token... | [
"public",
"RunnerDetail",
"registerRunner",
"(",
"String",
"token",
",",
"String",
"description",
",",
"Boolean",
"active",
",",
"List",
"<",
"String",
">",
"tagList",
",",
"Boolean",
"runUntagged",
",",
"Boolean",
"locked",
",",
"Integer",
"maximumTimeout",
")"... | Register a new runner for the gitlab instance.
<pre><code>GitLab Endpoint: POST /runners/</code></pre>
@param token the token of the project (for project specific runners) or the token from the admin page
@param description The description of a runner
@param active The state of a runner; can be set to true... | [
"Register",
"a",
"new",
"runner",
"for",
"the",
"gitlab",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L498-L511 |
64,771 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/RunnersApi.java | RunnersApi.deleteRunner | public void deleteRunner(String token) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("token", token, true);
delete(Response.Status.NO_CONTENT, formData.asMap(), "runners");
} | java | public void deleteRunner(String token) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("token", token, true);
delete(Response.Status.NO_CONTENT, formData.asMap(), "runners");
} | [
"public",
"void",
"deleteRunner",
"(",
"String",
"token",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"token\"",
",",
"token",
",",
"true",
")",
";",
"delete",
"(",
"R... | Deletes a registered Runner.
<pre><code>GitLab Endpoint: DELETE /runners/</code></pre>
@param token the runners authentication token
@throws GitLabApiException if any exception occurs | [
"Deletes",
"a",
"registered",
"Runner",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/RunnersApi.java#L521-L524 |
64,772 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/HookManager.java | HookManager.isValidSecretToken | public boolean isValidSecretToken(String secretToken) {
return (this.secretToken == null || this.secretToken.equals(secretToken) ? true : false);
} | java | public boolean isValidSecretToken(String secretToken) {
return (this.secretToken == null || this.secretToken.equals(secretToken) ? true : false);
} | [
"public",
"boolean",
"isValidSecretToken",
"(",
"String",
"secretToken",
")",
"{",
"return",
"(",
"this",
".",
"secretToken",
"==",
"null",
"||",
"this",
".",
"secretToken",
".",
"equals",
"(",
"secretToken",
")",
"?",
"true",
":",
"false",
")",
";",
"}"
] | Validate the provided secret token against the reference secret token. Returns true if
the secret token is valid or there is no reference secret token to validate against,
otherwise returns false.
@param secretToken the token to validate
@return true if the secret token is valid or there is no reference secret token t... | [
"Validate",
"the",
"provided",
"secret",
"token",
"against",
"the",
"reference",
"secret",
"token",
".",
"Returns",
"true",
"if",
"the",
"secret",
"token",
"is",
"valid",
"or",
"there",
"is",
"no",
"reference",
"secret",
"token",
"to",
"validate",
"against",
... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/HookManager.java#L47-L49 |
64,773 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/HookManager.java | HookManager.isValidSecretToken | public boolean isValidSecretToken(HttpServletRequest request) {
if (this.secretToken != null) {
String secretToken = request.getHeader("X-Gitlab-Token");
return (isValidSecretToken(secretToken));
}
return (true);
} | java | public boolean isValidSecretToken(HttpServletRequest request) {
if (this.secretToken != null) {
String secretToken = request.getHeader("X-Gitlab-Token");
return (isValidSecretToken(secretToken));
}
return (true);
} | [
"public",
"boolean",
"isValidSecretToken",
"(",
"HttpServletRequest",
"request",
")",
"{",
"if",
"(",
"this",
".",
"secretToken",
"!=",
"null",
")",
"{",
"String",
"secretToken",
"=",
"request",
".",
"getHeader",
"(",
"\"X-Gitlab-Token\"",
")",
";",
"return",
... | Validate the provided secret token found in the HTTP header against the reference secret token.
Returns true if the secret token is valid or there is no reference secret token to validate
against, otherwise returns false.
@param request the HTTP request to verify the secret token
@return true if the secret token is va... | [
"Validate",
"the",
"provided",
"secret",
"token",
"found",
"in",
"the",
"HTTP",
"header",
"against",
"the",
"reference",
"secret",
"token",
".",
"Returns",
"true",
"if",
"the",
"secret",
"token",
"is",
"valid",
"or",
"there",
"is",
"no",
"reference",
"secret... | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/HookManager.java#L59-L67 |
64,774 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getIssueNotes | public List<Note> getIssueNotes(Object projectIdOrPath, Integer issueIid, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),"projects",
getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "notes");
return... | java | public List<Note> getIssueNotes(Object projectIdOrPath, Integer issueIid, int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage),"projects",
getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "notes");
return... | [
"public",
"List",
"<",
"Note",
">",
"getIssueNotes",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"issueIid",
",",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
... | Get a list of the issue's notes using the specified page and per page settings.
<pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param issueIid the issue IID to get the notes for
@par... | [
"Get",
"a",
"list",
"of",
"the",
"issue",
"s",
"notes",
"using",
"the",
"specified",
"page",
"and",
"per",
"page",
"settings",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L95-L99 |
64,775 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getIssueNotesStream | public Stream<Note> getIssueNotesStream(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
return (getIssueNotes(projectIdOrPath, issueIid, getDefaultPerPage()).stream());
} | java | public Stream<Note> getIssueNotesStream(Object projectIdOrPath, Integer issueIid) throws GitLabApiException {
return (getIssueNotes(projectIdOrPath, issueIid, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Note",
">",
"getIssueNotesStream",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"issueIid",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getIssueNotes",
"(",
"projectIdOrPath",
",",
"issueIid",
",",
"getDefaultPerPage",
"(... | Get a Stream of the issues's notes.
<pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param issueIid the issue ID to get the notes for
@return a Stream of the issues's notes
@throws Gi... | [
"Get",
"a",
"Stream",
"of",
"the",
"issues",
"s",
"notes",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L127-L129 |
64,776 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getIssueNote | public Note getIssueNote(Object projectIdOrPath, Integer issueIid, Integer noteId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "notes", noteId);
return (response.rea... | java | public Note getIssueNote(Object projectIdOrPath, Integer issueIid, Integer noteId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "notes", noteId);
return (response.rea... | [
"public",
"Note",
"getIssueNote",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"issueIid",
",",
"Integer",
"noteId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"getDefaultPer... | Get the specified issues's note.
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param issueIid the issue IID to get the notes for
@param noteId the ID of the Note to get
@return a Note instance for the specified IDs
@throws GitLabApiException if any exception occur... | [
"Get",
"the",
"specified",
"issues",
"s",
"note",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L140-L144 |
64,777 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.updateIssueNote | public Note updateIssueNote(Object projectIdOrPath, Integer issueIid, Integer noteId, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = put(Response.Status.OK, formData.asMap(),
"projects", getProject... | java | public Note updateIssueNote(Object projectIdOrPath, Integer issueIid, Integer noteId, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = put(Response.Status.OK, formData.asMap(),
"projects", getProject... | [
"public",
"Note",
"updateIssueNote",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"issueIid",
",",
"Integer",
"noteId",
",",
"String",
"body",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
... | Update the specified issues's note.
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param issueIid the issue IID to update the notes for
@param noteId the ID of the node to update
@param body the update content for the Note
@return the modified Note instance
@throws... | [
"Update",
"the",
"specified",
"issues",
"s",
"note",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L188-L194 |
64,778 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getMergeRequestNotes | public List<Note> getMergeRequestNotes(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, null, null, getDefaultPerPage()).all());
} | java | public List<Note> getMergeRequestNotes(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, null, null, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Note",
">",
"getMergeRequestNotes",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getMergeRequestNotes",
"(",
"projectIdOrPath",
",",
"mergeRequestIid",
",",
"null... | Gets a list of all notes for a single merge request
<pre><code>GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the issue ID to get the notes for
@return a ... | [
"Gets",
"a",
"list",
"of",
"all",
"notes",
"for",
"a",
"single",
"merge",
"request"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L229-L231 |
64,779 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getMergeRequestNotes | public List<Note> getMergeRequestNotes(Object projectIdOrPath, Integer mergeRequestIid, SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, sortOrder, orderBy, getDefaultPerPage()).all());
} | java | public List<Note> getMergeRequestNotes(Object projectIdOrPath, Integer mergeRequestIid, SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, sortOrder, orderBy, getDefaultPerPage()).all());
} | [
"public",
"List",
"<",
"Note",
">",
"getMergeRequestNotes",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
",",
"SortOrder",
"sortOrder",
",",
"Note",
".",
"OrderBy",
"orderBy",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getMer... | Gets a list of all notes for a single merge request.
<pre><code>GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the issue ID to get the notes for
@param so... | [
"Gets",
"a",
"list",
"of",
"all",
"notes",
"for",
"a",
"single",
"merge",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L245-L247 |
64,780 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getMergeRequestNotesStream | public Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, null, null, getDefaultPerPage()).stream());
} | java | public Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, null, null, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Note",
">",
"getMergeRequestNotesStream",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getMergeRequestNotes",
"(",
"projectIdOrPath",
",",
"mergeRequestIid",
",",... | Gets a Stream of all notes for a single merge request
<pre><code>GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the issue ID to get the notes for
@return ... | [
"Gets",
"a",
"Stream",
"of",
"all",
"notes",
"for",
"a",
"single",
"merge",
"request"
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L317-L319 |
64,781 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getMergeRequestNotesStream | public Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Integer mergeRequestIid, SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, sortOrder, orderBy, getDefaultPerPage()).stream());
} | java | public Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Integer mergeRequestIid, SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException {
return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, sortOrder, orderBy, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Note",
">",
"getMergeRequestNotesStream",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
",",
"SortOrder",
"sortOrder",
",",
"Note",
".",
"OrderBy",
"orderBy",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
... | Gets a Stream of all notes for a single merge request.
<pre><code>GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes</code></pre>
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the issue ID to get the notes for
@param ... | [
"Gets",
"a",
"Stream",
"of",
"all",
"notes",
"for",
"a",
"single",
"merge",
"request",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L358-L360 |
64,782 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.getMergeRequestNote | public Note getMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, Integer noteId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "notes", noteId);... | java | public Note getMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, Integer noteId) throws GitLabApiException {
Response response = get(Response.Status.OK, getDefaultPerPageParam(),
"projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "notes", noteId);... | [
"public",
"Note",
"getMergeRequestNote",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
",",
"Integer",
"noteId",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
... | Get the specified merge request's note.
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the merge request IID to get the notes for
@param noteId the ID of the Note to get
@return a Note instance for the specified IDs
@throws GitLabApiException... | [
"Get",
"the",
"specified",
"merge",
"request",
"s",
"note",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L371-L375 |
64,783 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.createMergeRequestNote | public Note createMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = post(Response.Status.CREATED, formData,
"projects", getProjectIdOrP... | java | public Note createMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, String body) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = post(Response.Status.CREATED, formData,
"projects", getProjectIdOrP... | [
"public",
"Note",
"createMergeRequestNote",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
",",
"String",
"body",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(... | Create a merge request's note.
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the merge request IID to create the notes for
@param body the content of note
@return the created Note instance
@throws GitLabApiException if any exception occurs | [
"Create",
"a",
"merge",
"request",
"s",
"note",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L386-L391 |
64,784 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/NotesApi.java | NotesApi.deleteMergeRequestNote | public void deleteMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, Integer noteId) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
}
if (noteId == null) {
throw new RuntimeExceptio... | java | public void deleteMergeRequestNote(Object projectIdOrPath, Integer mergeRequestIid, Integer noteId) throws GitLabApiException {
if (mergeRequestIid == null) {
throw new RuntimeException("mergeRequestIid cannot be null");
}
if (noteId == null) {
throw new RuntimeExceptio... | [
"public",
"void",
"deleteMergeRequestNote",
"(",
"Object",
"projectIdOrPath",
",",
"Integer",
"mergeRequestIid",
",",
"Integer",
"noteId",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"mergeRequestIid",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeExcepti... | Delete the specified merge request's note.
@param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
@param mergeRequestIid the merge request IID to delete the notes for
@param noteId the ID of the node to delete
@throws GitLabApiException if any exception occurs | [
"Delete",
"the",
"specified",
"merge",
"request",
"s",
"note",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/NotesApi.java#L419-L432 |
64,785 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.getTagsStream | public Stream<Tag> getTagsStream(Object projectIdOrPath) throws GitLabApiException {
return (getTags(projectIdOrPath, getDefaultPerPage()).stream());
} | java | public Stream<Tag> getTagsStream(Object projectIdOrPath) throws GitLabApiException {
return (getTags(projectIdOrPath, getDefaultPerPage()).stream());
} | [
"public",
"Stream",
"<",
"Tag",
">",
"getTagsStream",
"(",
"Object",
"projectIdOrPath",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"getTags",
"(",
"projectIdOrPath",
",",
"getDefaultPerPage",
"(",
")",
")",
".",
"stream",
"(",
")",
")",
";",
"}... | Get a Stream of repository tags from a project, sorted by name in reverse alphabetical order.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/tags</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@return a Stream of tags for the specified proje... | [
"Get",
"a",
"Stream",
"of",
"repository",
"tags",
"from",
"a",
"project",
"sorted",
"by",
"name",
"in",
"reverse",
"alphabetical",
"order",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L82-L84 |
64,786 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.getTag | public Tag getTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", tagName);
return (response.readEntity(Tag.class));
} | java | public Tag getTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", tagName);
return (response.readEntity(Tag.class));
} | [
"public",
"Tag",
"getTag",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"null",
",",
"\"projects\"",
",",
"getProjectId... | Get a specific repository tag determined by its name.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/tags/:tagName</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param tagName the name of the tag to fetch the info for
@return a Tag instance... | [
"Get",
"a",
"specific",
"repository",
"tag",
"determined",
"by",
"its",
"name",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L96-L99 |
64,787 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.getOptionalTag | public Optional<Tag> getOptionalTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
try {
return (Optional.ofNullable(getTag(projectIdOrPath, tagName)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<Tag> getOptionalTag(Object projectIdOrPath, String tagName) throws GitLabApiException {
try {
return (Optional.ofNullable(getTag(projectIdOrPath, tagName)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"Tag",
">",
"getOptionalTag",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
")",
"throws",
"GitLabApiException",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getTag",
"(",
"projectIdOrPath",
",",
... | Get an Optional instance holding a Tag instance of a specific repository tag determined by its name.
<pre><code>GitLab Endpoint: GET /projects/:id/repository/tags/:tagName</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param tagName the name of the t... | [
"Get",
"an",
"Optional",
"instance",
"holding",
"a",
"Tag",
"instance",
"of",
"a",
"specific",
"repository",
"tag",
"determined",
"by",
"its",
"name",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L111-L117 |
64,788 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.createTag | public Tag createTag(Object projectIdOrPath, String tagName, String ref) throws GitLabApiException {
return (createTag(projectIdOrPath, tagName, ref, null, (String)null));
} | java | public Tag createTag(Object projectIdOrPath, String tagName, String ref) throws GitLabApiException {
return (createTag(projectIdOrPath, tagName, ref, null, (String)null));
} | [
"public",
"Tag",
"createTag",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
",",
"String",
"ref",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"createTag",
"(",
"projectIdOrPath",
",",
"tagName",
",",
"ref",
",",
"null",
",",
"(",
"... | Creates a tag on a particular ref of the given project.
<pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param tagName The name of the tag Must be unique for the project
@param ref the git ... | [
"Creates",
"a",
"tag",
"on",
"a",
"particular",
"ref",
"of",
"the",
"given",
"project",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L130-L132 |
64,789 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.createRelease | public Release createRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = post(Response.Status.CREATED, formData.asMap(),
"projects", getProjectIdOr... | java | public Release createRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = post(Response.Status.CREATED, formData.asMap(),
"projects", getProjectIdOr... | [
"public",
"Release",
"createRelease",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
",",
"String",
"releaseNotes",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"descript... | Add release notes to the existing git tag.
<pre><code>GitLab Endpoint: POST /projects/:id/repository/tags/:tagName/release</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param tagName the name of a tag
@param releaseNotes release notes with markdown ... | [
"Add",
"release",
"notes",
"to",
"the",
"existing",
"git",
"tag",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L215-L220 |
64,790 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/TagsApi.java | TagsApi.updateRelease | public Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = put(Response.Status.OK, formData.asMap(),
"projects", getProjectIdOrPath(p... | java | public Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = put(Response.Status.OK, formData.asMap(),
"projects", getProjectIdOrPath(p... | [
"public",
"Release",
"updateRelease",
"(",
"Object",
"projectIdOrPath",
",",
"String",
"tagName",
",",
"String",
"releaseNotes",
")",
"throws",
"GitLabApiException",
"{",
"Form",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"descript... | Updates the release notes of a given release.
<pre><code>GitLab Endpoint: PUT /projects/:id/repository/tags/:tagName/release</code></pre>
@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
@param tagName the name of a tag
@param releaseNotes release notes with markdow... | [
"Updates",
"the",
"release",
"notes",
"of",
"a",
"given",
"release",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/TagsApi.java#L233-L238 |
64,791 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getUsers | public List<User> getUsers(int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage, customAttributesEnabled), "users");
return (response.readEntity(new GenericType<List<User>>() {}));
} | java | public List<User> getUsers(int page, int perPage) throws GitLabApiException {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage, customAttributesEnabled), "users");
return (response.readEntity(new GenericType<List<User>>() {}));
} | [
"public",
"List",
"<",
"User",
">",
"getUsers",
"(",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"Response",
"response",
"=",
"get",
"(",
"Response",
".",
"Status",
".",
"OK",
",",
"getPageQueryParams",
"(",
"page",
",",... | Get a list of users using the specified page and per page settings.
<pre><code>GitLab Endpoint: GET /users</code></pre>
@param page the page to get
@param perPage the number of users per page
@return the list of Users in the specified range
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"list",
"of",
"users",
"using",
"the",
"specified",
"page",
"and",
"per",
"page",
"settings",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L68-L71 |
64,792 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getUsers | public Pager<User> getUsers(int itemsPerPage) throws GitLabApiException {
return (new Pager<User>(this, User.class, itemsPerPage, createGitLabApiForm().asMap(), "users"));
} | java | public Pager<User> getUsers(int itemsPerPage) throws GitLabApiException {
return (new Pager<User>(this, User.class, itemsPerPage, createGitLabApiForm().asMap(), "users"));
} | [
"public",
"Pager",
"<",
"User",
">",
"getUsers",
"(",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"return",
"(",
"new",
"Pager",
"<",
"User",
">",
"(",
"this",
",",
"User",
".",
"class",
",",
"itemsPerPage",
",",
"createGitLabApiForm",
... | Get a Pager of users.
<pre><code>GitLab Endpoint: GET /users</code></pre>
@param itemsPerPage the number of User instances that will be fetched per page
@return a Pager of User
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"Pager",
"of",
"users",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L82-L84 |
64,793 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getActiveUsers | public Pager<User> getActiveUsers(int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm().withParam("active", true);
return (new Pager<User>(this, User.class, itemsPerPage, formData.asMap(), "users"));
} | java | public Pager<User> getActiveUsers(int itemsPerPage) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm().withParam("active", true);
return (new Pager<User>(this, User.class, itemsPerPage, formData.asMap(), "users"));
} | [
"public",
"Pager",
"<",
"User",
">",
"getActiveUsers",
"(",
"int",
"itemsPerPage",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"createGitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"active\"",
",",
"true",
")",
";",
"return",
... | Get a Pager of active users.
<pre><code>GitLab Endpoint: GET /users?active=true</code></pre>
@param itemsPerPage the number of active User instances that will be fetched per page
@return a Pager of active User
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"Pager",
"of",
"active",
"users",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L138-L141 |
64,794 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.blockUser | public void blockUser(Integer userId) throws GitLabApiException {
if (userId == null) {
throw new RuntimeException("userId cannot be null");
}
if (isApiVersion(ApiVersion.V3)) {
put(Response.Status.CREATED, null, "users", userId, "block");
} else {
po... | java | public void blockUser(Integer userId) throws GitLabApiException {
if (userId == null) {
throw new RuntimeException("userId cannot be null");
}
if (isApiVersion(ApiVersion.V3)) {
put(Response.Status.CREATED, null, "users", userId, "block");
} else {
po... | [
"public",
"void",
"blockUser",
"(",
"Integer",
"userId",
")",
"throws",
"GitLabApiException",
"{",
"if",
"(",
"userId",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"userId cannot be null\"",
")",
";",
"}",
"if",
"(",
"isApiVersion",
"(",... | Blocks the specified user. Available only for admin.
<pre><code>GitLab Endpoint: POST /users/:id/block</code></pre>
@param userId the ID of the user to block
@throws GitLabApiException if any exception occurs | [
"Blocks",
"the",
"specified",
"user",
".",
"Available",
"only",
"for",
"admin",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L163-L173 |
64,795 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getblockedUsers | public List<User> getblockedUsers(int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm()
.withParam("blocked", true)
.withParam(PAGE_PARAM, page)
.withParam(PER_PAGE_PARAM, perPage);
Response response = get(Respon... | java | public List<User> getblockedUsers(int page, int perPage) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm()
.withParam("blocked", true)
.withParam(PAGE_PARAM, page)
.withParam(PER_PAGE_PARAM, perPage);
Response response = get(Respon... | [
"public",
"List",
"<",
"User",
">",
"getblockedUsers",
"(",
"int",
"page",
",",
"int",
"perPage",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"createGitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"blocked\"",
",",
"true",
")... | Get a list of blocked users using the specified page and per page settings.
<pre><code>GitLab Endpoint: GET /users?blocked=true</code></pre>
@param page the page to get
@param perPage the number of users per page
@return the list of blocked Users in the specified range
@throws GitLabApiException if any exception o... | [
"Get",
"a",
"list",
"of",
"blocked",
"users",
"using",
"the",
"specified",
"page",
"and",
"per",
"page",
"settings",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L218-L225 |
64,796 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getUser | public User getUser(int userId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("with_custom_attributes", customAttributesEnabled);
Response response = get(Response.Status.OK, formData.asMap(), "users", userId);
return (response.readEntity(User.class));
} | java | public User getUser(int userId) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("with_custom_attributes", customAttributesEnabled);
Response response = get(Response.Status.OK, formData.asMap(), "users", userId);
return (response.readEntity(User.class));
} | [
"public",
"User",
"getUser",
"(",
"int",
"userId",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"new",
"GitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"with_custom_attributes\"",
",",
"customAttributesEnabled",
")",
";",
"Response"... | Get a single user.
<pre><code>GitLab Endpoint: GET /users/:id</code></pre>
@param userId the ID of the user to get
@return the User instance for the specified user ID
@throws GitLabApiException if any exception occurs | [
"Get",
"a",
"single",
"user",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L262-L266 |
64,797 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getOptionalUser | public Optional<User> getOptionalUser(int userId) {
try {
return (Optional.ofNullable(getUser(userId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<User> getOptionalUser(int userId) {
try {
return (Optional.ofNullable(getUser(userId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"User",
">",
"getOptionalUser",
"(",
"int",
"userId",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getUser",
"(",
"userId",
")",
")",
")",
";",
"}",
"catch",
"(",
"GitLabApiException",
"glae",
")",
... | Get a single user as an Optional instance.
<pre><code>GitLab Endpoint: GET /users/:id</code></pre>
@param userId the ID of the user to get
@return the User for the specified user ID as an Optional instance | [
"Get",
"a",
"single",
"user",
"as",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L276-L282 |
64,798 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getUser | public User getUser(String username) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm().withParam("username", username, true);
Response response = get(Response.Status.OK, formData.asMap(), "users");
List<User> users = response.readEntity(new GenericType<List<User>>() {});... | java | public User getUser(String username) throws GitLabApiException {
GitLabApiForm formData = createGitLabApiForm().withParam("username", username, true);
Response response = get(Response.Status.OK, formData.asMap(), "users");
List<User> users = response.readEntity(new GenericType<List<User>>() {});... | [
"public",
"User",
"getUser",
"(",
"String",
"username",
")",
"throws",
"GitLabApiException",
"{",
"GitLabApiForm",
"formData",
"=",
"createGitLabApiForm",
"(",
")",
".",
"withParam",
"(",
"\"username\"",
",",
"username",
",",
"true",
")",
";",
"Response",
"respo... | Lookup a user by username. Returns null if not found.
<p>NOTE: This is for admin users only.</p>
<pre><code>GitLab Endpoint: GET /users?username=:username</code></pre>
@param username the username of the user to get
@return the User instance for the specified username, or null if not found
@throws GitLabApiExceptio... | [
"Lookup",
"a",
"user",
"by",
"username",
".",
"Returns",
"null",
"if",
"not",
"found",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L295-L300 |
64,799 | gmessner/gitlab4j-api | src/main/java/org/gitlab4j/api/UserApi.java | UserApi.getOptionalUser | public Optional<User> getOptionalUser(String username) {
try {
return (Optional.ofNullable(getUser(username)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | java | public Optional<User> getOptionalUser(String username) {
try {
return (Optional.ofNullable(getUser(username)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
} | [
"public",
"Optional",
"<",
"User",
">",
"getOptionalUser",
"(",
"String",
"username",
")",
"{",
"try",
"{",
"return",
"(",
"Optional",
".",
"ofNullable",
"(",
"getUser",
"(",
"username",
")",
")",
")",
";",
"}",
"catch",
"(",
"GitLabApiException",
"glae",
... | Lookup a user by username and return an Optional instance.
<p>NOTE: This is for admin users only.</p>
<pre><code>GitLab Endpoint: GET /users?username=:username</code></pre>
@param username the username of the user to get
@return the User for the specified username as an Optional instance | [
"Lookup",
"a",
"user",
"by",
"username",
"and",
"return",
"an",
"Optional",
"instance",
"."
] | ab045070abac0a8f4ccbf17b5ed9bfdef5723eed | https://github.com/gmessner/gitlab4j-api/blob/ab045070abac0a8f4ccbf17b5ed9bfdef5723eed/src/main/java/org/gitlab4j/api/UserApi.java#L312-L318 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.