diff options
author | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:12:13 +0300 |
---|---|---|
committer | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:22:43 +0300 |
commit | 07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch) | |
tree | a4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config | |
parent | 6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff) | |
download | ydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz |
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config')
9 files changed, 2446 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto new file mode 100644 index 0000000000..c94a0e4d1b --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto @@ -0,0 +1,204 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v3.6/reference/configuration-options/). +message MongodConfig3_6 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v3.6/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v3.6/reference/glossary/#term-zlib) compression. + ZLIB = 3; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + } + + message Journal { + // Whether the journal is enabled or disabled. + // Possible values: + // * true (default) - the journal is enabled. + // * false - the journal is disabled. + google.protobuf.BoolValue enabled = 1; + + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 2 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v3.6/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; +} + +message MongoCfgConfig3_6 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. This is the default + // profiler level. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Operation profiling level. For details, see [MongoDB documentation](https://docs.mongodb.com/v3.6/tutorial/manage-the-database-profiler/). + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v3.6/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of incoming connections. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig3_6 { + message Network { + // The maximum number of incoming connections. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet3_6 { + // Effective mongod settings for a MongoDB 3.6 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig3_6 effective_config = 1; + + // User-defined mongod settings for a MongoDB 3.6 cluster. + MongodConfig3_6 user_config = 2; + + // Default mongod configuration for a MongoDB 3.6 cluster. + MongodConfig3_6 default_config = 3; +} + +message MongoCfgConfigSet3_6 { + // Effective mongocfg settings for a MongoDB 3.6 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig3_6 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 3.6 cluster. + MongoCfgConfig3_6 user_config = 2; + + // Default mongocfg configuration for a MongoDB 3.6 cluster. + MongoCfgConfig3_6 default_config = 3; +} + +message MongosConfigSet3_6 { + // Effective settings for a MongoDB 3.6 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig3_6 effective_config = 1; + + // User-defined settings for a MongoDB 3.6 cluster. + MongosConfig3_6 user_config = 2; + + // Default configuration for a MongoDB 3.6 cluster. + MongosConfig3_6 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.proto new file mode 100644 index 0000000000..cddb3203a7 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_0.proto @@ -0,0 +1,197 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v4.0/reference/configuration-options/). +message MongodConfig4_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v4.0/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v4.0/reference/glossary/#term-zlib) compression. + ZLIB = 3; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v4.0/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; +} + +message MongoCfgConfig4_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v4.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig4_0 { + message Network { + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet4_0 { + // Effective mongod settings for a MongoDB 4.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig4_0 effective_config = 1; + + // User-defined mongod settings for a MongoDB 4.0 cluster. + MongodConfig4_0 user_config = 2; + + // Default mongod configuration for a MongoDB 4.0 cluster. + MongodConfig4_0 default_config = 3; +} + +message MongoCfgConfigSet4_0 { + // Effective mongocfg settings for a MongoDB 4.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig4_0 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 4.0 cluster. + MongoCfgConfig4_0 user_config = 2; + + // Default mongocfg configuration for a MongoDB 4.0 cluster. + MongoCfgConfig4_0 default_config = 3; +} + +message MongosConfigSet4_0 { + // Effective mongos settings for a MongoDB 4.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig4_0 effective_config = 1; + + // User-defined mongos settings for a MongoDB 4.0 cluster. + MongosConfig4_0 user_config = 2; + + // Default mongos configuration for a MongoDB 4.0 cluster. + MongosConfig4_0 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.proto new file mode 100644 index 0000000000..00729497db --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_2.proto @@ -0,0 +1,274 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v4.2/reference/configuration-options/). +message MongodConfig4_2 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v4.2/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message SetParameter { + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 1; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `replication` section of mongod configuration. + SetParameter set_parameter = 4; +} + +message MongoCfgConfig4_2 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v4.2/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig4_2 { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet4_2 { + // Effective mongod settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig4_2 effective_config = 1; + + // User-defined mongod settings for a MongoDB 4.2 cluster. + MongodConfig4_2 user_config = 2; + + // Default mongod configuration for a MongoDB 4.2 cluster. + MongodConfig4_2 default_config = 3; +} + +message MongoCfgConfigSet4_2 { + // Effective mongocfg settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig4_2 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 4.2 cluster. + MongoCfgConfig4_2 user_config = 2; + + // Default mongocfg configuration for a MongoDB 4.2 cluster. + MongoCfgConfig4_2 default_config = 3; +} + +message MongosConfigSet4_2 { + // Effective mongos settings for a MongoDB 4.2 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig4_2 effective_config = 1; + + // User-defined mongos settings for a MongoDB 4.2 cluster. + MongosConfig4_2 user_config = 2; + + // Default mongos configuration for a MongoDB 4.2 cluster. + MongosConfig4_2 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4.proto new file mode 100644 index 0000000000..f4082b1b4f --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4.proto @@ -0,0 +1,275 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v4.4/reference/configuration-options/). +message MongodConfig4_4 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v4.4/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v4.4/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v4.4/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v4.4/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message SetParameter { + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 1; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `replication` section of mongod configuration. + SetParameter set_parameter = 4; +} + +message MongoCfgConfig4_4 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v4.4/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig4_4 { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet4_4 { + // Effective mongod settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig4_4 effective_config = 1; + + // User-defined mongod settings for a MongoDB 4.4 cluster. + MongodConfig4_4 user_config = 2; + + // Default mongod configuration for a MongoDB 4.4 cluster. + MongodConfig4_4 default_config = 3; +} + +message MongoCfgConfigSet4_4 { + // Effective mongocfg settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig4_4 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 4.4 cluster. + MongoCfgConfig4_4 user_config = 2; + + // Default mongocfg configuration for a MongoDB 4.4 cluster. + MongoCfgConfig4_4 default_config = 3; +} + +message MongosConfigSet4_4 { + // Effective mongos settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig4_4 effective_config = 1; + + // User-defined mongos settings for a MongoDB 4.4 cluster. + MongosConfig4_4 user_config = 2; + + // Default mongos configuration for a MongoDB 4.4 cluster. + MongosConfig4_4 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4_enterprise.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4_enterprise.proto new file mode 100644 index 0000000000..76bb373764 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb4_4_enterprise.proto @@ -0,0 +1,309 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v4.4/reference/configuration-options/). +message MongodConfig4_4_enterprise { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v4.4/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v4.4/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v4.4/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v4.4/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message Security { + message KMIP { + // KMIP server name + string server_name = 1; + // KMIP server port + google.protobuf.Int64Value port = 2; + // KMIP Server CA + string server_ca = 3; + // KMIP client certificate + private key (unencrypted) + string client_certificate = 4; + // KMIP Key identifier (if any) + string key_identifier = 5; + } + + // If encryption at rest should be enabled or not + google.protobuf.BoolValue enable_encryption = 1; + // `kmip` section of mongod security config + KMIP kmip = 2; + } + + message AuditLog { + // Audit filter + string filter = 1; + } + + message SetParameter { + // Enables the auditing of authorization successes + google.protobuf.BoolValue audit_authorization_success = 1; + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 2; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `security` section of mongod configuration. + Security security = 4; + + // `AuditLog` section of mongod configuration. + AuditLog audit_log = 5; + + // `SetParameter` section of mongod configuration. + SetParameter set_parameter = 6; +} + +message MongoCfgConfig4_4_enterprise { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v4.4/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig4_4_enterprise { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet4_4_enterprise { + // Effective mongod settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig4_4_enterprise effective_config = 1; + + // User-defined mongod settings for a MongoDB 4.4 cluster. + MongodConfig4_4_enterprise user_config = 2; + + // Default mongod configuration for a MongoDB 4.4 cluster. + MongodConfig4_4_enterprise default_config = 3; +} + +message MongoCfgConfigSet4_4_enterprise { + // Effective mongocfg settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig4_4_enterprise effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 4.4 cluster. + MongoCfgConfig4_4_enterprise user_config = 2; + + // Default mongocfg configuration for a MongoDB 4.4 cluster. + MongoCfgConfig4_4_enterprise default_config = 3; +} + +message MongosConfigSet4_4_enterprise { + // Effective mongos settings for a MongoDB 4.4 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig4_4_enterprise effective_config = 1; + + // User-defined mongos settings for a MongoDB 4.4 cluster. + MongosConfig4_4_enterprise user_config = 2; + + // Default mongos configuration for a MongoDB 4.4 cluster. + MongosConfig4_4_enterprise default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0.proto new file mode 100644 index 0000000000..b4e5042905 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0.proto @@ -0,0 +1,279 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/). +message MongodConfig5_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v5.0/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v5.0/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v5.0/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message SetParameter { + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 1; + + // The minimum time window in seconds for which the storage engine keeps the snapshot history. + google.protobuf.Int64Value min_snapshot_history_window_in_seconds = 2 [(value) = ">=0"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `SetParameter` section of mongod configuration. + SetParameter set_parameter = 4; +} + +message MongoCfgConfig5_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig5_0 { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet5_0 { + // Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig5_0 effective_config = 1; + + // User-defined mongod settings for a MongoDB 5.0 cluster. + MongodConfig5_0 user_config = 2; + + // Default mongod configuration for a MongoDB 5.0 cluster. + MongodConfig5_0 default_config = 3; +} + +message MongoCfgConfigSet5_0 { + // Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig5_0 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 5.0 cluster. + MongoCfgConfig5_0 user_config = 2; + + // Default mongocfg configuration for a MongoDB 5.0 cluster. + MongoCfgConfig5_0 default_config = 3; +} + +message MongosConfigSet5_0 { + // Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig5_0 effective_config = 1; + + // User-defined mongos settings for a MongoDB 5.0 cluster. + MongosConfig5_0 user_config = 2; + + // Default mongos configuration for a MongoDB 5.0 cluster. + MongosConfig5_0 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_enterprise.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_enterprise.proto new file mode 100644 index 0000000000..f0b4cd0a96 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_enterprise.proto @@ -0,0 +1,314 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/). +message MongodConfig5_0_enterprise { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v5.0/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v5.0/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v5.0/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 1 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message Security { + message KMIP { + // KMIP server name + string server_name = 1; + // KMIP server port + google.protobuf.Int64Value port = 2; + // KMIP Server CA + string server_ca = 3; + // KMIP client certificate + private key (unencrypted) + string client_certificate = 4; + // KMIP Key identifier (if any) + string key_identifier = 5; + } + + // If encryption at rest should be enabled or not + google.protobuf.BoolValue enable_encryption = 1; + // `kmip` section of mongod security config + KMIP kmip = 2; + } + + message AuditLog { + // Audit filter + string filter = 1; + // Allows runtime configuration of audit filter and auditAuthorizationSuccess + google.protobuf.BoolValue runtime_configuration = 2; + } + + message SetParameter { + // Enables the auditing of authorization successes + google.protobuf.BoolValue audit_authorization_success = 1; + + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 2; + + // The minimum time window in seconds for which the storage engine keeps the snapshot history. + google.protobuf.Int64Value min_snapshot_history_window_in_seconds = 3 [(value) = ">=0"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `security` section of mongod configuration. + Security security = 4; + + // `AuditLog` section of mongod configuration. + AuditLog audit_log = 5; + + // `SetParameter` section of mongod configuration. + SetParameter set_parameter = 6; +} + +message MongoCfgConfig5_0_enterprise { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig5_0_enterprise { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 1; +} + +message MongodConfigSet5_0_enterprise { + // Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig5_0_enterprise effective_config = 1; + + // User-defined mongod settings for a MongoDB 5.0 cluster. + MongodConfig5_0_enterprise user_config = 2; + + // Default mongod configuration for a MongoDB 5.0 cluster. + MongodConfig5_0_enterprise default_config = 3; +} + +message MongoCfgConfigSet5_0_enterprise { + // Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig5_0_enterprise effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 5.0 cluster. + MongoCfgConfig5_0_enterprise user_config = 2; + + // Default mongocfg configuration for a MongoDB 5.0 cluster. + MongoCfgConfig5_0_enterprise default_config = 3; +} + +message MongosConfigSet5_0_enterprise { + // Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig5_0_enterprise effective_config = 1; + + // User-defined mongos settings for a MongoDB 5.0 cluster. + MongosConfig5_0_enterprise user_config = 2; + + // Default mongos configuration for a MongoDB 5.0 cluster. + MongosConfig5_0_enterprise default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0.proto new file mode 100644 index 0000000000..64e21fec65 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0.proto @@ -0,0 +1,279 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v6.0/reference/configuration-options/). +message MongodConfig6_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v6.0/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v6.0/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v6.0/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 2 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v6.0/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message SetParameter { + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 1; + + // The minimum time window in seconds for which the storage engine keeps the snapshot history. + google.protobuf.Int64Value min_snapshot_history_window_in_seconds = 2 [(value) = ">=0"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `SetParameter` section of mongod configuration. + SetParameter set_parameter = 4; +} + +message MongoCfgConfig6_0 { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v6.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig6_0 { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 3; +} + +message MongodConfigSet6_0 { + // Effective mongod settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig6_0 effective_config = 1; + + // User-defined mongod settings for a MongoDB 6.0 cluster. + MongodConfig6_0 user_config = 2; + + // Default mongod configuration for a MongoDB 6.0 cluster. + MongodConfig6_0 default_config = 3; +} + +message MongoCfgConfigSet6_0 { + // Effective mongocfg settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig6_0 effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 6.0 cluster. + MongoCfgConfig6_0 user_config = 2; + + // Default mongocfg configuration for a MongoDB 6.0 cluster. + MongoCfgConfig6_0 default_config = 3; +} + +message MongosConfigSet6_0 { + // Effective mongos settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig6_0 effective_config = 1; + + // User-defined mongos settings for a MongoDB 6.0 cluster. + MongosConfig6_0 user_config = 2; + + // Default mongos configuration for a MongoDB 6.0 cluster. + MongosConfig6_0 default_config = 3; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0_enterprise.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0_enterprise.proto new file mode 100644 index 0000000000..d27cafb786 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/config/mongodb6_0_enterprise.proto @@ -0,0 +1,315 @@ +syntax = "proto3"; + +package yandex.cloud.mdb.mongodb.v1.config; + +import "google/protobuf/wrappers.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb"; +option java_package = "yandex.cloud.api.mdb.mongodb.v1.config"; + +// Configuration of a mongod daemon. Supported options are a limited subset of all +// options described in [MongoDB documentation](https://docs.mongodb.com/v6.0/reference/configuration-options/). +message MongodConfig6_0_enterprise { + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + message CollectionConfig { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // No compression. + NONE = 1; + + // The [Snappy](https://docs.mongodb.com/v6.0/reference/glossary/#term-snappy) compression. + SNAPPY = 2; + + // The [zlib](https://docs.mongodb.com/v6.0/reference/glossary/#term-zlib) compression. + ZLIB = 3; + + // The [zstd](https://docs.mongodb.com/v6.0/reference/glossary/#term-zstd) compression. + ZSTD = 4; + } + + // Default type of compression to use for collection data. + Compressor block_compressor = 1; + } + + message IndexConfig { + // Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression) + google.protobuf.BoolValue prefix_compression = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + + // Collection configuration for WiredTiger. + CollectionConfig collection_config = 2; + + //Index configuration for WiredTiger + IndexConfig index_config = 3; + } + + message Journal { + // Commit interval between journal operations, in milliseconds. + // Default: 100. + google.protobuf.Int64Value commit_interval = 2 [(value) = "1-500"]; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + + // Configuration of the MongoDB [journal](https://docs.mongodb.com/v6.0/reference/glossary/#term-journal). + Journal journal = 2; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + + // The fraction of slow operations that should be profiled or logged. + // operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive. + google.protobuf.DoubleValue slow_op_sample_rate = 3 [(value) = "0-1"]; + } + + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongod will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + message Security { + message KMIP { + // KMIP server name + string server_name = 1; + // KMIP server port + google.protobuf.Int64Value port = 2; + // KMIP Server CA + string server_ca = 3; + // KMIP client certificate + private key (unencrypted) + string client_certificate = 4; + // KMIP Key identifier (if any) + string key_identifier = 5; + } + + // If encryption at rest should be enabled or not + google.protobuf.BoolValue enable_encryption = 1; + // `kmip` section of mongod security config + KMIP kmip = 2; + } + + message AuditLog { + // Audit filter + string filter = 1; + // Allows runtime configuration of audit filter and auditAuthorizationSuccess + google.protobuf.BoolValue runtime_configuration = 2; + } + + message SetParameter { + // Enables the auditing of authorization successes + google.protobuf.BoolValue audit_authorization_success = 1; + // Enables or disables the mechanism that controls the rate at which the primary applies its writes with the + // goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v4.2/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime) + // lag under a configurable maximum value. + google.protobuf.BoolValue enable_flow_control = 2; + + // The minimum time window in seconds for which the storage engine keeps the snapshot history. + google.protobuf.Int64Value min_snapshot_history_window_in_seconds = 3 [(value) = ">=0"]; + } + + // `storage` section of mongod configuration. + Storage storage = 1; + + // `operationProfiling` section of mongod configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongod configuration. + Network net = 3; + + // `security` section of mongod configuration. + Security security = 4; + + // `AuditLog` section of mongod configuration. + AuditLog audit_log = 5; + + // `SetParameter` section of mongod configuration. + SetParameter set_parameter = 6; +} + +message MongoCfgConfig6_0_enterprise { + + message Storage { + // Configuration of WiredTiger storage engine. + message WiredTiger { + message EngineConfig { + // The maximum size of the internal cache that WiredTiger will use for all data. + google.protobuf.DoubleValue cache_size_gb = 1; + } + + // Engine configuration for WiredTiger. + EngineConfig engine_config = 1; + } + + // Configuration of the WiredTiger storage engine. + WiredTiger wired_tiger = 1; + } + + message OperationProfiling { + enum Mode { + MODE_UNSPECIFIED = 0; + + // The profiler is off and does not collect any data. + OFF = 1; + + // The profiler collects data for operations that take longer than the value of [slow_op_threshold]. + SLOW_OP = 2; + + // The profiler collects data for all operations. + ALL = 3; + } + + // Mode which specifies operations that should be profiled. + Mode mode = 1; + + // The slow operation time threshold, in milliseconds. Operations that run + // for longer than this threshold are considered slow, and are processed by the profiler + // running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v6.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs). + google.protobuf.Int64Value slow_op_threshold = 2 [(value) = ">0"]; + } + + message Network { + // The maximum number of simultaneous connections that mongocfg will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + } + + // `storage` section of mongocfg configuration. + Storage storage = 1; + + // `operationProfiling` section of mongocfg configuration. + OperationProfiling operation_profiling = 2; + + // `net` section of mongocfg configuration. + Network net = 3; +} + +message MongosConfig6_0_enterprise { + message Network { + message Compression { + enum Compressor { + COMPRESSOR_UNSPECIFIED = 0; + + // The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression. + SNAPPY = 1; + + // The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression. + ZLIB = 2; + + // The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression. + ZSTD = 3; + + //No compression + DISABLED = 4; + } + // Specifies the default compressor(s) to use for communication between this mongod or mongos instance and: + // - other members of the deployment if the instance is part of a replica set or a sharded cluster + // - mongosh + // - drivers that support the OP_COMPRESSED message format. + // MongoDB supports the following compressors: + repeated Compressor compressors = 1 [(size) = "1-3"]; + } + + // The maximum number of simultaneous connections that mongos will accept. + google.protobuf.Int64Value max_incoming_connections = 1 [(value) = "10-16384"]; + + // Compression settings + Compression compression = 2; + } + + // Network settings for mongos. + Network net = 3; +} + +message MongodConfigSet6_0_enterprise { + // Effective mongod settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongodConfig6_0_enterprise effective_config = 1; + + // User-defined mongod settings for a MongoDB 6.0 cluster. + MongodConfig6_0_enterprise user_config = 2; + + // Default mongod configuration for a MongoDB 6.0 cluster. + MongodConfig6_0_enterprise default_config = 3; +} + +message MongoCfgConfigSet6_0_enterprise { + // Effective mongocfg settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongoCfgConfig6_0_enterprise effective_config = 1; + + // User-defined mongocfg settings for a MongoDB 6.0 cluster. + MongoCfgConfig6_0_enterprise user_config = 2; + + // Default mongocfg configuration for a MongoDB 6.0 cluster. + MongoCfgConfig6_0_enterprise default_config = 3; +} + +message MongosConfigSet6_0_enterprise { + // Effective mongos settings for a MongoDB 6.0 cluster (a combination of settings defined + // in [user_config] and [default_config]). + MongosConfig6_0_enterprise effective_config = 1; + + // User-defined mongos settings for a MongoDB 5.0 cluster. + MongosConfig6_0_enterprise user_config = 2; + + // Default mongos configuration for a MongoDB 5.0 cluster. + MongosConfig6_0_enterprise default_config = 3; +} |