idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
158,200
public List < Epic > getEpicIssues ( Object groupIdOrPath , Integer epicIid , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "epics" , epicIid , "issues" ) ; return ( response...
Gets all issues that are assigned to an epic and the authenticated user has access to using the specified page and per page setting .
158,201
public Pager < Epic > getEpicIssues ( Object groupIdOrPath , Integer epicIid , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Epic > ( this , Epic . class , itemsPerPage , null , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "epics" , epicIid , "issues" ) ) ; }
Get a Pager of all issues that are assigned to an epic and the authenticated user has access to .
158,202
public Stream < Epic > getEpicIssuesStream ( Object groupIdOrPath , Integer epicIid ) throws GitLabApiException { return ( getEpicIssues ( groupIdOrPath , epicIid , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Gets all issues that are assigned to an epic and the authenticated user has access to as a Stream .
158,203
public EpicIssue assignIssue ( Object groupIdOrPath , Integer epicIid , Integer issueIid ) throws GitLabApiException { Response response = post ( Response . Status . CREATED , ( Form ) null , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "epics" , epicIid , "issues" , issueIid ) ; return ( response . readEntity ( Epi...
Creates an epic - issue association . If the issue in question belongs to another epic it is unassigned from that epic .
158,204
public EpicIssue removeIssue ( Object groupIdOrPath , Integer epicIid , Integer issueIid ) throws GitLabApiException { Response response = delete ( Response . Status . OK , null , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "epics" , epicIid , "issues" , issueIid ) ; return ( response . readEntity ( EpicIssue . cla...
Remove an epic - issue association .
158,205
public EpicIssue updateIssue ( Object groupIdOrPath , Integer epicIid , Integer issueIid , Integer moveBeforeId , Integer moveAfterId ) throws GitLabApiException { GitLabApiForm form = new GitLabApiForm ( ) . withParam ( "move_before_id" , moveBeforeId ) . withParam ( "move_after_id" , moveAfterId ) ; Response response...
Updates an epic - issue association .
158,206
private String getHeaderValue ( Response response , String key ) throws GitLabApiException { String value = response . getHeaderString ( key ) ; value = ( value != null ? value . trim ( ) : null ) ; if ( value == null || value . length ( ) == 0 ) { return ( null ) ; } return ( value ) ; }
Get the specified header value from the Response instance .
158,207
private int getIntHeaderValue ( Response response , String key ) throws GitLabApiException { String value = getHeaderValue ( response , key ) ; if ( value == null ) { return - 1 ; } try { return ( Integer . parseInt ( value ) ) ; } catch ( NumberFormatException nfe ) { throw new GitLabApiException ( "Invalid '" + key +...
Get the specified integer header value from the Response instance .
158,208
private void setPageParam ( int page ) { pageParam . set ( 0 , Integer . toString ( page ) ) ; queryParams . put ( PAGE_PARAM , pageParam ) ; }
Sets the page query parameter .
158,209
public List < T > page ( int pageNumber ) { if ( pageNumber > totalPages && pageNumber > kaminariNextPage ) { throw new NoSuchElementException ( ) ; } else if ( pageNumber < 1 ) { throw new NoSuchElementException ( ) ; } if ( currentPage == 0 && pageNumber == 1 ) { currentPage = 1 ; return ( currentItems ) ; } if ( cur...
Returns the specified page of List .
158,210
public List < T > all ( ) throws GitLabApiException { currentPage = 0 ; List < T > allItems = new ArrayList < > ( totalItems ) ; while ( hasNext ( ) ) { allItems . addAll ( next ( ) ) ; } return ( allItems ) ; }
Gets all the items from each page as a single List instance .
158,211
public Stream < T > stream ( ) throws GitLabApiException , IllegalStateException { if ( pagerStream == null ) { synchronized ( this ) { if ( pagerStream == null ) { currentPage = 0 ; Stream . Builder < T > streamBuilder = Stream . builder ( ) ; while ( hasNext ( ) ) { next ( ) . forEach ( streamBuilder ) ; } pagerStrea...
Builds and returns a Stream instance which is pre - populated with all items from all pages .
158,212
public Stream < T > lazyStream ( ) throws IllegalStateException { if ( pagerStream == null ) { synchronized ( this ) { if ( pagerStream == null ) { currentPage = 0 ; pagerStream = StreamSupport . stream ( new PagerSpliterator < T > ( this ) , false ) ; return ( pagerStream ) ; } } } throw new IllegalStateException ( "S...
Creates a Stream instance for lazily streaming items from the GitLab server .
158,213
public void setMaskedHeaderNames ( final List < String > maskedHeaderNames ) { this . maskedHeaderNames . clear ( ) ; if ( maskedHeaderNames != null ) { maskedHeaderNames . forEach ( h -> { addMaskedHeaderName ( h ) ; } ) ; } }
Set the list of header names to mask values for . If null will clear the header names to mask .
158,214
public void addMaskedHeaderName ( String maskedHeaderName ) { if ( maskedHeaderName != null ) { maskedHeaderName = maskedHeaderName . trim ( ) ; if ( maskedHeaderName . length ( ) > 0 ) { maskedHeaderNames . add ( maskedHeaderName . toLowerCase ( ) ) ; } } }
Add a header name to the list of masked header names .
158,215
protected void printHeaders ( final StringBuilder sb , final long id , final String prefix , final MultivaluedMap < String , String > headers ) { getSortedHeaders ( headers . entrySet ( ) ) . forEach ( h -> { final List < ? > values = h . getValue ( ) ; final String header = h . getKey ( ) ; final boolean isMaskedHeade...
Logs each of the HTTP headers masking the value of the header if the header key is in the list of masked header names .
158,216
public List < Package > getPackages ( Object projectIdOrPath ) throws GitLabApiException { return ( getPackages ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of project packages . Both Maven and NPM packages are included in results . When accessed without authentication only packages of public projects are returned .
158,217
public List < Package > getPackages ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" ) ; return response . readEntity ( new GenericTy...
Get a list of project packages for the specified page . Both Maven and NPM packages are included in results . When accessed without authentication only packages of public projects are returned .
158,218
public Pager < Package > getPackages ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Package > ( this , Package . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" ) ) ; }
Get a Pager of project packages . Both Maven and NPM packages are included in results . When accessed without authentication only packages of public projects are returned .
158,219
public Stream < Package > getPackagesStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getPackages ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project packages . Both Maven and NPM packages are included in results . When accessed without authentication only packages of public projects are returned .
158,220
public Package getPackage ( Object projectIdOrPath , Integer packageId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" , packageId ) ; return ( response . readEntity ( Package . class ) ) ; }
Get a single project package .
158,221
public List < PackageFile > getPackageFiles ( Object projectIdOrPath , Integer packageId ) throws GitLabApiException { return ( getPackageFiles ( projectIdOrPath , packageId , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of package files of a single package .
158,222
public List < PackageFile > getPackageFiles ( Object projectIdOrPath , Integer packageId , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" , packageId , "packa...
Get a list of package files of a single package for the specified page .
158,223
public Pager < PackageFile > getPackageFiles ( Object projectIdOrPath , Integer packageId , int itemsPerPage ) throws GitLabApiException { return ( new Pager < PackageFile > ( this , PackageFile . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" , packageId , "package_files...
Get a Pager of project package files .
158,224
public Stream < PackageFile > getPackagesStream ( Object projectIdOrPath , Integer packageId ) throws GitLabApiException { return ( getPackageFiles ( projectIdOrPath , packageId , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project package files .
158,225
public void deletePackage ( Object projectIdOrPath , Integer packageId ) throws GitLabApiException { if ( packageId == null ) { throw new RuntimeException ( "packageId cannot be null" ) ; } delete ( Response . Status . NO_CONTENT , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "packages" , packageId ) ; ...
Deletes a project package .
158,226
public List < Namespace > getNamespaces ( int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "namespaces" ) ; return ( response . readEntity ( new GenericType < List < Namespace > > ( ) { } ) ) ; }
Get a list of the namespaces of the authenticated user . If the user is an administrator a list of all namespaces in the GitLab instance is returned .
158,227
public Pager < Namespace > getNamespaces ( int itemsPerPage ) throws GitLabApiException { return ( new Pager < Namespace > ( this , Namespace . class , itemsPerPage , null , "namespaces" ) ) ; }
Get a Pager of the namespaces of the authenticated user . If the user is an administrator a Pager of all namespaces in the GitLab instance is returned .
158,228
public List < Namespace > findNamespaces ( String query ) throws GitLabApiException { return ( findNamespaces ( query , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get all namespaces that match a string in their name or path .
158,229
public List < Namespace > findNamespaces ( String query , int page , int perPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "search" , query , true ) . withParam ( PAGE_PARAM , page ) . withParam ( PER_PAGE_PARAM , perPage ) ; Response response = get ( Response . Status ....
Get all namespaces that match a string in their name or path in the specified page range .
158,230
public Pager < Namespace > findNamespaces ( String query , int itemsPerPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "search" , query , true ) ; return ( new Pager < Namespace > ( this , Namespace . class , itemsPerPage , formData . asMap ( ) , "namespaces" ) ) ; }
Get a Pager of all namespaces that match a string in their name or path .
158,231
public Stream < Namespace > findNamespacesStream ( String query ) throws GitLabApiException { return ( findNamespaces ( query , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get all namespaces that match a string in their name or path as a Stream .
158,232
public void handleEvent ( HttpServletRequest request ) throws GitLabApiException { String eventName = request . getHeader ( "X-Gitlab-Event" ) ; if ( eventName == null || eventName . trim ( ) . isEmpty ( ) ) { LOGGER . warning ( "X-Gitlab-Event header is missing!" ) ; return ; } if ( ! isValidSecretToken ( request ) ) ...
Parses and verifies an Event instance from the HTTP request and fires it off to the registered listeners .
158,233
public List < Event > getAuthenticatedUserEvents ( ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getAuthenticatedUserEvents ( action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of events for the authenticated user .
158,234
public Stream < Event > getAuthenticatedUserEventsStream ( ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getAuthenticatedUserEvents ( action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of events for the authenticated user .
158,235
public List < Event > getUserEvents ( Object userIdOrUsername , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getUserEvents ( userIdOrUsername , action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of events for the specified user .
158,236
public Pager < Event > getUserEvents ( Object userIdOrUsername , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder , int itemsPerPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "action" , action ) . withParam ( "target_type" , targ...
Get a list of events for the specified user and in the specified page range .
158,237
public Stream < Event > getUserEventsStream ( Object userIdOrUsername , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getUserEvents ( userIdOrUsername , action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . stream...
Get a Stream of events for the specified user .
158,238
public List < Event > getProjectEvents ( Object projectIdOrPath , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getProjectEvents ( projectIdOrPath , action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . all ( ) ) ...
Get a list of events for the specified project .
158,239
public List < Event > getProjectEvents ( Integer projectIdOrPath , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder , int page , int perPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "action" , action ) . withParam ( "target_type...
Get a list of events for the specified project and in the specified page range .
158,240
public Stream < Event > getProjectEventsStream ( Object projectIdOrPath , ActionType action , TargetType targetType , Date before , Date after , SortOrder sortOrder ) throws GitLabApiException { return ( getProjectEvents ( projectIdOrPath , action , targetType , before , after , sortOrder , getDefaultPerPage ( ) ) . st...
Get a Stream of events for the specified project .
158,241
public Pager < Project > getProjects ( int itemsPerPage ) throws GitLabApiException { return ( new Pager < Project > ( this , Project . class , itemsPerPage , null , "projects" ) ) ; }
Get a Pager instance of projects accessible by the authenticated user .
158,242
public Pager < Project > getProjects ( Boolean archived , Visibility visibility , ProjectOrderBy orderBy , SortOrder sort , String search , Boolean simple , Boolean owned , Boolean membership , Boolean starred , Boolean statistics , int itemsPerPage ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiFo...
Get a Pager of projects accessible by the authenticated user and matching the supplied filter parameters . All filter parameters are optional .
158,243
public List < Project > getProjects ( String search ) throws GitLabApiException { return ( getProjects ( search , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of projects accessible by the authenticated user that match the provided search string .
158,244
public Pager < Project > getProjects ( String search , int itemsPerPage ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "search" , search ) ; return ( new Pager < Project > ( this , Project . class , itemsPerPage , formData . asMap ( ) , "projects" ) ) ; }
Get a Pager of projects accessible by the authenticated user that match the provided search string .
158,245
public Stream < Project > getProjectsStream ( String search ) throws GitLabApiException { return ( getProjects ( search , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of projects accessible by the authenticated user that match the provided search string .
158,246
public Pager < Project > getMemberProjects ( int itemsPerPage ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "membership" , true ) ; return ( new Pager < Project > ( this , Project . class , itemsPerPage , formData . asMap ( ) , "projects" ) ) ; }
Get a Pager of projects that the authenticated user is a member of .
158,247
public List < Project > getStarredProjects ( int page , int perPage ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "starred" , true ) . withParam ( PAGE_PARAM , page ) . withParam ( PER_PAGE_PARAM , perPage ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , ...
Get a list of projects starred by the authenticated user in the specified page range .
158,248
public Pager < Project > getStarredProjects ( int itemsPerPage ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "starred" , true ) . withParam ( PER_PAGE_PARAM , getDefaultPerPage ( ) ) ; return ( new Pager < Project > ( this , Project . class , itemsPerPage , formData . asMap ( ) , "pr...
Get a Pager of projects starred by the authenticated user .
158,249
public List < Project > getUserProjects ( Object userIdOrUsername , ProjectFilter filter ) throws GitLabApiException { return ( getUserProjects ( userIdOrUsername , filter , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of visible projects owned by the given user .
158,250
public List < Project > getUserProjects ( Object userIdOrUsername , ProjectFilter filter , int page , int perPage ) throws GitLabApiException { GitLabApiForm formData = filter . getQueryParams ( page , perPage ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "users" , getUserIdOrUsername ( ...
Get a list of visible projects owned by the given user in the specified page range .
158,251
public Pager < Project > getUserProjects ( Object userIdOrUsername , ProjectFilter filter , int itemsPerPage ) throws GitLabApiException { GitLabApiForm formData = filter . getQueryParams ( ) ; return ( new Pager < Project > ( this , Project . class , itemsPerPage , formData . asMap ( ) , "users" , getUserIdOrUsername ...
Get a Pager of visible projects owned by the given user .
158,252
public Stream < Project > getUserProjectsStream ( Object userIdOrUsername , ProjectFilter filter ) throws GitLabApiException { return ( getUserProjects ( userIdOrUsername , filter , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of visible projects owned by the given user .
158,253
public Project createProject ( Integer groupId , String projectName ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "namespace_id" , groupId ) . withParam ( "name" , projectName , true ) ; Response response = post ( Response . Status . CREATED , formData , "projects" ) ; retur...
Create a new project in the specified group .
158,254
public Project forkProject ( Object projectIdOrPath , String namespace ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "namespace" , namespace , true ) ; Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . CREATE...
Forks a project into the user namespace of the authenticated user or the one provided . The forking operation for a project is asynchronous and is completed in a background job . The request will return immediately .
158,255
public List < Member > getMembers ( Object projectIdOrPath ) throws GitLabApiException { return ( getMembers ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of project team members .
158,256
public List < Member > getMembers ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "members" ) ; return ( response . readEntity ( new GenericTyp...
Get a list of project team members in the specified page range .
158,257
public Pager < Member > getMembers ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Member > ( this , Member . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "members" ) ) ; }
Get a Pager of project team members .
158,258
public Stream < Member > getMembersStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getMembers ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project team members .
158,259
public Member addMember ( Object projectIdOrPath , Integer userId , Integer accessLevel ) throws GitLabApiException { return ( addMember ( projectIdOrPath , userId , accessLevel , null ) ) ; }
Adds a user to a project team . This is an idempotent method and can be called multiple times with the same parameters . Adding team membership to a user that is already a member does not affect the existing membership .
158,260
public Member updateMember ( Object projectIdOrPath , Integer userId , Integer accessLevel , Date expiresAt ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "access_level" , accessLevel , true ) . withParam ( "expires_at" , expiresAt , false ) ; Response response = put ( Respon...
Updates a member of a project .
158,261
public void removeMember ( Object projectIdOrPath , Integer userId ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "mem...
Removes user from project team .
158,262
public List < ProjectUser > getProjectUsers ( Object projectIdOrPath ) throws GitLabApiException { return ( getProjectUsers ( projectIdOrPath , null , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of project users . This list includes all project members and all users assigned to project parent groups .
158,263
public Pager < ProjectUser > getProjectUsers ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( getProjectUsers ( projectIdOrPath , null , itemsPerPage ) ) ; }
Get a Pager of project users . This Pager includes all project members and all users assigned to project parent groups .
158,264
public Stream < ProjectUser > getProjectUsersStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getProjectUsers ( projectIdOrPath , null , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project users . This Stream includes all project members and all users assigned to project parent groups .
158,265
public List < ProjectUser > getProjectUsers ( Object projectIdOrPath , String search ) throws GitLabApiException { return ( getProjectUsers ( projectIdOrPath , search , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of project users matching the specified search string . This list includes all project members and all users assigned to project parent groups .
158,266
public Pager < ProjectUser > getProjectUsers ( Object projectIdOrPath , String search , int itemsPerPage ) throws GitLabApiException { MultivaluedMap < String , String > params = ( search != null ? new GitLabApiForm ( ) . withParam ( "search" , search ) . asMap ( ) : null ) ; return ( new Pager < ProjectUser > ( this ,...
Get a Pager of project users matching the specified search string . This Pager includes all project members and all users assigned to project parent groups .
158,267
public Stream < ProjectUser > getProjectUsersStream ( Object projectIdOrPath , String search ) throws GitLabApiException { return ( getProjectUsers ( projectIdOrPath , search , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project users matching the specified search string . This Stream includes all project members and all users assigned to project parent groups .
158,268
public List < Event > getProjectEvents ( Object projectIdOrPath ) throws GitLabApiException { return ( getProjectEvents ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get the project events for specific project . Sorted from newest to latest .
158,269
public List < Event > getProjectEvents ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "events" ) ; return ( response . readEntity ( new Generi...
Get the project events for specific project . Sorted from newest to latest in the specified page range .
158,270
public Pager < Event > getProjectEvents ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Event > ( this , Event . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "events" ) ) ; }
Get a Pager of project events for specific project . Sorted from newest to latest .
158,271
public Stream < Event > getProjectEventsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getProjectEvents ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of the project events for specific project . Sorted from newest to latest .
158,272
public List < ProjectHook > getHooks ( Object projectIdOrPath ) throws GitLabApiException { return ( getHooks ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of the project hooks for the specified project .
158,273
public List < ProjectHook > getHooks ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "hooks" ) ; return ( response . readEntity ( new GenericTy...
Get list of project hooks in the specified page range .
158,274
public Pager < ProjectHook > getHooks ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < ProjectHook > ( this , ProjectHook . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "hooks" ) ) ; }
Get Pager of project hooks .
158,275
public Stream < ProjectHook > getHooksStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getHooks ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of the project hooks for the specified project .
158,276
public ProjectHook getHook ( Object projectIdOrPath , Integer hookId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "hooks" , hookId ) ; return ( response . readEntity ( ProjectHook . class ) ) ; }
Get a specific hook for project .
158,277
public Optional < ProjectHook > getOptionalHook ( Object projectIdOrPath , Integer hookId ) { try { return ( Optional . ofNullable ( getHook ( projectIdOrPath , hookId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a specific hook for project as an Optional instance .
158,278
public void deleteHook ( Object projectIdOrPath , Integer hookId ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "hooks...
Deletes a hook from the project .
158,279
public ProjectHook modifyHook ( ProjectHook hook ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "url" , hook . getUrl ( ) , true ) . withParam ( "push_events" , hook . getPushEvents ( ) , false ) . withParam ( "issues_events" , hook . getIssuesEvents ( ) , false ) . withParam...
Modifies a hook for project .
158,280
public List < Issue > getIssues ( Object projectIdOrPath ) throws GitLabApiException { return ( getIssues ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of the project s issues .
158,281
public Stream < Issue > getIssuesStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getIssues ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of the project s issues .
158,282
public void deleteIssue ( Object projectIdOrPath , Integer issueId ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( pr...
Delete a project issue .
158,283
public List < Snippet > getSnippets ( Object projectIdOrPath ) throws GitLabApiException { return ( getSnippets ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of the project snippets .
158,284
public List < Snippet > getSnippets ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "snippets" ) ; return ( response . readEntity ( new Generic...
Get a list of project snippets .
158,285
public Pager < Snippet > getSnippets ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Snippet > ( this , Snippet . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "snippets" ) ) ; }
Get a Pager of project s snippets .
158,286
public Stream < Snippet > getSnippetsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getSnippets ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of the project snippets .
158,287
public Snippet getSnippet ( Object projectIdOrPath , Integer snippetId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "snippets" , snippetId ) ; return ( response . readEntity ( Snippet . class ) ) ; }
Get a single of project snippet .
158,288
public Optional < Snippet > getOptionalSnippet ( Object projectIdOrPath , Integer snippetId ) { try { return ( Optional . ofNullable ( getSnippet ( projectIdOrPath , snippetId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a single of project snippet as an Optional instance .
158,289
public Snippet createSnippet ( Object projectIdOrPath , String title , String filename , String description , String code , Visibility visibility ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "file_name" , filename , true ) . withParam ...
Creates a new project snippet . The user must have permission to create new snippets .
158,290
public Snippet updateSnippet ( Object projectIdOrPath , Integer snippetId , String title , String filename , String description , String code , Visibility visibility ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title ) . withParam ( "file_name" , filename ) . with...
Updates an existing project snippet . The user must have permission to change an existing snippet .
158,291
public String getRawSnippetContent ( Object projectIdOrPath , Integer snippetId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "snippets" , snippetId , "raw" ) ; return ( response . readEntity ( String . class ) ) ; }
Get the raw project snippet as plain text .
158,292
public Optional < String > getOptionalRawSnippetContent ( Object projectIdOrPath , Integer snippetId ) { try { return ( Optional . ofNullable ( getRawSnippetContent ( projectIdOrPath , snippetId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get the raw project snippet plain text as an Optional instance .
158,293
public void shareProject ( Object projectIdOrPath , Integer groupId , AccessLevel accessLevel , Date expiresAt ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "group_id" , groupId , true ) . withParam ( "group_access" , accessLevel , true ) . withParam ( "expires_at" , expires...
Share a project with the specified group .
158,294
public void unshareProject ( Object projectIdOrPath , Integer groupId ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "...
Unshare the project from the group .
158,295
public Project archiveProject ( Object projectIdOrPath ) throws GitLabApiException { Response response = post ( Response . Status . CREATED , ( new GitLabApiForm ( ) ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "archive" ) ; return ( response . readEntity ( Project . class ) ) ; }
Archive a project
158,296
public PushRules getPushRules ( Object projectIdOrPath ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "push_rule" ) ; return ( response . readEntity ( PushRules . class ) ) ; }
Get the project s push rules .
158,297
public PushRules createPushRules ( Object projectIdOrPath , PushRules pushRule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "deny_delete_tag" , pushRule . getDenyDeleteTag ( ) ) . withParam ( "member_check" , pushRule . getMemberCheck ( ) ) . withParam ( "prevent_secrets" ,...
Adds a push rule to a specified project .
158,298
public PushRules updatePushRules ( Object projectIdOrPath , PushRules pushRule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "deny_delete_tag" , pushRule . getDenyDeleteTag ( ) ) . withParam ( "member_check" , pushRule . getMemberCheck ( ) ) . withParam ( "prevent_secrets" ,...
Updates a push rule for the specified project .
158,299
public void deletePushRules ( Object projectIdOrPath ) throws GitLabApiException { delete ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "push_rule" ) ; }
Removes a push rule from a project . This is an idempotent method and can be called multiple times . Either the push rule is available or not .