@@ -23,6 +23,9 @@ public class ProjectFilter {
23
23
private Boolean withCustomAttributes ;
24
24
private Boolean withIssuesEnabled ;
25
25
private Boolean withMergeRequestsEnabled ;
26
+ private String withProgrammingLanguage ;
27
+ private Boolean wikiChecksumFailed ;
28
+ private Boolean repositoryChecksumFailed ;
26
29
private AccessLevel minAccessLevel ;
27
30
28
31
/**
@@ -161,14 +164,49 @@ public ProjectFilter withIssuesEnabled(Boolean withIssuesEnabled) {
161
164
/**
162
165
* Limit by enabled merge requests feature
163
166
*
164
- * @param withMergeRequestsEnabled if true, imit by enabled merge requests feature
167
+ * @param withMergeRequestsEnabled if true, limit by enabled merge requests feature
165
168
* @return the reference to this ProjectFilter instance
166
169
*/
167
170
public ProjectFilter withMergeRequestsEnabled (Boolean withMergeRequestsEnabled ) {
168
171
this .withMergeRequestsEnabled = withMergeRequestsEnabled ;
169
172
return (this );
170
173
}
171
174
175
+ /**
176
+ * Limit by projects which use the given programming language.
177
+ *
178
+ * @param withProgrammingLanguage limit by projects which use the given programming language
179
+ * @return the reference to this ProjectFilter instance
180
+ */
181
+ public ProjectFilter withProgrammingLanguage (String withProgrammingLanguage ) {
182
+ this .withProgrammingLanguage = withProgrammingLanguage ;
183
+ return (this );
184
+ }
185
+
186
+ /**
187
+ * Limit projects where the wiki checksum calculation has failed.
188
+ *
189
+ * @since GitLab 11.2
190
+ * @param wikiChecksumFailed if true, limit projects where the wiki checksum calculation has failed
191
+ * @return the reference to this ProjectFilter instance
192
+ */
193
+ public ProjectFilter withWikiChecksumFailed (Boolean wikiChecksumFailed ) {
194
+ this .wikiChecksumFailed = wikiChecksumFailed ;
195
+ return (this );
196
+ }
197
+
198
+ /**
199
+ * Limit projects where the repository checksum calculation has failed.
200
+ *
201
+ * @since GitLab 11.2
202
+ * @param repositoryChecksumFailed if true, limit projects where the repository checksum calculation has failed
203
+ * @return the reference to this ProjectFilter instance
204
+ */
205
+ public ProjectFilter withRepositoryChecksumFailed (Boolean repositoryChecksumFailed ) {
206
+ this .repositoryChecksumFailed = repositoryChecksumFailed ;
207
+ return (this );
208
+ }
209
+
172
210
/**
173
211
* Limit by current user minimal access level
174
212
*
@@ -213,6 +251,9 @@ public GitLabApiForm getQueryParams() {
213
251
.withParam ("with_custom_attributes" , withCustomAttributes )
214
252
.withParam ("with_issues_enabled" , withIssuesEnabled )
215
253
.withParam ("with_merge_requests_enabled " , withMergeRequestsEnabled ))
254
+ .withParam ("with_programming_language" , withProgrammingLanguage )
255
+ .withParam ("wiki_checksum_failed" , wikiChecksumFailed )
256
+ .withParam ("repository_checksum_failed" , repositoryChecksumFailed )
216
257
.withParam ("min_access_level " , (minAccessLevel != null ? minAccessLevel .toValue () : null )
217
258
);
218
259
}
0 commit comments