@@ -148,6 +148,57 @@ public Repositories getRepositories() throws AzDException {
148148 return MAPPER .mapJsonResponse (r , Repositories .class );
149149 }
150150
151+ /***
152+ * Retrieve git repositories.
153+ * @param includeHidden If true then includes hidden repositories.
154+ * @throws AzDException Default Api Exception handler.
155+ * @return array of git repositories
156+ */
157+ @ Override
158+ public Repositories getRepositories (boolean includeHidden ) throws AzDException {
159+ String r = send (RequestMethod .GET , CONNECTION , GIT , CONNECTION .getProject (), AREA , null , "repositories" ,
160+ ApiVersion .GIT , Map .of ("includeHidden" , includeHidden ), null , null );
161+
162+ return MAPPER .mapJsonResponse (r , Repositories .class );
163+ }
164+
165+ /***
166+ * Retrieve git repositories.
167+ * @param includeAllUrls If true then includes all remote URLs.
168+ * @param includeLinks Set this value to true to include reference links.
169+ * @throws AzDException Default Api Exception handler.
170+ * @return array of git repositories
171+ */
172+ @ Override
173+ public Repositories getRepositories (boolean includeLinks , boolean includeAllUrls ) throws AzDException {
174+ String r = send (RequestMethod .GET , CONNECTION , GIT , CONNECTION .getProject (), AREA , null , "repositories" ,
175+ ApiVersion .GIT , Map .of ("includeLinks" , includeLinks , "includeAllUrls" , includeAllUrls ), null , null );
176+
177+ return MAPPER .mapJsonResponse (r , Repositories .class );
178+ }
179+
180+ /***
181+ * Retrieve git repositories.
182+ * @param includeHidden If true then includes hidden repositories.
183+ * @param includeAllUrls If true then includes all remote URLs.
184+ * @param includeLinks Set this value to true to include reference links.
185+ * @throws AzDException Default Api Exception handler.
186+ * @return array of git repositories
187+ */
188+ @ Override
189+ public Repositories getRepositories (boolean includeAllUrls , boolean includeLinks , boolean includeHidden ) throws AzDException {
190+ var q = new HashMap <String , Object >(){{
191+ put ("includeAllUrls" , includeAllUrls );
192+ put ("includeLinks" , includeLinks );
193+ put ("includeHidden" , includeHidden );
194+ }};
195+
196+ String r = send (RequestMethod .GET , CONNECTION , GIT , CONNECTION .getProject (), AREA , null , "repositories" ,
197+ ApiVersion .GIT , q , null , null );
198+
199+ return MAPPER .mapJsonResponse (r , Repositories .class );
200+ }
201+
151202 /***
152203 * Recover a soft-deleted Git repository. Recently deleted repositories go
153204 * into a soft-delete state for a period of time before they are hard
0 commit comments