@microsoft/msgraph-sdk-security
Version:
Security fluent API for Microsoft Graph
84 lines • 4.52 kB
TypeScript
import { type HostPair } from '@microsoft/msgraph-sdk/models/security/index.js';
import { type ChildHostRequestBuilder } from './childHost/index.js';
import { type ParentHostRequestBuilder } from './parentHost/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the hostPairs property of the microsoft.graph.security.threatIntelligence entity.
*/
export interface HostPairItemRequestBuilder extends BaseRequestBuilder<HostPairItemRequestBuilder> {
/**
* Provides operations to manage the childHost property of the microsoft.graph.security.hostPair entity.
*/
get childHost(): ChildHostRequestBuilder;
/**
* Provides operations to manage the parentHost property of the microsoft.graph.security.hostPair entity.
*/
get parentHost(): ParentHostRequestBuilder;
/**
* Delete navigation property hostPairs 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>;
/**
* Read the properties and relationships of a hostPair object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<HostPair>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/security-hostpair-get?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<HostPairItemRequestBuilderGetQueryParameters> | undefined): Promise<HostPair | undefined>;
/**
* Update the navigation property hostPairs in security
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<HostPair>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: HostPair, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<HostPair | undefined>;
/**
* Delete navigation property hostPairs for security
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Read the properties and relationships of a hostPair object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<HostPairItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property hostPairs 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: HostPair, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Read the properties and relationships of a hostPair object.
*/
export interface HostPairItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const HostPairItemRequestBuilderUriTemplate = "{+baseurl}/security/threatIntelligence/hostPairs/{hostPair%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const HostPairItemRequestBuilderNavigationMetadata: Record<Exclude<keyof HostPairItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const HostPairItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map