Skip to content

Commit b212686

Browse files
committed
Add client-iam-types target
1 parent 334c968 commit b212686

File tree

11 files changed

+23
-12
lines changed

11 files changed

+23
-12
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ endif()
5151
add_subdirectory(tools)
5252
add_subdirectory(contrib/libs)
5353
add_subdirectory(library/cpp)
54+
add_subdirectory(include/ydb-cpp-sdk/client)
5455
add_subdirectory(src)
5556
add_subdirectory(util)
5657

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(iam/common)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
_ydb_sdk_add_library(client-iam-types INTERFACE)
2+
3+
target_link_libraries(client-iam-types
4+
INTERFACE
5+
client-ydb_types-credentials
6+
library-jwt
7+
yutil
8+
)
9+
10+
_ydb_sdk_install_targets(client-iam-types)

include/ydb-cpp-sdk/client/iam/iam.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

3-
#include "types.h"
3+
#include "common/types.h"
4+
45
namespace NYdb {
56

67
/// Acquire an IAM token using a local metadata service on a virtual machine.

include/ydb-cpp-sdk/client/iam_private/iam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include <ydb-cpp-sdk/client/iam/types.h>
3+
#include <ydb-cpp-sdk/client/iam/common/types.h>
44

55
namespace NYdb {
66

src/client/iam/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ _ydb_sdk_add_library(client-iam)
44

55
target_link_libraries(client-iam
66
PUBLIC
7-
client-ydb_types-credentials
8-
http-simple
9-
json
10-
library-jwt
7+
client-iam-types
118
yutil
129
PRIVATE
1310
api-client-yc_public
1411
client-iam-common
12+
json
13+
http-simple
1514
)
1615

1716
target_sources(client-iam PRIVATE

src/client/iam/common/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ _ydb_sdk_add_library(client-iam-common INTERFACE)
22

33
target_link_libraries(client-iam-common
44
INTERFACE
5-
client-ydb_types-credentials
5+
client-iam-types
66
grpc-client
7-
library-jwt
87
threading-future
98
yutil
109
)

src/client/iam/common/iam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include <ydb-cpp-sdk/client/iam/types.h>
4-
#include <ydb-cpp-sdk/client/types/credentials/credentials.h>
3+
#include <ydb-cpp-sdk/client/iam/common/types.h>
4+
55
#include <src/library/grpc/client/grpc_client_low.h>
66

77
#include <library/cpp/threading/future/future.h>

src/client/iam/iam.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <ydb-cpp-sdk/client/iam/iam.h>
2+
23
#include "common/iam.h"
34

45
#include <src/api/client/yc_public/iam/iam_token_service.pb.h>

0 commit comments

Comments
 (0)