UNPKG

@microsoft/msgraph-sdk-security

Version:
70 lines 4.17 kB
import { type LoginPage } 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 loginPages property of the microsoft.graph.attackSimulationRoot entity. */ export interface LoginPageItemRequestBuilder extends BaseRequestBuilder<LoginPageItemRequestBuilder> { /** * Delete navigation property loginPages 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 a loginPage associated with an attack simulation campaign for a tenant. Login pages are shown to users in attack simulations that use credential harvest and link in attachment social engineering techniques. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<LoginPage>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/loginpage-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<LoginPageItemRequestBuilderGetQueryParameters> | undefined): Promise<LoginPage | undefined>; /** * Update the navigation property loginPages in security * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<LoginPage>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: LoginPage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<LoginPage | undefined>; /** * Delete navigation property loginPages 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 a loginPage associated with an attack simulation campaign for a tenant. Login pages are shown to users in attack simulations that use credential harvest and link in attachment social engineering techniques. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<LoginPageItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property loginPages 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: LoginPage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get a loginPage associated with an attack simulation campaign for a tenant. Login pages are shown to users in attack simulations that use credential harvest and link in attachment social engineering techniques. */ export interface LoginPageItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const LoginPageItemRequestBuilderUriTemplate = "{+baseurl}/security/attackSimulation/loginPages/{loginPage%2Did}{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const LoginPageItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map