Files
g.hnyhua.cn/TencentCloud/Cam/V20190116/Models/AddUserRequest.cs
2026-02-07 15:48:27 +08:00

100 lines
3.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 子用户用户名
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 子用户备注
/// </summary>
[JsonProperty("Remark")]
public string Remark{ get; set; }
/// <summary>
/// 子用户是否可以登录控制台。传0子用户无法登录控制台传1子用户可以登录控制台。
/// </summary>
[JsonProperty("ConsoleLogin")]
public ulong? ConsoleLogin{ get; set; }
/// <summary>
/// 是否生成子用户密钥。传0不生成子用户密钥传1生成子用户密钥。
/// </summary>
[JsonProperty("UseApi")]
public ulong? UseApi{ get; set; }
/// <summary>
/// 子用户控制台登录密码若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效如果传空并且上面指定允许登录控制台则自动生成随机密码随机密码规则为32位包含大小写字母、数字和特殊字符。
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码传1子用户下次登录控制台需要重置密码。
/// </summary>
[JsonProperty("NeedResetPassword")]
public ulong? NeedResetPassword{ get; set; }
/// <summary>
/// 手机号
/// </summary>
[JsonProperty("PhoneNum")]
public string PhoneNum{ get; set; }
/// <summary>
/// 区号
/// </summary>
[JsonProperty("CountryCode")]
public string CountryCode{ get; set; }
/// <summary>
/// 邮箱
/// </summary>
[JsonProperty("Email")]
public string Email{ 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 + "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);
}
}
}