代码修改后的版本,全部提交
This commit is contained in:
104
TencentCloud/Clb/V20180317/Models/Backend.cs
Normal file
104
TencentCloud/Clb/V20180317/Models/Backend.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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.Clb.V20180317.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Backend : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的类型,可取:CVM、ENI(即将支持)
|
||||
/// </summary>
|
||||
[JsonProperty("Type")]
|
||||
public string Type{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的唯一 ID,如 ins-abcd1234
|
||||
/// </summary>
|
||||
[JsonProperty("InstanceId")]
|
||||
public string InstanceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的监听端口
|
||||
/// </summary>
|
||||
[JsonProperty("Port")]
|
||||
public long? Port{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的转发权重,取值范围:[0, 100],默认为 10。
|
||||
/// </summary>
|
||||
[JsonProperty("Weight")]
|
||||
public long? Weight{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的外网 IP
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("PublicIpAddresses")]
|
||||
public string[] PublicIpAddresses{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的内网 IP
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("PrivateIpAddresses")]
|
||||
public string[] PrivateIpAddresses{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务的实例名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("InstanceName")]
|
||||
public string InstanceName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 后端服务被绑定的时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("RegisteredTime")]
|
||||
public string RegisteredTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 弹性网卡唯一ID,如 eni-1234abcd
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("EniId")]
|
||||
public string EniId{ 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 + "Type", this.Type);
|
||||
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
|
||||
this.SetParamSimple(map, prefix + "Port", this.Port);
|
||||
this.SetParamSimple(map, prefix + "Weight", this.Weight);
|
||||
this.SetParamArraySimple(map, prefix + "PublicIpAddresses.", this.PublicIpAddresses);
|
||||
this.SetParamArraySimple(map, prefix + "PrivateIpAddresses.", this.PrivateIpAddresses);
|
||||
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
|
||||
this.SetParamSimple(map, prefix + "RegisteredTime", this.RegisteredTime);
|
||||
this.SetParamSimple(map, prefix + "EniId", this.EniId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user