UNPKG

@microsoft/msgraph-sdk-shares

Version:
78 lines 4.08 kB
import { type Permission } from '@microsoft/msgraph-sdk/models/index.js'; import { type GrantRequestBuilder } from './grant/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the permission property of the microsoft.graph.sharedDriveItem entity. */ export interface PermissionRequestBuilder extends BaseRequestBuilder<PermissionRequestBuilder> { /** * Provides operations to call the grant method. */ get grant(): GrantRequestBuilder; /** * Delete navigation property permission for shares * @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>; /** * Used to access the permission representing the underlying sharing link * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Permission>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<PermissionRequestBuilderGetQueryParameters> | undefined): Promise<Permission | undefined>; /** * Update the navigation property permission in shares * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Permission>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Permission | undefined>; /** * Delete navigation property permission for shares * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Used to access the permission representing the underlying sharing link * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PermissionRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property permission in shares * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Used to access the permission representing the underlying sharing link */ export interface PermissionRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const PermissionRequestBuilderUriTemplate = "{+baseurl}/shares/{sharedDriveItem%2Did}/permission{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const PermissionRequestBuilderNavigationMetadata: Record<Exclude<keyof PermissionRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const PermissionRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map