public function createLogStore(CreateLogStoreRequest $request)
    {
        $headers                      = array();
        $params                       = array();
        $resource                     = '/logstores';
        $project                      = $request->getProject() !== null ? $request->getProject() : '';
        $headers["x-log-bodyrawsize"] = 0;
        $headers["Content-Type"]      = "application/json";
        $body                         = array(
            "logStoreName" => $request->getLogStore(),
            "ttl"          => (int) ( $request->getTtl() ),
            "shardCount"   => (int) ( $request->getShardCount() )
        );
        $body_str                     = json_encode($body);
        list( $resp, $header ) = $this->send("POST", $project, $body_str, $resource, $params, $headers);
        $requestId = isset ( $header ['x-log-requestid'] ) ? $header ['x-log-requestid'] : '';
        $resp      = $this->parseToJson($resp, $requestId);

        return new CreateLogStoreResponse($resp, $header);
    }