UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
78 lines 4.21 kB
import { type UserProtectionScopeContainer } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ComputeRequestBuilder } from './compute/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the protectionScopes property of the microsoft.graph.userDataSecurityAndGovernance entity. */ export interface ProtectionScopesRequestBuilder extends BaseRequestBuilder<ProtectionScopesRequestBuilder> { /** * Provides operations to call the compute method. */ get compute(): ComputeRequestBuilder; /** * Delete navigation property protectionScopes for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Get protectionScopes from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UserProtectionScopeContainer>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<ProtectionScopesRequestBuilderGetQueryParameters> | undefined): Promise<UserProtectionScopeContainer | undefined>; /** * Update the navigation property protectionScopes in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UserProtectionScopeContainer>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: UserProtectionScopeContainer, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UserProtectionScopeContainer | undefined>; /** * Delete navigation property protectionScopes for users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get protectionScopes from users * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProtectionScopesRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property protectionScopes in users * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: UserProtectionScopeContainer, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get protectionScopes from users */ export interface ProtectionScopesRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ProtectionScopesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/dataSecurityAndGovernance/protectionScopes{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ProtectionScopesRequestBuilderNavigationMetadata: Record<Exclude<keyof ProtectionScopesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ProtectionScopesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map