UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
116 lines 5.62 kB
import { type SensitivityLabel, type SensitivityLabelCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ComputeInheritanceWithLabelIdsWithLocaleWithContentFormatsRequestBuilder } from './computeInheritanceWithLabelIdsWithLocaleWithContentFormats/index.js'; import { type ComputeRightsAndInheritanceRequestBuilder } from './computeRightsAndInheritance/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type EvaluateRequestBuilder } from './evaluate/index.js'; import { type SensitivityLabelItemRequestBuilder } 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 sensitivityLabels property of the microsoft.graph.dataSecurityAndGovernance entity. */ export interface SensitivityLabelsRequestBuilder extends BaseRequestBuilder<SensitivityLabelsRequestBuilder> { /** * Provides operations to call the computeRightsAndInheritance method. */ get computeRightsAndInheritance(): ComputeRightsAndInheritanceRequestBuilder; /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to call the evaluate method. */ get evaluate(): EvaluateRequestBuilder; /** * Provides operations to manage the sensitivityLabels property of the microsoft.graph.dataSecurityAndGovernance entity. * @param sensitivityLabelId The unique identifier of sensitivityLabel * @returns {SensitivityLabelItemRequestBuilder} */ bySensitivityLabelId(sensitivityLabelId: string): SensitivityLabelItemRequestBuilder; /** * Provides operations to call the computeInheritance method. * @param contentFormats Usage: contentFormats={contentFormats} * @param labelIds Usage: labelIds={labelIds} * @param locale Usage: locale='{locale}' * @returns {ComputeInheritanceWithLabelIdsWithLocaleWithContentFormatsRequestBuilder} */ computeInheritanceWithLabelIdsWithLocaleWithContentFormats(contentFormats: string | undefined, labelIds: string | undefined, locale: string | undefined): ComputeInheritanceWithLabelIdsWithLocaleWithContentFormatsRequestBuilder; /** * Get sensitivityLabels from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SensitivityLabelCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<SensitivityLabelsRequestBuilderGetQueryParameters> | undefined): Promise<SensitivityLabelCollectionResponse | undefined>; /** * Create new navigation property to sensitivityLabels for users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SensitivityLabel>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: SensitivityLabel, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SensitivityLabel | undefined>; /** * Get sensitivityLabels from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SensitivityLabelsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to sensitivityLabels for users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: SensitivityLabel, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get sensitivityLabels from users */ export interface SensitivityLabelsRequestBuilderGetQueryParameters { /** * 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 SensitivityLabelsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/dataSecurityAndGovernance/sensitivityLabels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SensitivityLabelsRequestBuilderNavigationMetadata: Record<Exclude<keyof SensitivityLabelsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SensitivityLabelsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map