UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
89 lines 5.51 kB
import { type ExchangeProtectionPolicy } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type MailboxInclusionRulesRequestBuilder } from './mailboxInclusionRules/index.js'; import { type MailboxProtectionUnitsRequestBuilder } from './mailboxProtectionUnits/index.js'; import { type MailboxProtectionUnitsBulkAdditionJobsRequestBuilder } from './mailboxProtectionUnitsBulkAdditionJobs/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the exchangeProtectionPolicies property of the microsoft.graph.backupRestoreRoot entity. */ export interface ExchangeProtectionPolicyItemRequestBuilder extends BaseRequestBuilder<ExchangeProtectionPolicyItemRequestBuilder> { /** * Provides operations to manage the mailboxInclusionRules property of the microsoft.graph.exchangeProtectionPolicy entity. */ get mailboxInclusionRules(): MailboxInclusionRulesRequestBuilder; /** * Provides operations to manage the mailboxProtectionUnits property of the microsoft.graph.exchangeProtectionPolicy entity. */ get mailboxProtectionUnits(): MailboxProtectionUnitsRequestBuilder; /** * Provides operations to manage the mailboxProtectionUnitsBulkAdditionJobs property of the microsoft.graph.exchangeProtectionPolicy entity. */ get mailboxProtectionUnitsBulkAdditionJobs(): MailboxProtectionUnitsBulkAdditionJobsRequestBuilder; /** * Delete navigation property exchangeProtectionPolicies 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 Exchange protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ExchangeProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<ExchangeProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<ExchangeProtectionPolicy | undefined>; /** * Update an Exchange protection policy. This method adds a mailboxprotectionunit 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<ExchangeProtectionPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/exchangeprotectionpolicy-update?view=graph-rest-beta|Find more info here} */ patch(body: ExchangeProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ExchangeProtectionPolicy | undefined>; /** * Delete navigation property exchangeProtectionPolicies 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 Exchange protection policies in the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExchangeProtectionPolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update an Exchange protection policy. This method adds a mailboxprotectionunit 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: ExchangeProtectionPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * The list of Exchange protection policies in the tenant. */ export interface ExchangeProtectionPolicyItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ExchangeProtectionPolicyItemRequestBuilderUriTemplate = "{+baseurl}/solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicy%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ExchangeProtectionPolicyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ExchangeProtectionPolicyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ExchangeProtectionPolicyItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map