/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Cdb.V20170320.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyBackupConfigRequest : AbstractModel
{
///
/// 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
///
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
///
/// 备份文件的保留时间,单位为天。最小值为7天,最大值为732天。
///
[JsonProperty("ExpireDays")]
public long? ExpireDays{ get; set; }
///
/// (将废弃,建议使用 BackupTimeWindow 参数) 备份时间范围,格式为:02:00-06:00,起点和终点时间目前限制为整点,目前可以选择的范围为: 00:00-12:00,02:00-06:00,06:00-10:00,10:00-14:00,14:00-18:00,18:00-22:00,22:00-02:00。
///
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
///
/// 自动备份方式,仅支持:physical - 物理冷备
///
[JsonProperty("BackupMethod")]
public string BackupMethod{ get; set; }
///
/// binlog的保留时间,单位为天。最小值为7天,最大值为732天。该值的设置不能大于备份文件的保留时间。
///
[JsonProperty("BinlogExpireDays")]
public long? BinlogExpireDays{ get; set; }
///
/// 备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份,该参数如下:{"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段,将忽略StartTime字段的设置)
///
[JsonProperty("BackupTimeWindow")]
public CommonTimeWindow BackupTimeWindow{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "ExpireDays", this.ExpireDays);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "BackupMethod", this.BackupMethod);
this.SetParamSimple(map, prefix + "BinlogExpireDays", this.BinlogExpireDays);
this.SetParamObj(map, prefix + "BackupTimeWindow.", this.BackupTimeWindow);
}
}
}