UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
84 lines 5.33 kB
import { type ProtectionPolicyBase } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type ActivateRequestBuilder } from './activate/index.js'; import { type DeactivateRequestBuilder } from './deactivate/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the protectionPolicies property of the microsoft.graph.backupRestoreRoot entity. */ export interface ProtectionPolicyBaseItemRequestBuilder extends BaseRequestBuilder<ProtectionPolicyBaseItemRequestBuilder> { /** * Provides operations to call the activate method. */ get activate(): ActivateRequestBuilder; /** * Provides operations to call the deactivate method. */ get deactivate(): DeactivateRequestBuilder; /** * Delete a protectionPolicyBase object. A protection policy can be deleted only after it was deactivated. When you delete a policy, all associated protection units are removed, and backup protection stops for the resources previously covered by the policy. Existing backup data is retained according to the retention policy before it's offboarded. You can restore data using previous restore points even after deletion. * @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 * @see {@link https://learn.microsoft.com/graph/api/protectionpolicybase-delete?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * List of protection policies in the tenant. * @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 */ get(requestConfiguration?: RequestConfiguration<ProtectionPolicyBaseItemRequestBuilderGetQueryParameters> | undefined): Promise<ProtectionPolicyBase | undefined>; /** * Update the navigation property protectionPolicies in solutions * @param body The request body * @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 */ patch(body: ProtectionPolicyBase, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProtectionPolicyBase | undefined>; /** * Delete a protectionPolicyBase object. A protection policy can be deleted only after it was deactivated. When you delete a policy, all associated protection units are removed, and backup protection stops for the resources previously covered by the policy. Existing backup data is retained according to the retention policy before it's offboarded. You can restore data using previous restore points even after deletion. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * List of protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProtectionPolicyBaseItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property protectionPolicies in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: ProtectionPolicyBase, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * List of protection policies in the tenant. */ export interface ProtectionPolicyBaseItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ProtectionPolicyBaseItemRequestBuilderUriTemplate = "{+baseurl}/solutions/backupRestore/protectionPolicies/{protectionPolicyBase%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ProtectionPolicyBaseItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ProtectionPolicyBaseItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ProtectionPolicyBaseItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map