def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], summarize_by: Optional[str] = None) -> None:
        """
        Instantiates a new SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param summarize_by: Usage: summarizeBy='{summarizeBy}'
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['summarizeBy'] = summarize_by
        super().__init__(request_adapter, "{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevices(summarizeBy='{summarizeBy}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

        Instantiates a new SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param summarize_by: Usage: summarizeBy='{summarizeBy}'
        Returns: None
        
msgraph/generated/device_management/user_experience_analytics_device_performance/summarize_device_performance_devices_with_summarize_by/summarize_device_performance_devices_with_summarize_by_request_builder.py