Files
g.hnyhua.cn/TencentCloud/Tke/V20180525/Models/ClusterBasicSettings.cs

100 lines
3.6 KiB
C#
Raw Normal View History

/*
* 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.Tke.V20180525.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ClusterBasicSettings : AbstractModel
{
/// <summary>
/// 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64默认取值为ubuntu16.04.1 LTSx86_64
/// </summary>
[JsonProperty("ClusterOs")]
public string ClusterOs{ get; set; }
/// <summary>
/// 集群版本,默认值为1.10.5
/// </summary>
[JsonProperty("ClusterVersion")]
public string ClusterVersion{ get; set; }
/// <summary>
/// 集群名称
/// </summary>
[JsonProperty("ClusterName")]
public string ClusterName{ get; set; }
/// <summary>
/// 集群描述
/// </summary>
[JsonProperty("ClusterDescription")]
public string ClusterDescription{ get; set; }
/// <summary>
/// 私有网络ID形如vpc-xxx。创建托管空集群时必传。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 集群内新增资源所属项目ID。
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
/// </summary>
[JsonProperty("TagSpecification")]
public TagSpecification[] TagSpecification{ get; set; }
/// <summary>
/// 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
/// </summary>
[JsonProperty("OsCustomizeType")]
public string OsCustomizeType{ get; set; }
/// <summary>
/// 是否开启节点的默认安全组(默认: 否Aphla特性)
/// </summary>
[JsonProperty("NeedWorkSecurityGroup")]
public bool? NeedWorkSecurityGroup{ 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 + "ClusterOs", this.ClusterOs);
this.SetParamSimple(map, prefix + "ClusterVersion", this.ClusterVersion);
this.SetParamSimple(map, prefix + "ClusterName", this.ClusterName);
this.SetParamSimple(map, prefix + "ClusterDescription", this.ClusterDescription);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArrayObj(map, prefix + "TagSpecification.", this.TagSpecification);
this.SetParamSimple(map, prefix + "OsCustomizeType", this.OsCustomizeType);
this.SetParamSimple(map, prefix + "NeedWorkSecurityGroup", this.NeedWorkSecurityGroup);
}
}
}