Files

87 lines
3.1 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.Dcdb.V20180411.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DBAccount : AbstractModel
{
/// <summary>
/// 用户名
/// </summary>
[JsonProperty("UserName")]
public string UserName{ get; set; }
/// <summary>
/// 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段UserName + Host 唯一标识一个用户IP形式IP段以%结尾;支持填入%;为空默认等于%
/// </summary>
[JsonProperty("Host")]
public string Host{ get; set; }
/// <summary>
/// 用户备注信息
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 最后更新时间
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 只读标记0 1该账号的sql请求优先选择备机执行备机不可用时选择主机执行2优先选择备机执行备机不可用时操作失败。
/// </summary>
[JsonProperty("ReadOnly")]
public long? ReadOnly{ get; set; }
/// <summary>
/// 如果备机延迟超过本参数设置值,系统将认为备机发生故障
/// 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
/// </summary>
[JsonProperty("DelayThresh")]
public long? DelayThresh{ 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 + "UserName", this.UserName);
this.SetParamSimple(map, prefix + "Host", this.Host);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "ReadOnly", this.ReadOnly);
this.SetParamSimple(map, prefix + "DelayThresh", this.DelayThresh);
}
}
}