Files
g.hnyhua.cn/TencentCloud/Batch/V20170312/Models/LoginSettings.cs
2026-02-07 15:48:27 +08:00

58 lines
2.8 KiB
C#
Raw 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class LoginSettings : AbstractModel
{
/// <summary>
/// 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到16位至少包括两项[a-zA-Z]、[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? \/ ]中的特殊符号。<br><li>Windows实例密码必须12到16位至少包括三项[a-z][A-Z][0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? \/]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 密钥ID列表。关联密钥后就可以通过对应的私钥来访问实例KeyId可通过接口DescribeKeyPairs获取密钥与密码不能同时指定同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。
/// </summary>
[JsonProperty("KeyIds")]
public string[] KeyIds{ get; set; }
/// <summary>
/// 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围<br><li>TRUE表示保持镜像的登录设置<br><li>FALSE表示不保持镜像的登录设置<br><br>默认取值FALSE。
/// </summary>
[JsonProperty("KeepImageLogin")]
public string KeepImageLogin{ 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 + "Password", this.Password);
this.SetParamArraySimple(map, prefix + "KeyIds.", this.KeyIds);
this.SetParamSimple(map, prefix + "KeepImageLogin", this.KeepImageLogin);
}
}
}