async def get(self,request_configuration: Optional[RequestConfiguration[AlertsRequestBuilderGetQueryParameters]] = None) -> Optional[AlertCollectionResponse]:
        """
        Retrieve a list of alert objects.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[AlertCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/alert-list?view=graph-rest-1.0
        """
        warn("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", DeprecationWarning)
        request_info = self.to_get_request_information(
            request_configuration
        )
        from ...models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from ...models.alert_collection_response import AlertCollectionResponse

        return await self.request_adapter.send_async(request_info, AlertCollectionResponse, error_mapping)

        Retrieve a list of alert objects.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[AlertCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/alert-list?view=graph-rest-1.0
        
msgraph/generated/security/alerts/alerts_request_builder.py