/* * 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.Redis.V20180412.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Account : AbstractModel { /// /// 实例ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 账号名称(如果是主账号,名称为root) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("AccountName")] public string AccountName{ get; set; } /// /// 账号描述信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Remark")] public string Remark{ get; set; } /// /// 读写策略:r-只读,w-只写,rw-读写 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Privilege")] public string Privilege{ get; set; } /// /// 路由策略:master-主节点,replication-从节点 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ReadonlyPolicy")] public string[] ReadonlyPolicy{ get; set; } /// /// 子账号状态:1-账号变更中,2-账号有效,-4-账号已删除 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Status")] public long? Status{ 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 + "AccountName", this.AccountName); this.SetParamSimple(map, prefix + "Remark", this.Remark); this.SetParamSimple(map, prefix + "Privilege", this.Privilege); this.SetParamArraySimple(map, prefix + "ReadonlyPolicy.", this.ReadonlyPolicy); this.SetParamSimple(map, prefix + "Status", this.Status); } } }