Files
g.hnyhua.cn/TencentCloud/Cdb/V20170320/Models/ModifyBackupConfigRequest.cs

79 lines
3.4 KiB
C#
Raw Permalink Normal View History

/*
* 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
{
/// <summary>
/// 实例 ID格式如cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 备份文件的保留时间单位为天。最小值为7天最大值为732天。
/// </summary>
[JsonProperty("ExpireDays")]
public long? ExpireDays{ get; set; }
/// <summary>
/// (将废弃,建议使用 BackupTimeWindow 参数) 备份时间范围格式为02:00-06:00起点和终点时间目前限制为整点目前可以选择的范围为 00:00-12:0002:00-06:000600-100010:00-14:0014:00-18:0018:00-22:0022:00-02:00。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 自动备份方式仅支持physical - 物理冷备
/// </summary>
[JsonProperty("BackupMethod")]
public string BackupMethod{ get; set; }
/// <summary>
/// binlog的保留时间单位为天。最小值为7天最大值为732天。该值的设置不能大于备份文件的保留时间。
/// </summary>
[JsonProperty("BinlogExpireDays")]
public long? BinlogExpireDays{ get; set; }
/// <summary>
/// 备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份该参数如下{"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段将忽略StartTime字段的设置
/// </summary>
[JsonProperty("BackupTimeWindow")]
public CommonTimeWindow BackupTimeWindow{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> 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);
}
}
}