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