aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/datatransfer/v1/endpoint/ydb.proto
blob: f6d25f4ea12521a2fe1e2dadd2a20a2f06aa32d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
syntax = "proto3";

package yandex.cloud.datatransfer.v1.endpoint;

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/datatransfer/v1/endpoint;endpoint";
option java_package = "yandex.cloud.api.datatransfer.v1.endpoint";
option csharp_namespace = "Yandex.Cloud.Datatransfer.V1.EndPoint"; // there is a clash with class Endpoint in namespace Yandex.Cloud.Datatransfer.V1

enum YdbCleanupPolicy {
    YDB_CLEANUP_POLICY_UNSPECIFIED = 0;
    YDB_CLEANUP_POLICY_DISABLED = 1;
    YDB_CLEANUP_POLICY_DROP = 2;
}
enum YdbDefaultCompression {
    YDB_DEFAULT_COMPRESSION_UNSPECIFIED = 0;
    YDB_DEFAULT_COMPRESSION_DISABLED = 1;
    YDB_DEFAULT_COMPRESSION_LZ4 = 2;
}
message YdbSource {
    reserved 3 to 4, 7 to 29, 31 to 32;
    // Path in YDB where to store tables
    string database = 1;
    // Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
    string instance = 2;
    repeated string paths = 5;
    string service_account_id = 6;
    // Network interface for endpoint. If none will assume public ipv4
    string subnet_id = 30;
    // Authorization Key
    string sa_key_content = 33;
    // Security groups
    repeated string security_groups = 34;
    // Pre-created change feed
    string changefeed_custom_name = 35;
}
message YdbTarget {
    reserved 3 to 9, 12 to 20, 22 to 29, 31;
    // Path in YDB where to store tables
    string database = 1;
    // Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
    string instance = 2;
    // Path extension for database, each table will be layouted into this path
    string path = 10;
    string service_account_id = 11;
    // Cleanup policy
    YdbCleanupPolicy cleanup_policy = 21;
    // Network interface for endpoint. If none will assume public ipv4
    string subnet_id = 30;
    // SA content
    string sa_key_content = 32;
    // Security groups
    repeated string security_groups = 33;
    // Should create column-oriented table (OLAP). By default it creates row-oriented
    // (OLTP)
    bool is_table_column_oriented = 34;
    // Compression that will be used for default columns family on YDB table creation
    YdbDefaultCompression default_compression = 35;
}