UNPKG

@microsoft/msgraph-beta-sdk-termstore

Version:
98 lines 4.46 kB
import { type Relation, type RelationCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/termStore/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type RelationItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. */ export interface RelationsRequestBuilder extends BaseRequestBuilder<RelationsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. * @param relationId The unique identifier of relation * @returns {RelationItemRequestBuilder} */ byRelationId(relationId: string): RelationItemRequestBuilder; /** * Get the different relation of a [term] or [set] from the relations navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<RelationCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/termstore-term-list-relations?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<RelationsRequestBuilderGetQueryParameters> | undefined): Promise<RelationCollectionResponse | undefined>; /** * Create new navigation property to relations for termStore * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Relation>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: Relation, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Relation | undefined>; /** * Get the different relation of a [term] or [set] from the relations navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<RelationsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to relations for termStore * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: Relation, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get the different relation of a [term] or [set] from the relations navigation property. */ export interface RelationsRequestBuilderGetQueryParameters { /** * Include count of items */ count?: boolean; /** * Expand related entities */ expand?: string[]; /** * Filter items by property values */ filter?: string; /** * Order items by property values */ orderby?: string[]; /** * Search items by search phrases */ search?: string; /** * Select properties to be returned */ select?: string[]; /** * Skip the first n items */ skip?: number; /** * Show only the first n items */ top?: number; } /** * Uri template for the request builder. */ export declare const RelationsRequestBuilderUriTemplate = "{+baseurl}/termStore/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const RelationsRequestBuilderNavigationMetadata: Record<Exclude<keyof RelationsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const RelationsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map