def by_endpoint_id(self,endpoint_id: str) -> EndpointItemRequestBuilder:
        """
        Provides operations to manage the endpoints property of the microsoft.graph.servicePrincipal entity.
        param endpoint_id: The unique identifier of endpoint
        Returns: EndpointItemRequestBuilder
        """
        if endpoint_id is None:
            raise TypeError("endpoint_id cannot be null.")
        from .item.endpoint_item_request_builder import EndpointItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["endpoint%2Did"] = endpoint_id
        return EndpointItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the endpoints property of the microsoft.graph.servicePrincipal entity.
        param endpoint_id: The unique identifier of endpoint
        Returns: EndpointItemRequestBuilder
        
msgraph/generated/service_principals/item/endpoints/endpoints_request_builder.py