def by_risky_service_principal_id(self,risky_service_principal_id: str) -> RiskyServicePrincipalItemRequestBuilder:
        """
        Provides operations to manage the riskyServicePrincipals property of the microsoft.graph.identityProtectionRoot entity.
        param risky_service_principal_id: The unique identifier of riskyServicePrincipal
        Returns: RiskyServicePrincipalItemRequestBuilder
        """
        if risky_service_principal_id is None:
            raise TypeError("risky_service_principal_id cannot be null.")
        from .item.risky_service_principal_item_request_builder import RiskyServicePrincipalItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["riskyServicePrincipal%2Did"] = risky_service_principal_id
        return RiskyServicePrincipalItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the riskyServicePrincipals property of the microsoft.graph.identityProtectionRoot entity.
        param risky_service_principal_id: The unique identifier of riskyServicePrincipal
        Returns: RiskyServicePrincipalItemRequestBuilder
        
msgraph/generated/identity_protection/risky_service_principals/risky_service_principals_request_builder.py