77 lines
3.1 KiB
C#
77 lines
3.1 KiB
C#
/*
|
||
* 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 Target : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 后端服务的监听端口
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Port")]
|
||
public long? Port{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 后端服务的类型,可取:CVM(云服务器)、ENI(弹性网卡);作为入参时,目前本参数暂不生效。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Type")]
|
||
public string Type{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 绑定CVM时需要传入此参数,代表CVM的唯一 ID,可通过 DescribeInstances 接口返回字段中的 InstanceId 字段获取。
|
||
/// 注意:参数 InstanceId 和 EniIp 只能传入一个且必须传入一个。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("InstanceId")]
|
||
public string InstanceId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 后端服务的转发权重,取值范围:[0, 100],默认为 10。
|
||
/// </summary>
|
||
[JsonProperty("Weight")]
|
||
public long? Weight{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 绑定弹性网卡时需要传入此参数,代表弹性网卡的IP,弹性网卡必须先绑定至CVM,然后才能绑定到负载均衡实例。注意:参数 InstanceId 和 EniIp 只能传入一个且必须传入一个。注意:绑定弹性网卡需要先提交工单开白名单使用。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("EniIp")]
|
||
public string EniIp{ 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 + "Port", this.Port);
|
||
this.SetParamSimple(map, prefix + "Type", this.Type);
|
||
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
|
||
this.SetParamSimple(map, prefix + "Weight", this.Weight);
|
||
this.SetParamSimple(map, prefix + "EniIp", this.EniIp);
|
||
}
|
||
}
|
||
}
|
||
|