/* * 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.Cam.V20190116.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class AddUserRequest : AbstractModel { /// /// 子用户用户名 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 子用户备注 /// [JsonProperty("Remark")] public string Remark{ get; set; } /// /// 子用户是否可以登录控制台。传0子用户无法登录控制台,传1子用户可以登录控制台。 /// [JsonProperty("ConsoleLogin")] public ulong? ConsoleLogin{ get; set; } /// /// 是否生成子用户密钥。传0不生成子用户密钥,传1生成子用户密钥。 /// [JsonProperty("UseApi")] public ulong? UseApi{ get; set; } /// /// 子用户控制台登录密码,若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效,如果传空并且上面指定允许登录控制台,则自动生成随机密码,随机密码规则为32位包含大小写字母、数字和特殊字符。 /// [JsonProperty("Password")] public string Password{ get; set; } /// /// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码,传1子用户下次登录控制台需要重置密码。 /// [JsonProperty("NeedResetPassword")] public ulong? NeedResetPassword{ get; set; } /// /// 手机号 /// [JsonProperty("PhoneNum")] public string PhoneNum{ get; set; } /// /// 区号 /// [JsonProperty("CountryCode")] public string CountryCode{ get; set; } /// /// 邮箱 /// [JsonProperty("Email")] public string Email{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Name", this.Name); this.SetParamSimple(map, prefix + "Remark", this.Remark); this.SetParamSimple(map, prefix + "ConsoleLogin", this.ConsoleLogin); this.SetParamSimple(map, prefix + "UseApi", this.UseApi); this.SetParamSimple(map, prefix + "Password", this.Password); this.SetParamSimple(map, prefix + "NeedResetPassword", this.NeedResetPassword); this.SetParamSimple(map, prefix + "PhoneNum", this.PhoneNum); this.SetParamSimple(map, prefix + "CountryCode", this.CountryCode); this.SetParamSimple(map, prefix + "Email", this.Email); } } }