diff options
author | arigachnyy <arigachnyy@yandex-team.com> | 2023-07-24 18:21:05 +0300 |
---|---|---|
committer | arigachnyy <arigachnyy@yandex-team.com> | 2023-07-24 18:21:05 +0300 |
commit | 25ffc448423b8f6ab955a036ec8f15a206a4ba93 (patch) | |
tree | 87309d8293aa0f7232e889d7414e8957b5d9b5af | |
parent | 0e2bc955938ac84ce36bead4c657b4942252a5d3 (diff) | |
download | ydb-25ffc448423b8f6ab955a036ec8f15a206a4ba93.tar.gz |
add compute's disk_service for nbs
11 files changed, 290 insertions, 0 deletions
diff --git a/ydb/public/api/client/yc_private/CMakeLists.txt b/ydb/public/api/client/yc_private/CMakeLists.txt index cda763d3e1a..7adf2d27b64 100644 --- a/ydb/public/api/client/yc_private/CMakeLists.txt +++ b/ydb/public/api/client/yc_private/CMakeLists.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(compute) add_subdirectory(iam) add_subdirectory(operation) add_subdirectory(resourcemanager) diff --git a/ydb/public/api/client/yc_private/compute/CMakeLists.txt b/ydb/public/api/client/yc_private/compute/CMakeLists.txt new file mode 100644 index 00000000000..a7ac7be7089 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/CMakeLists.txt @@ -0,0 +1,9 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +add_subdirectory(inner) diff --git a/ydb/public/api/client/yc_private/compute/inner/CMakeLists.darwin-x86_64.txt b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.darwin-x86_64.txt new file mode 100644 index 00000000000..9f7e92b4da2 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.darwin-x86_64.txt @@ -0,0 +1,57 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_grpc_cpp_bin + TOOL_grpc_cpp_dependency + contrib/tools/protoc/plugins/grpc_cpp + grpc_cpp +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(yc_private-compute-inner) +set_property(TARGET yc_private-compute-inner PROPERTY + PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h +) +target_link_libraries(yc_private-compute-inner PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-grpc + contrib-libs-protobuf +) +target_proto_messages(yc_private-compute-inner PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/public/api/client/yc_private/compute/inner/disk_service.proto +) +target_proto_addincls(yc_private-compute-inner + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(yc_private-compute-inner + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) +target_proto_plugin(yc_private-compute-inner + grpc_cpp + grpc_cpp +) diff --git a/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-aarch64.txt b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..487041d279c --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-aarch64.txt @@ -0,0 +1,58 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_grpc_cpp_bin + TOOL_grpc_cpp_dependency + contrib/tools/protoc/plugins/grpc_cpp + grpc_cpp +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(yc_private-compute-inner) +set_property(TARGET yc_private-compute-inner PROPERTY + PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h +) +target_link_libraries(yc_private-compute-inner PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-grpc + contrib-libs-protobuf +) +target_proto_messages(yc_private-compute-inner PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/public/api/client/yc_private/compute/inner/disk_service.proto +) +target_proto_addincls(yc_private-compute-inner + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(yc_private-compute-inner + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) +target_proto_plugin(yc_private-compute-inner + grpc_cpp + grpc_cpp +) diff --git a/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-x86_64.txt b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-x86_64.txt new file mode 100644 index 00000000000..487041d279c --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.linux-x86_64.txt @@ -0,0 +1,58 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_grpc_cpp_bin + TOOL_grpc_cpp_dependency + contrib/tools/protoc/plugins/grpc_cpp + grpc_cpp +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(yc_private-compute-inner) +set_property(TARGET yc_private-compute-inner PROPERTY + PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h +) +target_link_libraries(yc_private-compute-inner PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-grpc + contrib-libs-protobuf +) +target_proto_messages(yc_private-compute-inner PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/public/api/client/yc_private/compute/inner/disk_service.proto +) +target_proto_addincls(yc_private-compute-inner + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(yc_private-compute-inner + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) +target_proto_plugin(yc_private-compute-inner + grpc_cpp + grpc_cpp +) diff --git a/ydb/public/api/client/yc_private/compute/inner/CMakeLists.txt b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.txt new file mode 100644 index 00000000000..f8b31df0c11 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.txt @@ -0,0 +1,17 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-x86_64.txt) +endif() diff --git a/ydb/public/api/client/yc_private/compute/inner/CMakeLists.windows-x86_64.txt b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..9f7e92b4da2 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/CMakeLists.windows-x86_64.txt @@ -0,0 +1,57 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +get_built_tool_path( + TOOL_grpc_cpp_bin + TOOL_grpc_cpp_dependency + contrib/tools/protoc/plugins/grpc_cpp + grpc_cpp +) +get_built_tool_path( + TOOL_protoc_bin + TOOL_protoc_dependency + contrib/tools/protoc/bin + protoc +) +get_built_tool_path( + TOOL_cpp_styleguide_bin + TOOL_cpp_styleguide_dependency + contrib/tools/protoc/plugins/cpp_styleguide + cpp_styleguide +) + +add_library(yc_private-compute-inner) +set_property(TARGET yc_private-compute-inner PROPERTY + PROTOC_EXTRA_OUTS .grpc.pb.cc .grpc.pb.h +) +target_link_libraries(yc_private-compute-inner PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-grpc + contrib-libs-protobuf +) +target_proto_messages(yc_private-compute-inner PRIVATE + ${CMAKE_SOURCE_DIR}/ydb/public/api/client/yc_private/compute/inner/disk_service.proto +) +target_proto_addincls(yc_private-compute-inner + ./ + ${CMAKE_SOURCE_DIR}/ + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/contrib/libs/protobuf/src +) +target_proto_outs(yc_private-compute-inner + --cpp_out=${CMAKE_BINARY_DIR}/ + --cpp_styleguide_out=${CMAKE_BINARY_DIR}/ +) +target_proto_plugin(yc_private-compute-inner + grpc_cpp + grpc_cpp +) diff --git a/ydb/public/api/client/yc_private/compute/inner/disk_service.proto b/ydb/public/api/client/yc_private/compute/inner/disk_service.proto new file mode 100644 index 00000000000..030ad37f9a8 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/disk_service.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package yandex.cloud.priv.compute.v1.inner; + +service DiskService { + // Create iam-token for encrypted disk + rpc CreateToken(CreateTokenRequest) returns (CreateTokenResponse); +} + +message CreateTokenRequest { + string disk_id = 1; + string task_id = 2; +} + +message CreateTokenResponse { + string token = 1; +} + diff --git a/ydb/public/api/client/yc_private/compute/inner/ya.make b/ydb/public/api/client/yc_private/compute/inner/ya.make new file mode 100644 index 00000000000..74bb5153859 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/inner/ya.make @@ -0,0 +1,11 @@ +PROTO_LIBRARY() + +EXCLUDE_TAGS(GO_PROTO) + +GRPC() +SRCS( + disk_service.proto +) + +END() + diff --git a/ydb/public/api/client/yc_private/compute/ya.make b/ydb/public/api/client/yc_private/compute/ya.make new file mode 100644 index 00000000000..8bc25f23c65 --- /dev/null +++ b/ydb/public/api/client/yc_private/compute/ya.make @@ -0,0 +1,3 @@ +RECURSE( + inner +) diff --git a/ydb/public/api/client/yc_private/ya.make b/ydb/public/api/client/yc_private/ya.make index ff72c6a0941..a6ec22fcac8 100644 --- a/ydb/public/api/client/yc_private/ya.make +++ b/ydb/public/api/client/yc_private/ya.make @@ -1,4 +1,5 @@ RECURSE( + compute iam operation resourcemanager |