@microsoft/msgraph-beta-sdk-security
Version:
Security fluent API for Microsoft Graph
86 lines • 5.96 kB
TypeScript
import { type SecurityAction } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CancelSecurityActionRequestBuilder } from './cancelSecurityAction/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the securityActions property of the microsoft.graph.security entity.
*/
export interface SecurityActionItemRequestBuilder extends BaseRequestBuilder<SecurityActionItemRequestBuilder> {
/**
* Provides operations to call the cancelSecurityAction method.
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
get cancelSecurityAction(): CancelSecurityActionRequestBuilder;
/**
* Delete navigation property securityActions 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
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieve the properties and relationships of a securityAction object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SecurityAction>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
* @see {@link https://learn.microsoft.com/graph/api/securityaction-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<SecurityActionItemRequestBuilderGetQueryParameters> | undefined): Promise<SecurityAction | undefined>;
/**
* Update the navigation property securityActions in security
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<SecurityAction>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
patch(body: SecurityAction, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SecurityAction | undefined>;
/**
* Delete navigation property securityActions for security
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Retrieve the properties and relationships of a securityAction object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<SecurityActionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property securityActions in security
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10
*/
toPatchRequestInformation(body: SecurityAction, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve the properties and relationships of a securityAction object.
*/
export interface SecurityActionItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const SecurityActionItemRequestBuilderUriTemplate = "{+baseurl}/security/securityActions/{securityAction%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const SecurityActionItemRequestBuilderNavigationMetadata: Record<Exclude<keyof SecurityActionItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const SecurityActionItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map