yandexcloud 0.305.0__py3-none-any.whl → 0.307.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of yandexcloud might be problematic. Click here for more details.

Files changed (32) hide show
  1. yandex/cloud/audittrails/v1/trail_pb2.py +2 -2
  2. yandex/cloud/compute/v1/host_group_service_pb2.pyi +11 -1
  3. yandex/cloud/containerregistry/v1/registry_service_pb2.py +30 -30
  4. yandex/cloud/containerregistry/v1/registry_service_pb2.pyi +5 -1
  5. yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +42 -39
  6. yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +28 -2
  7. yandex/cloud/iam/v1/service_control_pb2.py +3 -1
  8. yandex/cloud/iam/v1/service_control_pb2.pyi +24 -0
  9. yandex/cloud/iam/v1/service_control_service_pb2.py +13 -3
  10. yandex/cloud/iam/v1/service_control_service_pb2.pyi +27 -0
  11. yandex/cloud/iam/v1/service_control_service_pb2_grpc.py +34 -0
  12. yandex/cloud/iam/v1/service_control_service_pb2_grpc.pyi +20 -0
  13. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.py +53 -43
  14. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.pyi +44 -0
  15. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2_grpc.py +34 -0
  16. yandex/cloud/mdb/greenplum/v1/cluster_service_pb2_grpc.pyi +20 -0
  17. yandex/cloud/mdb/mongodb/v1/cluster_pb2.py +144 -133
  18. yandex/cloud/mdb/mongodb/v1/cluster_pb2.pyi +165 -3
  19. yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.py +242 -231
  20. yandex/cloud/mdb/mongodb/v1/cluster_service_pb2.pyi +180 -6
  21. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +108 -0
  22. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +794 -0
  23. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2_grpc.py +4 -0
  24. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2_grpc.pyi +17 -0
  25. yandex/cloud/serverless/functions/v1/function_pb2.py +36 -36
  26. yandex/cloud/serverless/functions/v1/function_pb2.pyi +2 -10
  27. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/METADATA +1 -1
  28. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/RECORD +32 -28
  29. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/WHEEL +1 -1
  30. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/AUTHORS +0 -0
  31. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/LICENSE +0 -0
  32. {yandexcloud-0.305.0.dist-info → yandexcloud-0.307.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,794 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.internal.enum_type_wrapper
11
+ import google.protobuf.message
12
+ import google.protobuf.wrappers_pb2
13
+ import sys
14
+ import typing
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ @typing.final
24
+ class MongodConfig(google.protobuf.message.Message):
25
+ """Configuration of a mongod daemon. Supported options are a limited subset of all
26
+ options described in [MongoDB documentation](https://docs.mongodb.com/v7.0/reference/configuration-options/).
27
+ """
28
+
29
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
30
+
31
+ @typing.final
32
+ class Storage(google.protobuf.message.Message):
33
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
34
+
35
+ @typing.final
36
+ class WiredTiger(google.protobuf.message.Message):
37
+ """Configuration of WiredTiger storage engine."""
38
+
39
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
40
+
41
+ @typing.final
42
+ class EngineConfig(google.protobuf.message.Message):
43
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
44
+
45
+ CACHE_SIZE_GB_FIELD_NUMBER: builtins.int
46
+ @property
47
+ def cache_size_gb(self) -> google.protobuf.wrappers_pb2.DoubleValue:
48
+ """The maximum size of the internal cache that WiredTiger will use for all data."""
49
+
50
+ def __init__(
51
+ self,
52
+ *,
53
+ cache_size_gb: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
54
+ ) -> None: ...
55
+ def HasField(self, field_name: typing.Literal["cache_size_gb", b"cache_size_gb"]) -> builtins.bool: ...
56
+ def ClearField(self, field_name: typing.Literal["cache_size_gb", b"cache_size_gb"]) -> None: ...
57
+
58
+ @typing.final
59
+ class CollectionConfig(google.protobuf.message.Message):
60
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
61
+
62
+ class _Compressor:
63
+ ValueType = typing.NewType("ValueType", builtins.int)
64
+ V: typing_extensions.TypeAlias = ValueType
65
+
66
+ class _CompressorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType], builtins.type):
67
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
68
+ COMPRESSOR_UNSPECIFIED: MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType # 0
69
+ NONE: MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType # 1
70
+ """No compression."""
71
+ SNAPPY: MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType # 2
72
+ """The [Snappy](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-snappy) compression."""
73
+ ZLIB: MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType # 3
74
+ """The [zlib](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-zlib) compression."""
75
+ ZSTD: MongodConfig.Storage.WiredTiger.CollectionConfig._Compressor.ValueType # 4
76
+ """The [zstd](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-zstd) compression."""
77
+
78
+ class Compressor(_Compressor, metaclass=_CompressorEnumTypeWrapper): ...
79
+ COMPRESSOR_UNSPECIFIED: MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType # 0
80
+ NONE: MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType # 1
81
+ """No compression."""
82
+ SNAPPY: MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType # 2
83
+ """The [Snappy](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-snappy) compression."""
84
+ ZLIB: MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType # 3
85
+ """The [zlib](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-zlib) compression."""
86
+ ZSTD: MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType # 4
87
+ """The [zstd](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-zstd) compression."""
88
+
89
+ BLOCK_COMPRESSOR_FIELD_NUMBER: builtins.int
90
+ block_compressor: global___MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType
91
+ """Default type of compression to use for collection data."""
92
+ def __init__(
93
+ self,
94
+ *,
95
+ block_compressor: global___MongodConfig.Storage.WiredTiger.CollectionConfig.Compressor.ValueType = ...,
96
+ ) -> None: ...
97
+ def ClearField(self, field_name: typing.Literal["block_compressor", b"block_compressor"]) -> None: ...
98
+
99
+ @typing.final
100
+ class IndexConfig(google.protobuf.message.Message):
101
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
102
+
103
+ PREFIX_COMPRESSION_FIELD_NUMBER: builtins.int
104
+ @property
105
+ def prefix_compression(self) -> google.protobuf.wrappers_pb2.BoolValue:
106
+ """Enables or disables [prefix compression](https://www.mongodb.com/docs/manual/reference/glossary/#std-term-prefix-compression)"""
107
+
108
+ def __init__(
109
+ self,
110
+ *,
111
+ prefix_compression: google.protobuf.wrappers_pb2.BoolValue | None = ...,
112
+ ) -> None: ...
113
+ def HasField(self, field_name: typing.Literal["prefix_compression", b"prefix_compression"]) -> builtins.bool: ...
114
+ def ClearField(self, field_name: typing.Literal["prefix_compression", b"prefix_compression"]) -> None: ...
115
+
116
+ ENGINE_CONFIG_FIELD_NUMBER: builtins.int
117
+ COLLECTION_CONFIG_FIELD_NUMBER: builtins.int
118
+ INDEX_CONFIG_FIELD_NUMBER: builtins.int
119
+ @property
120
+ def engine_config(self) -> global___MongodConfig.Storage.WiredTiger.EngineConfig:
121
+ """Engine configuration for WiredTiger."""
122
+
123
+ @property
124
+ def collection_config(self) -> global___MongodConfig.Storage.WiredTiger.CollectionConfig:
125
+ """Collection configuration for WiredTiger."""
126
+
127
+ @property
128
+ def index_config(self) -> global___MongodConfig.Storage.WiredTiger.IndexConfig:
129
+ """Index configuration for WiredTiger"""
130
+
131
+ def __init__(
132
+ self,
133
+ *,
134
+ engine_config: global___MongodConfig.Storage.WiredTiger.EngineConfig | None = ...,
135
+ collection_config: global___MongodConfig.Storage.WiredTiger.CollectionConfig | None = ...,
136
+ index_config: global___MongodConfig.Storage.WiredTiger.IndexConfig | None = ...,
137
+ ) -> None: ...
138
+ def HasField(self, field_name: typing.Literal["collection_config", b"collection_config", "engine_config", b"engine_config", "index_config", b"index_config"]) -> builtins.bool: ...
139
+ def ClearField(self, field_name: typing.Literal["collection_config", b"collection_config", "engine_config", b"engine_config", "index_config", b"index_config"]) -> None: ...
140
+
141
+ @typing.final
142
+ class Journal(google.protobuf.message.Message):
143
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
144
+
145
+ COMMIT_INTERVAL_FIELD_NUMBER: builtins.int
146
+ @property
147
+ def commit_interval(self) -> google.protobuf.wrappers_pb2.Int64Value:
148
+ """Commit interval between journal operations, in milliseconds.
149
+ Default: 100.
150
+ """
151
+
152
+ def __init__(
153
+ self,
154
+ *,
155
+ commit_interval: google.protobuf.wrappers_pb2.Int64Value | None = ...,
156
+ ) -> None: ...
157
+ def HasField(self, field_name: typing.Literal["commit_interval", b"commit_interval"]) -> builtins.bool: ...
158
+ def ClearField(self, field_name: typing.Literal["commit_interval", b"commit_interval"]) -> None: ...
159
+
160
+ WIRED_TIGER_FIELD_NUMBER: builtins.int
161
+ JOURNAL_FIELD_NUMBER: builtins.int
162
+ @property
163
+ def wired_tiger(self) -> global___MongodConfig.Storage.WiredTiger:
164
+ """Configuration of the WiredTiger storage engine."""
165
+
166
+ @property
167
+ def journal(self) -> global___MongodConfig.Storage.Journal:
168
+ """Configuration of the MongoDB [journal](https://docs.mongodb.com/v7.0/reference/glossary/#std-term-journal)."""
169
+
170
+ def __init__(
171
+ self,
172
+ *,
173
+ wired_tiger: global___MongodConfig.Storage.WiredTiger | None = ...,
174
+ journal: global___MongodConfig.Storage.Journal | None = ...,
175
+ ) -> None: ...
176
+ def HasField(self, field_name: typing.Literal["journal", b"journal", "wired_tiger", b"wired_tiger"]) -> builtins.bool: ...
177
+ def ClearField(self, field_name: typing.Literal["journal", b"journal", "wired_tiger", b"wired_tiger"]) -> None: ...
178
+
179
+ @typing.final
180
+ class OperationProfiling(google.protobuf.message.Message):
181
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
182
+
183
+ class _Mode:
184
+ ValueType = typing.NewType("ValueType", builtins.int)
185
+ V: typing_extensions.TypeAlias = ValueType
186
+
187
+ class _ModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MongodConfig.OperationProfiling._Mode.ValueType], builtins.type):
188
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
189
+ MODE_UNSPECIFIED: MongodConfig.OperationProfiling._Mode.ValueType # 0
190
+ OFF: MongodConfig.OperationProfiling._Mode.ValueType # 1
191
+ """The profiler is off and does not collect any data."""
192
+ SLOW_OP: MongodConfig.OperationProfiling._Mode.ValueType # 2
193
+ """The profiler collects data for operations that take longer than the value of [slow_op_threshold]."""
194
+ ALL: MongodConfig.OperationProfiling._Mode.ValueType # 3
195
+ """The profiler collects data for all operations."""
196
+
197
+ class Mode(_Mode, metaclass=_ModeEnumTypeWrapper): ...
198
+ MODE_UNSPECIFIED: MongodConfig.OperationProfiling.Mode.ValueType # 0
199
+ OFF: MongodConfig.OperationProfiling.Mode.ValueType # 1
200
+ """The profiler is off and does not collect any data."""
201
+ SLOW_OP: MongodConfig.OperationProfiling.Mode.ValueType # 2
202
+ """The profiler collects data for operations that take longer than the value of [slow_op_threshold]."""
203
+ ALL: MongodConfig.OperationProfiling.Mode.ValueType # 3
204
+ """The profiler collects data for all operations."""
205
+
206
+ MODE_FIELD_NUMBER: builtins.int
207
+ SLOW_OP_THRESHOLD_FIELD_NUMBER: builtins.int
208
+ SLOW_OP_SAMPLE_RATE_FIELD_NUMBER: builtins.int
209
+ mode: global___MongodConfig.OperationProfiling.Mode.ValueType
210
+ """Mode which specifies operations that should be profiled."""
211
+ @property
212
+ def slow_op_threshold(self) -> google.protobuf.wrappers_pb2.Int64Value:
213
+ """The slow operation time threshold, in milliseconds. Operations that run
214
+ for longer than this threshold are considered slow, and are processed by the profiler
215
+ running in the SLOW_OP mode.
216
+ """
217
+
218
+ @property
219
+ def slow_op_sample_rate(self) -> google.protobuf.wrappers_pb2.DoubleValue:
220
+ """The fraction of slow operations that should be profiled or logged.
221
+ operationProfiling.slowOpSampleRate accepts values between 0 and 1, inclusive.
222
+ """
223
+
224
+ def __init__(
225
+ self,
226
+ *,
227
+ mode: global___MongodConfig.OperationProfiling.Mode.ValueType = ...,
228
+ slow_op_threshold: google.protobuf.wrappers_pb2.Int64Value | None = ...,
229
+ slow_op_sample_rate: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
230
+ ) -> None: ...
231
+ def HasField(self, field_name: typing.Literal["slow_op_sample_rate", b"slow_op_sample_rate", "slow_op_threshold", b"slow_op_threshold"]) -> builtins.bool: ...
232
+ def ClearField(self, field_name: typing.Literal["mode", b"mode", "slow_op_sample_rate", b"slow_op_sample_rate", "slow_op_threshold", b"slow_op_threshold"]) -> None: ...
233
+
234
+ @typing.final
235
+ class Network(google.protobuf.message.Message):
236
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
237
+
238
+ @typing.final
239
+ class Compression(google.protobuf.message.Message):
240
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
241
+
242
+ class _Compressor:
243
+ ValueType = typing.NewType("ValueType", builtins.int)
244
+ V: typing_extensions.TypeAlias = ValueType
245
+
246
+ class _CompressorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MongodConfig.Network.Compression._Compressor.ValueType], builtins.type):
247
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
248
+ COMPRESSOR_UNSPECIFIED: MongodConfig.Network.Compression._Compressor.ValueType # 0
249
+ SNAPPY: MongodConfig.Network.Compression._Compressor.ValueType # 1
250
+ """The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression."""
251
+ ZLIB: MongodConfig.Network.Compression._Compressor.ValueType # 2
252
+ """The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression."""
253
+ ZSTD: MongodConfig.Network.Compression._Compressor.ValueType # 3
254
+ """The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression."""
255
+ DISABLED: MongodConfig.Network.Compression._Compressor.ValueType # 4
256
+ """No compression"""
257
+
258
+ class Compressor(_Compressor, metaclass=_CompressorEnumTypeWrapper): ...
259
+ COMPRESSOR_UNSPECIFIED: MongodConfig.Network.Compression.Compressor.ValueType # 0
260
+ SNAPPY: MongodConfig.Network.Compression.Compressor.ValueType # 1
261
+ """The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression."""
262
+ ZLIB: MongodConfig.Network.Compression.Compressor.ValueType # 2
263
+ """The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression."""
264
+ ZSTD: MongodConfig.Network.Compression.Compressor.ValueType # 3
265
+ """The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression."""
266
+ DISABLED: MongodConfig.Network.Compression.Compressor.ValueType # 4
267
+ """No compression"""
268
+
269
+ COMPRESSORS_FIELD_NUMBER: builtins.int
270
+ @property
271
+ def compressors(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___MongodConfig.Network.Compression.Compressor.ValueType]:
272
+ """Specifies the default compressor(s) to use for communication between this mongod or mongos instance and:
273
+ - other members of the deployment if the instance is part of a replica set or a sharded cluster
274
+ - mongosh
275
+ - drivers that support the OP_COMPRESSED message format.
276
+ MongoDB supports the following compressors:
277
+ """
278
+
279
+ def __init__(
280
+ self,
281
+ *,
282
+ compressors: collections.abc.Iterable[global___MongodConfig.Network.Compression.Compressor.ValueType] | None = ...,
283
+ ) -> None: ...
284
+ def ClearField(self, field_name: typing.Literal["compressors", b"compressors"]) -> None: ...
285
+
286
+ MAX_INCOMING_CONNECTIONS_FIELD_NUMBER: builtins.int
287
+ COMPRESSION_FIELD_NUMBER: builtins.int
288
+ @property
289
+ def max_incoming_connections(self) -> google.protobuf.wrappers_pb2.Int64Value:
290
+ """The maximum number of simultaneous connections that mongod will accept."""
291
+
292
+ @property
293
+ def compression(self) -> global___MongodConfig.Network.Compression:
294
+ """Compression settings"""
295
+
296
+ def __init__(
297
+ self,
298
+ *,
299
+ max_incoming_connections: google.protobuf.wrappers_pb2.Int64Value | None = ...,
300
+ compression: global___MongodConfig.Network.Compression | None = ...,
301
+ ) -> None: ...
302
+ def HasField(self, field_name: typing.Literal["compression", b"compression", "max_incoming_connections", b"max_incoming_connections"]) -> builtins.bool: ...
303
+ def ClearField(self, field_name: typing.Literal["compression", b"compression", "max_incoming_connections", b"max_incoming_connections"]) -> None: ...
304
+
305
+ @typing.final
306
+ class Security(google.protobuf.message.Message):
307
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
308
+
309
+ @typing.final
310
+ class KMIP(google.protobuf.message.Message):
311
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
312
+
313
+ SERVER_NAME_FIELD_NUMBER: builtins.int
314
+ PORT_FIELD_NUMBER: builtins.int
315
+ SERVER_CA_FIELD_NUMBER: builtins.int
316
+ CLIENT_CERTIFICATE_FIELD_NUMBER: builtins.int
317
+ KEY_IDENTIFIER_FIELD_NUMBER: builtins.int
318
+ server_name: builtins.str
319
+ """KMIP server name"""
320
+ server_ca: builtins.str
321
+ """KMIP Server CA"""
322
+ client_certificate: builtins.str
323
+ """KMIP client certificate + private key (unencrypted)"""
324
+ key_identifier: builtins.str
325
+ """KMIP Key identifier (if any)"""
326
+ @property
327
+ def port(self) -> google.protobuf.wrappers_pb2.Int64Value:
328
+ """KMIP server port"""
329
+
330
+ def __init__(
331
+ self,
332
+ *,
333
+ server_name: builtins.str = ...,
334
+ port: google.protobuf.wrappers_pb2.Int64Value | None = ...,
335
+ server_ca: builtins.str = ...,
336
+ client_certificate: builtins.str = ...,
337
+ key_identifier: builtins.str = ...,
338
+ ) -> None: ...
339
+ def HasField(self, field_name: typing.Literal["port", b"port"]) -> builtins.bool: ...
340
+ def ClearField(self, field_name: typing.Literal["client_certificate", b"client_certificate", "key_identifier", b"key_identifier", "port", b"port", "server_ca", b"server_ca", "server_name", b"server_name"]) -> None: ...
341
+
342
+ ENABLE_ENCRYPTION_FIELD_NUMBER: builtins.int
343
+ KMIP_FIELD_NUMBER: builtins.int
344
+ @property
345
+ def enable_encryption(self) -> google.protobuf.wrappers_pb2.BoolValue:
346
+ """If encryption at rest should be enabled or not"""
347
+
348
+ @property
349
+ def kmip(self) -> global___MongodConfig.Security.KMIP:
350
+ """`kmip` section of mongod security config"""
351
+
352
+ def __init__(
353
+ self,
354
+ *,
355
+ enable_encryption: google.protobuf.wrappers_pb2.BoolValue | None = ...,
356
+ kmip: global___MongodConfig.Security.KMIP | None = ...,
357
+ ) -> None: ...
358
+ def HasField(self, field_name: typing.Literal["enable_encryption", b"enable_encryption", "kmip", b"kmip"]) -> builtins.bool: ...
359
+ def ClearField(self, field_name: typing.Literal["enable_encryption", b"enable_encryption", "kmip", b"kmip"]) -> None: ...
360
+
361
+ @typing.final
362
+ class AuditLog(google.protobuf.message.Message):
363
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
364
+
365
+ FILTER_FIELD_NUMBER: builtins.int
366
+ RUNTIME_CONFIGURATION_FIELD_NUMBER: builtins.int
367
+ filter: builtins.str
368
+ """Audit filter"""
369
+ @property
370
+ def runtime_configuration(self) -> google.protobuf.wrappers_pb2.BoolValue:
371
+ """Allows runtime configuration of audit filter and auditAuthorizationSuccess"""
372
+
373
+ def __init__(
374
+ self,
375
+ *,
376
+ filter: builtins.str = ...,
377
+ runtime_configuration: google.protobuf.wrappers_pb2.BoolValue | None = ...,
378
+ ) -> None: ...
379
+ def HasField(self, field_name: typing.Literal["runtime_configuration", b"runtime_configuration"]) -> builtins.bool: ...
380
+ def ClearField(self, field_name: typing.Literal["filter", b"filter", "runtime_configuration", b"runtime_configuration"]) -> None: ...
381
+
382
+ @typing.final
383
+ class SetParameter(google.protobuf.message.Message):
384
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
385
+
386
+ AUDIT_AUTHORIZATION_SUCCESS_FIELD_NUMBER: builtins.int
387
+ ENABLE_FLOW_CONTROL_FIELD_NUMBER: builtins.int
388
+ MIN_SNAPSHOT_HISTORY_WINDOW_IN_SECONDS_FIELD_NUMBER: builtins.int
389
+ @property
390
+ def audit_authorization_success(self) -> google.protobuf.wrappers_pb2.BoolValue:
391
+ """Enables the auditing of authorization successes"""
392
+
393
+ @property
394
+ def enable_flow_control(self) -> google.protobuf.wrappers_pb2.BoolValue:
395
+ """Enables or disables the mechanism that controls the rate at which the primary applies its writes with the
396
+ goal of keeping the secondary members [majority committed](https://www.mongodb.com/docs/v7.0/reference/command/replSetGetStatus/#replSetGetStatus.optimes.lastCommittedOpTime)
397
+ lag under a configurable maximum value.
398
+ """
399
+
400
+ @property
401
+ def min_snapshot_history_window_in_seconds(self) -> google.protobuf.wrappers_pb2.Int64Value:
402
+ """The minimum time window in seconds for which the storage engine keeps the snapshot history."""
403
+
404
+ def __init__(
405
+ self,
406
+ *,
407
+ audit_authorization_success: google.protobuf.wrappers_pb2.BoolValue | None = ...,
408
+ enable_flow_control: google.protobuf.wrappers_pb2.BoolValue | None = ...,
409
+ min_snapshot_history_window_in_seconds: google.protobuf.wrappers_pb2.Int64Value | None = ...,
410
+ ) -> None: ...
411
+ def HasField(self, field_name: typing.Literal["audit_authorization_success", b"audit_authorization_success", "enable_flow_control", b"enable_flow_control", "min_snapshot_history_window_in_seconds", b"min_snapshot_history_window_in_seconds"]) -> builtins.bool: ...
412
+ def ClearField(self, field_name: typing.Literal["audit_authorization_success", b"audit_authorization_success", "enable_flow_control", b"enable_flow_control", "min_snapshot_history_window_in_seconds", b"min_snapshot_history_window_in_seconds"]) -> None: ...
413
+
414
+ STORAGE_FIELD_NUMBER: builtins.int
415
+ OPERATION_PROFILING_FIELD_NUMBER: builtins.int
416
+ NET_FIELD_NUMBER: builtins.int
417
+ SECURITY_FIELD_NUMBER: builtins.int
418
+ AUDIT_LOG_FIELD_NUMBER: builtins.int
419
+ SET_PARAMETER_FIELD_NUMBER: builtins.int
420
+ @property
421
+ def storage(self) -> global___MongodConfig.Storage:
422
+ """`storage` section of mongod configuration."""
423
+
424
+ @property
425
+ def operation_profiling(self) -> global___MongodConfig.OperationProfiling:
426
+ """`operationProfiling` section of mongod configuration."""
427
+
428
+ @property
429
+ def net(self) -> global___MongodConfig.Network:
430
+ """`net` section of mongod configuration."""
431
+
432
+ @property
433
+ def security(self) -> global___MongodConfig.Security:
434
+ """`security` section of mongod configuration."""
435
+
436
+ @property
437
+ def audit_log(self) -> global___MongodConfig.AuditLog:
438
+ """`AuditLog` section of mongod configuration."""
439
+
440
+ @property
441
+ def set_parameter(self) -> global___MongodConfig.SetParameter:
442
+ """`SetParameter` section of mongod configuration."""
443
+
444
+ def __init__(
445
+ self,
446
+ *,
447
+ storage: global___MongodConfig.Storage | None = ...,
448
+ operation_profiling: global___MongodConfig.OperationProfiling | None = ...,
449
+ net: global___MongodConfig.Network | None = ...,
450
+ security: global___MongodConfig.Security | None = ...,
451
+ audit_log: global___MongodConfig.AuditLog | None = ...,
452
+ set_parameter: global___MongodConfig.SetParameter | None = ...,
453
+ ) -> None: ...
454
+ def HasField(self, field_name: typing.Literal["audit_log", b"audit_log", "net", b"net", "operation_profiling", b"operation_profiling", "security", b"security", "set_parameter", b"set_parameter", "storage", b"storage"]) -> builtins.bool: ...
455
+ def ClearField(self, field_name: typing.Literal["audit_log", b"audit_log", "net", b"net", "operation_profiling", b"operation_profiling", "security", b"security", "set_parameter", b"set_parameter", "storage", b"storage"]) -> None: ...
456
+
457
+ global___MongodConfig = MongodConfig
458
+
459
+ @typing.final
460
+ class MongoCfgConfig(google.protobuf.message.Message):
461
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
462
+
463
+ @typing.final
464
+ class Storage(google.protobuf.message.Message):
465
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
466
+
467
+ @typing.final
468
+ class WiredTiger(google.protobuf.message.Message):
469
+ """Configuration of WiredTiger storage engine."""
470
+
471
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
472
+
473
+ @typing.final
474
+ class EngineConfig(google.protobuf.message.Message):
475
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
476
+
477
+ CACHE_SIZE_GB_FIELD_NUMBER: builtins.int
478
+ @property
479
+ def cache_size_gb(self) -> google.protobuf.wrappers_pb2.DoubleValue:
480
+ """The maximum size of the internal cache that WiredTiger will use for all data."""
481
+
482
+ def __init__(
483
+ self,
484
+ *,
485
+ cache_size_gb: google.protobuf.wrappers_pb2.DoubleValue | None = ...,
486
+ ) -> None: ...
487
+ def HasField(self, field_name: typing.Literal["cache_size_gb", b"cache_size_gb"]) -> builtins.bool: ...
488
+ def ClearField(self, field_name: typing.Literal["cache_size_gb", b"cache_size_gb"]) -> None: ...
489
+
490
+ ENGINE_CONFIG_FIELD_NUMBER: builtins.int
491
+ @property
492
+ def engine_config(self) -> global___MongoCfgConfig.Storage.WiredTiger.EngineConfig:
493
+ """Engine configuration for WiredTiger."""
494
+
495
+ def __init__(
496
+ self,
497
+ *,
498
+ engine_config: global___MongoCfgConfig.Storage.WiredTiger.EngineConfig | None = ...,
499
+ ) -> None: ...
500
+ def HasField(self, field_name: typing.Literal["engine_config", b"engine_config"]) -> builtins.bool: ...
501
+ def ClearField(self, field_name: typing.Literal["engine_config", b"engine_config"]) -> None: ...
502
+
503
+ WIRED_TIGER_FIELD_NUMBER: builtins.int
504
+ @property
505
+ def wired_tiger(self) -> global___MongoCfgConfig.Storage.WiredTiger:
506
+ """Configuration of the WiredTiger storage engine."""
507
+
508
+ def __init__(
509
+ self,
510
+ *,
511
+ wired_tiger: global___MongoCfgConfig.Storage.WiredTiger | None = ...,
512
+ ) -> None: ...
513
+ def HasField(self, field_name: typing.Literal["wired_tiger", b"wired_tiger"]) -> builtins.bool: ...
514
+ def ClearField(self, field_name: typing.Literal["wired_tiger", b"wired_tiger"]) -> None: ...
515
+
516
+ @typing.final
517
+ class OperationProfiling(google.protobuf.message.Message):
518
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
519
+
520
+ class _Mode:
521
+ ValueType = typing.NewType("ValueType", builtins.int)
522
+ V: typing_extensions.TypeAlias = ValueType
523
+
524
+ class _ModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MongoCfgConfig.OperationProfiling._Mode.ValueType], builtins.type):
525
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
526
+ MODE_UNSPECIFIED: MongoCfgConfig.OperationProfiling._Mode.ValueType # 0
527
+ OFF: MongoCfgConfig.OperationProfiling._Mode.ValueType # 1
528
+ """The profiler is off and does not collect any data."""
529
+ SLOW_OP: MongoCfgConfig.OperationProfiling._Mode.ValueType # 2
530
+ """The profiler collects data for operations that take longer than the value of [slow_op_threshold]."""
531
+ ALL: MongoCfgConfig.OperationProfiling._Mode.ValueType # 3
532
+ """The profiler collects data for all operations."""
533
+
534
+ class Mode(_Mode, metaclass=_ModeEnumTypeWrapper): ...
535
+ MODE_UNSPECIFIED: MongoCfgConfig.OperationProfiling.Mode.ValueType # 0
536
+ OFF: MongoCfgConfig.OperationProfiling.Mode.ValueType # 1
537
+ """The profiler is off and does not collect any data."""
538
+ SLOW_OP: MongoCfgConfig.OperationProfiling.Mode.ValueType # 2
539
+ """The profiler collects data for operations that take longer than the value of [slow_op_threshold]."""
540
+ ALL: MongoCfgConfig.OperationProfiling.Mode.ValueType # 3
541
+ """The profiler collects data for all operations."""
542
+
543
+ MODE_FIELD_NUMBER: builtins.int
544
+ SLOW_OP_THRESHOLD_FIELD_NUMBER: builtins.int
545
+ mode: global___MongoCfgConfig.OperationProfiling.Mode.ValueType
546
+ """Mode which specifies operations that should be profiled."""
547
+ @property
548
+ def slow_op_threshold(self) -> google.protobuf.wrappers_pb2.Int64Value:
549
+ """The slow operation time threshold, in milliseconds. Operations that run
550
+ for longer than this threshold are considered slow, and are processed by the profiler
551
+ running in the SLOW_OP mode. For details see [MongoDB documentation](https://www.mongodb.com/docs/v7.0/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
552
+ """
553
+
554
+ def __init__(
555
+ self,
556
+ *,
557
+ mode: global___MongoCfgConfig.OperationProfiling.Mode.ValueType = ...,
558
+ slow_op_threshold: google.protobuf.wrappers_pb2.Int64Value | None = ...,
559
+ ) -> None: ...
560
+ def HasField(self, field_name: typing.Literal["slow_op_threshold", b"slow_op_threshold"]) -> builtins.bool: ...
561
+ def ClearField(self, field_name: typing.Literal["mode", b"mode", "slow_op_threshold", b"slow_op_threshold"]) -> None: ...
562
+
563
+ @typing.final
564
+ class Network(google.protobuf.message.Message):
565
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
566
+
567
+ MAX_INCOMING_CONNECTIONS_FIELD_NUMBER: builtins.int
568
+ @property
569
+ def max_incoming_connections(self) -> google.protobuf.wrappers_pb2.Int64Value:
570
+ """The maximum number of simultaneous connections that mongocfg will accept."""
571
+
572
+ def __init__(
573
+ self,
574
+ *,
575
+ max_incoming_connections: google.protobuf.wrappers_pb2.Int64Value | None = ...,
576
+ ) -> None: ...
577
+ def HasField(self, field_name: typing.Literal["max_incoming_connections", b"max_incoming_connections"]) -> builtins.bool: ...
578
+ def ClearField(self, field_name: typing.Literal["max_incoming_connections", b"max_incoming_connections"]) -> None: ...
579
+
580
+ STORAGE_FIELD_NUMBER: builtins.int
581
+ OPERATION_PROFILING_FIELD_NUMBER: builtins.int
582
+ NET_FIELD_NUMBER: builtins.int
583
+ @property
584
+ def storage(self) -> global___MongoCfgConfig.Storage:
585
+ """`storage` section of mongocfg configuration."""
586
+
587
+ @property
588
+ def operation_profiling(self) -> global___MongoCfgConfig.OperationProfiling:
589
+ """`operationProfiling` section of mongocfg configuration."""
590
+
591
+ @property
592
+ def net(self) -> global___MongoCfgConfig.Network:
593
+ """`net` section of mongocfg configuration."""
594
+
595
+ def __init__(
596
+ self,
597
+ *,
598
+ storage: global___MongoCfgConfig.Storage | None = ...,
599
+ operation_profiling: global___MongoCfgConfig.OperationProfiling | None = ...,
600
+ net: global___MongoCfgConfig.Network | None = ...,
601
+ ) -> None: ...
602
+ def HasField(self, field_name: typing.Literal["net", b"net", "operation_profiling", b"operation_profiling", "storage", b"storage"]) -> builtins.bool: ...
603
+ def ClearField(self, field_name: typing.Literal["net", b"net", "operation_profiling", b"operation_profiling", "storage", b"storage"]) -> None: ...
604
+
605
+ global___MongoCfgConfig = MongoCfgConfig
606
+
607
+ @typing.final
608
+ class MongosConfig(google.protobuf.message.Message):
609
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
610
+
611
+ @typing.final
612
+ class Network(google.protobuf.message.Message):
613
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
614
+
615
+ @typing.final
616
+ class Compression(google.protobuf.message.Message):
617
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
618
+
619
+ class _Compressor:
620
+ ValueType = typing.NewType("ValueType", builtins.int)
621
+ V: typing_extensions.TypeAlias = ValueType
622
+
623
+ class _CompressorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MongosConfig.Network.Compression._Compressor.ValueType], builtins.type):
624
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
625
+ COMPRESSOR_UNSPECIFIED: MongosConfig.Network.Compression._Compressor.ValueType # 0
626
+ SNAPPY: MongosConfig.Network.Compression._Compressor.ValueType # 1
627
+ """The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression."""
628
+ ZLIB: MongosConfig.Network.Compression._Compressor.ValueType # 2
629
+ """The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression."""
630
+ ZSTD: MongosConfig.Network.Compression._Compressor.ValueType # 3
631
+ """The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression."""
632
+ DISABLED: MongosConfig.Network.Compression._Compressor.ValueType # 4
633
+ """No compression"""
634
+
635
+ class Compressor(_Compressor, metaclass=_CompressorEnumTypeWrapper): ...
636
+ COMPRESSOR_UNSPECIFIED: MongosConfig.Network.Compression.Compressor.ValueType # 0
637
+ SNAPPY: MongosConfig.Network.Compression.Compressor.ValueType # 1
638
+ """The [Snappy](https://docs.mongodb.com/v4.2/reference/glossary/#term-snappy) compression."""
639
+ ZLIB: MongosConfig.Network.Compression.Compressor.ValueType # 2
640
+ """The [zlib](https://docs.mongodb.com/v4.2/reference/glossary/#term-zlib) compression."""
641
+ ZSTD: MongosConfig.Network.Compression.Compressor.ValueType # 3
642
+ """The [zstd](https://docs.mongodb.com/v4.2/reference/glossary/#term-zstd) compression."""
643
+ DISABLED: MongosConfig.Network.Compression.Compressor.ValueType # 4
644
+ """No compression"""
645
+
646
+ COMPRESSORS_FIELD_NUMBER: builtins.int
647
+ @property
648
+ def compressors(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___MongosConfig.Network.Compression.Compressor.ValueType]:
649
+ """Specifies the default compressor(s) to use for communication between this mongod or mongos instance and:
650
+ - other members of the deployment if the instance is part of a replica set or a sharded cluster
651
+ - mongosh
652
+ - drivers that support the OP_COMPRESSED message format.
653
+ MongoDB supports the following compressors:
654
+ """
655
+
656
+ def __init__(
657
+ self,
658
+ *,
659
+ compressors: collections.abc.Iterable[global___MongosConfig.Network.Compression.Compressor.ValueType] | None = ...,
660
+ ) -> None: ...
661
+ def ClearField(self, field_name: typing.Literal["compressors", b"compressors"]) -> None: ...
662
+
663
+ MAX_INCOMING_CONNECTIONS_FIELD_NUMBER: builtins.int
664
+ COMPRESSION_FIELD_NUMBER: builtins.int
665
+ @property
666
+ def max_incoming_connections(self) -> google.protobuf.wrappers_pb2.Int64Value:
667
+ """The maximum number of simultaneous connections that mongos will accept."""
668
+
669
+ @property
670
+ def compression(self) -> global___MongosConfig.Network.Compression:
671
+ """Compression settings"""
672
+
673
+ def __init__(
674
+ self,
675
+ *,
676
+ max_incoming_connections: google.protobuf.wrappers_pb2.Int64Value | None = ...,
677
+ compression: global___MongosConfig.Network.Compression | None = ...,
678
+ ) -> None: ...
679
+ def HasField(self, field_name: typing.Literal["compression", b"compression", "max_incoming_connections", b"max_incoming_connections"]) -> builtins.bool: ...
680
+ def ClearField(self, field_name: typing.Literal["compression", b"compression", "max_incoming_connections", b"max_incoming_connections"]) -> None: ...
681
+
682
+ NET_FIELD_NUMBER: builtins.int
683
+ @property
684
+ def net(self) -> global___MongosConfig.Network:
685
+ """Network settings for mongos."""
686
+
687
+ def __init__(
688
+ self,
689
+ *,
690
+ net: global___MongosConfig.Network | None = ...,
691
+ ) -> None: ...
692
+ def HasField(self, field_name: typing.Literal["net", b"net"]) -> builtins.bool: ...
693
+ def ClearField(self, field_name: typing.Literal["net", b"net"]) -> None: ...
694
+
695
+ global___MongosConfig = MongosConfig
696
+
697
+ @typing.final
698
+ class MongodConfigSet(google.protobuf.message.Message):
699
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
700
+
701
+ EFFECTIVE_CONFIG_FIELD_NUMBER: builtins.int
702
+ USER_CONFIG_FIELD_NUMBER: builtins.int
703
+ DEFAULT_CONFIG_FIELD_NUMBER: builtins.int
704
+ @property
705
+ def effective_config(self) -> global___MongodConfig:
706
+ """Effective mongod settings for a MongoDB cluster (a combination of settings defined
707
+ in [user_config] and [default_config]).
708
+ """
709
+
710
+ @property
711
+ def user_config(self) -> global___MongodConfig:
712
+ """User-defined mongod settings for a MongoDB cluster."""
713
+
714
+ @property
715
+ def default_config(self) -> global___MongodConfig:
716
+ """Default mongod configuration for a MongoDB cluster."""
717
+
718
+ def __init__(
719
+ self,
720
+ *,
721
+ effective_config: global___MongodConfig | None = ...,
722
+ user_config: global___MongodConfig | None = ...,
723
+ default_config: global___MongodConfig | None = ...,
724
+ ) -> None: ...
725
+ def HasField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> builtins.bool: ...
726
+ def ClearField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> None: ...
727
+
728
+ global___MongodConfigSet = MongodConfigSet
729
+
730
+ @typing.final
731
+ class MongoCfgConfigSet(google.protobuf.message.Message):
732
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
733
+
734
+ EFFECTIVE_CONFIG_FIELD_NUMBER: builtins.int
735
+ USER_CONFIG_FIELD_NUMBER: builtins.int
736
+ DEFAULT_CONFIG_FIELD_NUMBER: builtins.int
737
+ @property
738
+ def effective_config(self) -> global___MongoCfgConfig:
739
+ """Effective mongocfg settings for a MongoDB cluster (a combination of settings defined
740
+ in [user_config] and [default_config]).
741
+ """
742
+
743
+ @property
744
+ def user_config(self) -> global___MongoCfgConfig:
745
+ """User-defined mongocfg settings for a MongoDB cluster."""
746
+
747
+ @property
748
+ def default_config(self) -> global___MongoCfgConfig:
749
+ """Default mongocfg configuration for a MongoDB cluster."""
750
+
751
+ def __init__(
752
+ self,
753
+ *,
754
+ effective_config: global___MongoCfgConfig | None = ...,
755
+ user_config: global___MongoCfgConfig | None = ...,
756
+ default_config: global___MongoCfgConfig | None = ...,
757
+ ) -> None: ...
758
+ def HasField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> builtins.bool: ...
759
+ def ClearField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> None: ...
760
+
761
+ global___MongoCfgConfigSet = MongoCfgConfigSet
762
+
763
+ @typing.final
764
+ class MongosConfigSet(google.protobuf.message.Message):
765
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
766
+
767
+ EFFECTIVE_CONFIG_FIELD_NUMBER: builtins.int
768
+ USER_CONFIG_FIELD_NUMBER: builtins.int
769
+ DEFAULT_CONFIG_FIELD_NUMBER: builtins.int
770
+ @property
771
+ def effective_config(self) -> global___MongosConfig:
772
+ """Effective mongos settings for a MongoDB cluster (a combination of settings defined
773
+ in [user_config] and [default_config]).
774
+ """
775
+
776
+ @property
777
+ def user_config(self) -> global___MongosConfig:
778
+ """User-defined mongos settings for a MongoDB cluster."""
779
+
780
+ @property
781
+ def default_config(self) -> global___MongosConfig:
782
+ """Default mongos configuration for a MongoDB cluster."""
783
+
784
+ def __init__(
785
+ self,
786
+ *,
787
+ effective_config: global___MongosConfig | None = ...,
788
+ user_config: global___MongosConfig | None = ...,
789
+ default_config: global___MongosConfig | None = ...,
790
+ ) -> None: ...
791
+ def HasField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> builtins.bool: ...
792
+ def ClearField(self, field_name: typing.Literal["default_config", b"default_config", "effective_config", b"effective_config", "user_config", b"user_config"]) -> None: ...
793
+
794
+ global___MongosConfigSet = MongosConfigSet