UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
89 lines 5.52 kB
import { type SharePointProtectionPolicy } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type SiteInclusionRulesRequestBuilder } from './siteInclusionRules/index.js'; import { type SiteProtectionUnitsRequestBuilder } from './siteProtectionUnits/index.js'; import { type SiteProtectionUnitsBulkAdditionJobsRequestBuilder } from './siteProtectionUnitsBulkAdditionJobs/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the sharePointProtectionPolicies property of the microsoft.graph.backupRestoreRoot entity. */ export interface SharePointProtectionPolicyItemRequestBuilder extends BaseRequestBuilder<SharePointProtectionPolicyItemRequestBuilder> { /** * Provides operations to manage the siteInclusionRules property of the microsoft.graph.sharePointProtectionPolicy entity. */ get siteInclusionRules(): SiteInclusionRulesRequestBuilder; /** * Provides operations to manage the siteProtectionUnits property of the microsoft.graph.sharePointProtectionPolicy entity. */ get siteProtectionUnits(): SiteProtectionUnitsRequestBuilder; /** * Provides operations to manage the siteProtectionUnitsBulkAdditionJobs property of the microsoft.graph.sharePointProtectionPolicy entity. */ get siteProtectionUnitsBulkAdditionJobs(): SiteProtectionUnitsBulkAdditionJobsRequestBuilder; /** * Delete navigation property sharePointProtectionPolicies 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 SharePoint protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharePointProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<SharePointProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<SharePointProtectionPolicy | undefined>; /** * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharePointProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/sharepointprotectionpolicy-update?view=graph-rest-beta|Find more info here} */ patch(body: SharePointProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SharePointProtectionPolicy | undefined>; /** * Delete navigation property sharePointProtectionPolicies 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 SharePoint protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SharePointProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: SharePointProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The list of SharePoint protection policies in the tenant. */ export interface SharePointProtectionPolicyItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const SharePointProtectionPolicyItemRequestBuilderUriTemplate = "{+baseurl}/solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicy%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SharePointProtectionPolicyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof SharePointProtectionPolicyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SharePointProtectionPolicyItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map