UNPKG

@microsoft/msgraph-beta-sdk-admin

Version:
71 lines 3.86 kB
import { type SharepointSettings } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the settings property of the microsoft.graph.sharepoint entity. */ export interface SettingsRequestBuilder extends BaseRequestBuilder<SettingsRequestBuilder> { /** * Delete navigation property settings for admin * @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 the tenant-level settings for SharePoint and OneDrive. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharepointSettings>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/sharepointsettings-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<SettingsRequestBuilderGetQueryParameters> | undefined): Promise<SharepointSettings | undefined>; /** * Update one or more tenant-level settings for SharePoint and OneDrive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharepointSettings>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/sharepointsettings-update?view=graph-rest-beta|Find more info here} */ patch(body: SharepointSettings, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SharepointSettings | undefined>; /** * Delete navigation property settings for admin * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get the tenant-level settings for SharePoint and OneDrive. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SettingsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update one or more tenant-level settings for SharePoint and OneDrive. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: SharepointSettings, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get the tenant-level settings for SharePoint and OneDrive. */ export interface SettingsRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const SettingsRequestBuilderUriTemplate = "{+baseurl}/admin/sharepoint/settings{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const SettingsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map