import { GroupSearchResults, GroupSortBy, SortOrder } from '../../models/index.js'; import { BaseRequestBuilder, RequestConfiguration, RequestInformation, RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Search for groups in the registry. */ export interface GroupsRequestBuilder extends BaseRequestBuilder { /** * Returns a paginated list of all groups that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ProblemDetails} error when the service returns a 401 status code * @throws {ProblemDetails} error when the service returns a 403 status code * @throws {ProblemDetails} error when the service returns a 500 status code */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Returns a paginated list of all groups that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Returns a paginated list of all groups that match the provided filter criteria.This operation can fail for the following reasons:* A server error occurred (HTTP error `500`) */ export interface GroupsRequestBuilderGetQueryParameters { /** * Filter by description. */ description?: string; /** * Filter by group name. */ groupId?: string; /** * Filter by one or more name/value label. Separate each name/value pair using a colon, which splits on the last colon (e.g. `labels=foo:bar` matches key `foo` and value `bar`). Note: the key:value query treats the last colon as the delimiter, so values containing colons cannot be matched via this syntax (they remain matchable via key-only queries). */ labels?: string[]; /** * The number of artifacts to return. Defaults to 20. */ limit?: number; /** * The number of artifacts to skip before starting to collect the result set. Defaults to 0. */ offset?: number; /** * Sort order, ascending (`asc`) or descending (`desc`). */ order?: SortOrder; /** * The field to sort by. Can be one of:* `name`* `createdOn` */ orderby?: GroupSortBy; } /** * Uri template for the request builder. */ export declare const GroupsRequestBuilderUriTemplate = "{+baseurl}/search/groups{?description*,groupId*,labels*,limit*,offset*,order*,orderby*}"; /** * Metadata for all the requests in the request builder. */ export declare const GroupsRequestBuilderRequestsMetadata: RequestsMetadata;