def by_service_principal_risk_detection_id(self,service_principal_risk_detection_id: str) -> ServicePrincipalRiskDetectionItemRequestBuilder:
        """
        Provides operations to manage the servicePrincipalRiskDetections property of the microsoft.graph.identityProtectionRoot entity.
        param service_principal_risk_detection_id: The unique identifier of servicePrincipalRiskDetection
        Returns: ServicePrincipalRiskDetectionItemRequestBuilder
        """
        if service_principal_risk_detection_id is None:
            raise TypeError("service_principal_risk_detection_id cannot be null.")
        from .item.service_principal_risk_detection_item_request_builder import ServicePrincipalRiskDetectionItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["servicePrincipalRiskDetection%2Did"] = service_principal_risk_detection_id
        return ServicePrincipalRiskDetectionItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the servicePrincipalRiskDetections property of the microsoft.graph.identityProtectionRoot entity.
        param service_principal_risk_detection_id: The unique identifier of servicePrincipalRiskDetection
        Returns: ServicePrincipalRiskDetectionItemRequestBuilder
        
msgraph/generated/identity_protection/service_principal_risk_detections/service_principal_risk_detections_request_builder.py