UNPKG

@microsoft/msgraph-sdk-security

Version:
70 lines 3.66 kB
import { type Payload } from '@microsoft/msgraph-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the payloads property of the microsoft.graph.attackSimulationRoot entity. */ export interface PayloadItemRequestBuilder extends BaseRequestBuilder<PayloadItemRequestBuilder> { /** * Delete navigation property payloads for security * @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>; /** * Get an attack simulation campaign payload for a tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Payload>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/payload-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<PayloadItemRequestBuilderGetQueryParameters> | undefined): Promise<Payload | undefined>; /** * Update the navigation property payloads in security * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Payload>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: Payload, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Payload | undefined>; /** * Delete navigation property payloads for security * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get an attack simulation campaign payload for a tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PayloadItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property payloads in security * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Payload, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get an attack simulation campaign payload for a tenant. */ export interface PayloadItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const PayloadItemRequestBuilderUriTemplate = "{+baseurl}/security/attackSimulation/payloads/{payload%2Did}{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const PayloadItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map