public class PackageFilter extends Object
| Constructor and Description |
|---|
PackageFilter() |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
getQueryParams()
Get the query params specified by this filter.
|
PackageFilter |
withExcludeSubgroups(Boolean excludeSubgroups)
Exclude Subgroups.
|
PackageFilter |
withIncludeVersionless(Boolean includeVersionless) |
PackageFilter |
withOrderBy(Constants.PackageOrderBy orderBy)
Return projects ordered by created_at, name, version, type, or project_path
|
PackageFilter |
withPackageName(String packageName)
Filter the project packages with a fuzzy search by name
|
PackageFilter |
withPackageType(PackageType packageType)
Filter the returned packages by type.
|
PackageFilter |
withSortOder(Constants.SortOrder sort)
Return projects sorted in asc or desc order.
|
PackageFilter |
withStatus(Constants.PackageStatus status)
Filter the returned packages by status.
|
public PackageFilter withExcludeSubgroups(Boolean excludeSubgroups)
excludeSubgroups - if true, packages from projects from subgroups are not listed.public PackageFilter withOrderBy(Constants.PackageOrderBy orderBy)
orderBy - specifies what field to order bypublic PackageFilter withSortOder(Constants.SortOrder sort)
sort - sort direction, ASC or DESCpublic PackageFilter withPackageType(PackageType packageType)
packageType - One of conan, maven, npm, pypi, composer, nuget, helm, generic or golangpublic PackageFilter withPackageName(String packageName)
packageName - public PackageFilter withIncludeVersionless(Boolean includeVersionless)
includeVersionless - if true, versionless packages are included in the responsepublic PackageFilter withStatus(Constants.PackageStatus status)
status - One of default (default), hidden, or processingpublic GitLabApiForm getQueryParams()
Copyright © 2021. All rights reserved.