UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
84 lines 5.04 kB
import { type WhoisRecord } from '@microsoft/msgraph-beta-sdk/models/security/index.js'; import { type HistoryRequestBuilder } from './history/index.js'; import { type HostRequestBuilder } from './host/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the whoisRecords property of the microsoft.graph.security.threatIntelligence entity. */ export interface WhoisRecordItemRequestBuilder extends BaseRequestBuilder<WhoisRecordItemRequestBuilder> { /** * Provides operations to manage the history property of the microsoft.graph.security.whoisRecord entity. */ get history(): HistoryRequestBuilder; /** * Provides operations to manage the host property of the microsoft.graph.security.whoisBaseRecord entity. */ get host(): HostRequestBuilder; /** * Delete navigation property whoisRecords 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 the specified whoisRecord resource. Specify the desired whoisRecord in one of the following two ways:- Identify a host and get its current whoisRecord. - Specify an id value to get the corresponding whoisRecord. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<WhoisRecord>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/security-whoisrecord-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<WhoisRecordItemRequestBuilderGetQueryParameters> | undefined): Promise<WhoisRecord | undefined>; /** * Update the navigation property whoisRecords in security * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<WhoisRecord>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: WhoisRecord, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WhoisRecord | undefined>; /** * Delete navigation property whoisRecords 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 the specified whoisRecord resource. Specify the desired whoisRecord in one of the following two ways:- Identify a host and get its current whoisRecord. - Specify an id value to get the corresponding whoisRecord. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WhoisRecordItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property whoisRecords 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: WhoisRecord, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get the specified whoisRecord resource. Specify the desired whoisRecord in one of the following two ways:- Identify a host and get its current whoisRecord. - Specify an id value to get the corresponding whoisRecord. */ export interface WhoisRecordItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const WhoisRecordItemRequestBuilderUriTemplate = "{+baseurl}/security/threatIntelligence/whoisRecords/{whoisRecord%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const WhoisRecordItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WhoisRecordItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const WhoisRecordItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map