UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
30 lines 2.19 kB
import { type ProtectionPolicyBase } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the activate method. */ export interface ActivateRequestBuilder extends BaseRequestBuilder<ActivateRequestBuilder> { /** * Activate a protectionPolicyBase. Currently, only one active backup policy per underlying service is supported (that is, one for OneDrive accounts, one for SharePoint sites, and one for Exchange Online users). You can add or remove artifacts (sites or user accounts) to or from each active policy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ProtectionPolicyBase>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/protectionpolicybase-activate?view=graph-rest-beta|Find more info here} */ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProtectionPolicyBase | undefined>; /** * Activate a protectionPolicyBase. Currently, only one active backup policy per underlying service is supported (that is, one for OneDrive accounts, one for SharePoint sites, and one for Exchange Online users). You can add or remove artifacts (sites or user accounts) to or from each active policy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ActivateRequestBuilderUriTemplate = "{+baseurl}/solutions/backupRestore/protectionPolicies/{protectionPolicyBase%2Did}/activate"; /** * Metadata for all the requests in the request builder. */ export declare const ActivateRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map