Commit 02c1995c authored by Greg Messner's avatar Greg Messner
Browse files

Renamed modifyPipelineSchedule() to updatePipelineSchedule() to follow library...

Renamed modifyPipelineSchedule() to updatePipelineSchedule() to follow library naming conventions (#318).
parent 74588bc7
...@@ -305,6 +305,7 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -305,6 +305,7 @@ public class PipelineApi extends AbstractApi implements Constants {
public List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath) throws GitLabApiException { public List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath) throws GitLabApiException {
return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).all()); return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).all());
} }
/** /**
* Get list of project pipeline schedules in the specified page range. * Get list of project pipeline schedules in the specified page range.
* *
...@@ -320,6 +321,7 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -320,6 +321,7 @@ public class PipelineApi extends AbstractApi implements Constants {
Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "pipeline_schedules"); Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "pipeline_schedules");
return (response.readEntity(new GenericType<List<PipelineSchedule>>() {})); return (response.readEntity(new GenericType<List<PipelineSchedule>>() {}));
} }
/** /**
* Get Pager of project pipeline schedule. * Get Pager of project pipeline schedule.
* *
...@@ -347,7 +349,6 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -347,7 +349,6 @@ public class PipelineApi extends AbstractApi implements Constants {
return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).stream()); return (getPipelineSchedules(projectIdOrPath, getDefaultPerPage()).stream());
} }
/** /**
* Get a specific pipeline schedule for project. * Get a specific pipeline schedule for project.
* *
...@@ -427,7 +428,7 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -427,7 +428,7 @@ public class PipelineApi extends AbstractApi implements Constants {
* @return the modified project schedule * @return the modified project schedule
* @throws GitLabApiException if any exception occurs * @throws GitLabApiException if any exception occurs
*/ */
public PipelineSchedule modifyPipelineSchedule(Object projectIdOrPath,PipelineSchedule pipelineSchedule) throws GitLabApiException { public PipelineSchedule updatePipelineSchedule(Object projectIdOrPath,PipelineSchedule pipelineSchedule) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm() GitLabApiForm formData = new GitLabApiForm()
.withParam("description", pipelineSchedule.getDescription(), false) .withParam("description", pipelineSchedule.getDescription(), false)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment