|
27 | 27 | manifest={
|
28 | 28 | "NodeInfo",
|
29 | 29 | "Instance",
|
| 30 | + "PersistenceConfig", |
30 | 31 | "RescheduleMaintenanceRequest",
|
31 | 32 | "MaintenancePolicy",
|
32 | 33 | "WeeklyMaintenanceWindow",
|
@@ -230,6 +231,9 @@ class Instance(proto.Message):
|
230 | 231 | read_replicas_mode (google.cloud.redis_v1beta1.types.Instance.ReadReplicasMode):
|
231 | 232 | Optional. Read replica mode. Can only be
|
232 | 233 | specified when trying to create the instance.
|
| 234 | + persistence_config (google.cloud.redis_v1beta1.types.PersistenceConfig): |
| 235 | + Optional. Persistence configuration |
| 236 | + parameters |
233 | 237 | """
|
234 | 238 |
|
235 | 239 | class State(proto.Enum):
|
@@ -307,6 +311,59 @@ class ReadReplicasMode(proto.Enum):
|
307 | 311 | read_endpoint = proto.Field(proto.STRING, number=33,)
|
308 | 312 | read_endpoint_port = proto.Field(proto.INT32, number=34,)
|
309 | 313 | read_replicas_mode = proto.Field(proto.ENUM, number=35, enum=ReadReplicasMode,)
|
| 314 | + persistence_config = proto.Field( |
| 315 | + proto.MESSAGE, number=37, message="PersistenceConfig", |
| 316 | + ) |
| 317 | + |
| 318 | + |
| 319 | +class PersistenceConfig(proto.Message): |
| 320 | + r"""Configuration of the persistence functionality. |
| 321 | +
|
| 322 | + Attributes: |
| 323 | + persistence_mode (google.cloud.redis_v1beta1.types.PersistenceConfig.PersistenceMode): |
| 324 | + Optional. Controls whether Persistence |
| 325 | + features are enabled. If not provided, the |
| 326 | + existing value will be used. |
| 327 | + rdb_snapshot_period (google.cloud.redis_v1beta1.types.PersistenceConfig.SnapshotPeriod): |
| 328 | + Optional. Period between RDB snapshots. Snapshots will be |
| 329 | + attempted every period starting from the provided snapshot |
| 330 | + start time. For example, a start time of 01/01/2033 06:45 |
| 331 | + and SIX_HOURS snapshot period will do nothing until |
| 332 | + 01/01/2033, and then trigger snapshots every day at 06:45, |
| 333 | + 12:45, 18:45, and 00:45 the next day, and so on. If not |
| 334 | + provided, TWENTY_FOUR_HOURS will be used as default. |
| 335 | + rdb_next_snapshot_time (google.protobuf.timestamp_pb2.Timestamp): |
| 336 | + Output only. The next time that a snapshot |
| 337 | + attempt is scheduled to occur. |
| 338 | + rdb_snapshot_start_time (google.protobuf.timestamp_pb2.Timestamp): |
| 339 | + Optional. Date and time that the first |
| 340 | + snapshot was/will be attempted, and to which |
| 341 | + future snapshots will be aligned. If not |
| 342 | + provided, the current time will be used. |
| 343 | + """ |
| 344 | + |
| 345 | + class PersistenceMode(proto.Enum): |
| 346 | + r"""Available Persistence modes.""" |
| 347 | + PERSISTENCE_MODE_UNSPECIFIED = 0 |
| 348 | + DISABLED = 1 |
| 349 | + RDB = 2 |
| 350 | + |
| 351 | + class SnapshotPeriod(proto.Enum): |
| 352 | + r"""Available snapshot periods for scheduling.""" |
| 353 | + SNAPSHOT_PERIOD_UNSPECIFIED = 0 |
| 354 | + ONE_HOUR = 3 |
| 355 | + SIX_HOURS = 4 |
| 356 | + TWELVE_HOURS = 5 |
| 357 | + TWENTY_FOUR_HOURS = 6 |
| 358 | + |
| 359 | + persistence_mode = proto.Field(proto.ENUM, number=1, enum=PersistenceMode,) |
| 360 | + rdb_snapshot_period = proto.Field(proto.ENUM, number=2, enum=SnapshotPeriod,) |
| 361 | + rdb_next_snapshot_time = proto.Field( |
| 362 | + proto.MESSAGE, number=4, message=timestamp_pb2.Timestamp, |
| 363 | + ) |
| 364 | + rdb_snapshot_start_time = proto.Field( |
| 365 | + proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp, |
| 366 | + ) |
310 | 367 |
|
311 | 368 |
|
312 | 369 | class RescheduleMaintenanceRequest(proto.Message):
|
|
0 commit comments