UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
89 lines 5.91 kB
import { type OneDriveForBusinessProtectionPolicy } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type DriveInclusionRulesRequestBuilder } from './driveInclusionRules/index.js'; import { type DriveProtectionUnitsRequestBuilder } from './driveProtectionUnits/index.js'; import { type DriveProtectionUnitsBulkAdditionJobsRequestBuilder } from './driveProtectionUnitsBulkAdditionJobs/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the oneDriveForBusinessProtectionPolicies property of the microsoft.graph.backupRestoreRoot entity. */ export interface OneDriveForBusinessProtectionPolicyItemRequestBuilder extends BaseRequestBuilder<OneDriveForBusinessProtectionPolicyItemRequestBuilder> { /** * Provides operations to manage the driveInclusionRules property of the microsoft.graph.oneDriveForBusinessProtectionPolicy entity. */ get driveInclusionRules(): DriveInclusionRulesRequestBuilder; /** * Provides operations to manage the driveProtectionUnits property of the microsoft.graph.oneDriveForBusinessProtectionPolicy entity. */ get driveProtectionUnits(): DriveProtectionUnitsRequestBuilder; /** * Provides operations to manage the driveProtectionUnitsBulkAdditionJobs property of the microsoft.graph.oneDriveForBusinessProtectionPolicy entity. */ get driveProtectionUnitsBulkAdditionJobs(): DriveProtectionUnitsBulkAdditionJobsRequestBuilder; /** * Delete navigation property oneDriveForBusinessProtectionPolicies for solutions * @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>; /** * The list of OneDrive for Business protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OneDriveForBusinessProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<OneDriveForBusinessProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<OneDriveForBusinessProtectionPolicy | undefined>; /** * Update the protection policy for the OneDrive service in Microsoft 365. This method adds a driveProtectionUnit to or removes it from a oneDriveForBusinessProtectionPolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OneDriveForBusinessProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/onedriveforbusinessprotectionpolicy-update?view=graph-rest-beta|Find more info here} */ patch(body: OneDriveForBusinessProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OneDriveForBusinessProtectionPolicy | undefined>; /** * Delete navigation property oneDriveForBusinessProtectionPolicies for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The list of OneDrive for Business protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OneDriveForBusinessProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the protection policy for the OneDrive service in Microsoft 365. This method adds a driveProtectionUnit to or removes it from a oneDriveForBusinessProtectionPolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: OneDriveForBusinessProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The list of OneDrive for Business protection policies in the tenant. */ export interface OneDriveForBusinessProtectionPolicyItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const OneDriveForBusinessProtectionPolicyItemRequestBuilderUriTemplate = "{+baseurl}/solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicy%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const OneDriveForBusinessProtectionPolicyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof OneDriveForBusinessProtectionPolicyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const OneDriveForBusinessProtectionPolicyItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map