summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/raw_client/raw_client.cpp
diff options
context:
space:
mode:
authorhiddenpath <[email protected]>2024-12-13 20:18:29 +0300
committerhiddenpath <[email protected]>2024-12-13 20:58:57 +0300
commit91a8ffd57d8783a3d940c9506254fa7e2012e1ec (patch)
treee482755ebffea84fefd270a9a9d2a32b604d18ad /yt/cpp/mapreduce/raw_client/raw_client.cpp
parent8afd0e6dc9d41134a0cccfd6b6c5fe843efd80fb (diff)
yt/cpp/mapreduce: move Create to THttpRawClient
commit_hash:9ca8428c322034064576bb56f74e704425ce7de9
Diffstat (limited to 'yt/cpp/mapreduce/raw_client/raw_client.cpp')
-rw-r--r--yt/cpp/mapreduce/raw_client/raw_client.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/raw_client/raw_client.cpp b/yt/cpp/mapreduce/raw_client/raw_client.cpp
index cc096823774..034dff7f33d 100644
--- a/yt/cpp/mapreduce/raw_client/raw_client.cpp
+++ b/yt/cpp/mapreduce/raw_client/raw_client.cpp
@@ -81,6 +81,19 @@ void THttpRawClient::MultisetAttributes(
RequestWithoutRetry(Context_, mutationId, header, body);
}
+TNodeId THttpRawClient::Create(
+ TMutationId& mutationId,
+ const TTransactionId& transactionId,
+ const TYPath& path,
+ const ENodeType& type,
+ const TCreateOptions& options)
+{
+ THttpHeader header("POST", "create");
+ header.AddMutationId();
+ header.MergeParameters(NRawClient::SerializeParamsForCreate(transactionId, Context_.Config->Prefix, path, type, options));
+ return ParseGuidFromResponse(RequestWithoutRetry(Context_, mutationId, header).Response);
+}
+
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NDetail