Files
g.hnyhua.cn/TencentCloud/As/V20180419/Models/HostNameSettings.cs
2026-02-07 15:48:27 +08:00

58 lines
2.5 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.As.V20180419.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class HostNameSettings : AbstractModel
{
/// <summary>
/// 云服务器的主机名。
/// <br><li> 点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。
/// <br><li> 不支持 Windows 实例。
/// <br><li> 其他类型Linux 等)实例:字符长度为[2, 40],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("HostName")]
public string HostName{ get; set; }
/// <summary>
/// 云服务器主机名的风格,取值范围包括 ORIGINAL 和 UNIQUE默认为 ORIGINAL。
/// <br><li> ORIGINALAS 直接将入参中所填的 HostName 传递给 CVMCVM 可能会对 HostName 追加序列号,伸缩组中实例的 HostName 会出现冲突的情况。
/// <br><li> UNIQUE入参所填的 HostName 相当于主机名前缀AS 和 CVM 会对其进行拓展,伸缩组中实例的 HostName 可以保证唯一。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("HostNameStyle")]
public string HostNameStyle{ 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 + "HostName", this.HostName);
this.SetParamSimple(map, prefix + "HostNameStyle", this.HostNameStyle);
}
}
}