def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], path: Optional[str] = None) -> None:
        """
        Instantiates a new GetByPathWithPathRequestBuilder and sets the default values.
        param path: Usage: path='{path}'
        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.
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['path'] = path
        super().__init__(request_adapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')", path_parameters)

        Instantiates a new GetByPathWithPathRequestBuilder and sets the default values.
        param path: Usage: path='{path}'
        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.
        Returns: None
        
msgraph/generated/sites/item/get_by_path_with_path/get_by_path_with_path_request_builder.py