/* * 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.Vpc.V20170312.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class NetworkInterface : AbstractModel { /// /// 弹性网卡实例ID,例如:eni-f1xjkw1b。 /// [JsonProperty("NetworkInterfaceId")] public string NetworkInterfaceId{ get; set; } /// /// 弹性网卡名称。 /// [JsonProperty("NetworkInterfaceName")] public string NetworkInterfaceName{ get; set; } /// /// 弹性网卡描述。 /// [JsonProperty("NetworkInterfaceDescription")] public string NetworkInterfaceDescription{ get; set; } /// /// 子网实例ID。 /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// VPC实例ID。 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 绑定的安全组。 /// [JsonProperty("GroupSet")] public string[] GroupSet{ get; set; } /// /// 是否是主网卡。 /// [JsonProperty("Primary")] public bool? Primary{ get; set; } /// /// MAC地址。 /// [JsonProperty("MacAddress")] public string MacAddress{ get; set; } /// /// 弹性网卡状态: ///
  • `PENDING`:创建中
  • ///
  • `AVAILABLE`:可用的
  • ///
  • `ATTACHING`:绑定中
  • ///
  • `DETACHING`:解绑中
  • ///
  • `DELETING`:删除中
  • ///
    [JsonProperty("State")] public string State{ get; set; } /// /// 内网IP信息。 /// [JsonProperty("PrivateIpAddressSet")] public PrivateIpAddressSpecification[] PrivateIpAddressSet{ get; set; } /// /// 绑定的云服务器对象。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Attachment")] public NetworkInterfaceAttachment Attachment{ get; set; } /// /// 可用区。 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 创建时间。 /// [JsonProperty("CreatedTime")] public string CreatedTime{ get; set; } /// /// `IPv6`地址列表。 /// [JsonProperty("Ipv6AddressSet")] public Ipv6Address[] Ipv6AddressSet{ get; set; } /// /// 标签键值对。 /// [JsonProperty("TagSet")] public Tag[] TagSet{ get; set; } /// /// 网卡类型。0 - 弹性网卡;1 - evm弹性网卡。 /// [JsonProperty("EniType")] public ulong? EniType{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "NetworkInterfaceId", this.NetworkInterfaceId); this.SetParamSimple(map, prefix + "NetworkInterfaceName", this.NetworkInterfaceName); this.SetParamSimple(map, prefix + "NetworkInterfaceDescription", this.NetworkInterfaceDescription); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamArraySimple(map, prefix + "GroupSet.", this.GroupSet); this.SetParamSimple(map, prefix + "Primary", this.Primary); this.SetParamSimple(map, prefix + "MacAddress", this.MacAddress); this.SetParamSimple(map, prefix + "State", this.State); this.SetParamArrayObj(map, prefix + "PrivateIpAddressSet.", this.PrivateIpAddressSet); this.SetParamObj(map, prefix + "Attachment.", this.Attachment); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); this.SetParamArrayObj(map, prefix + "Ipv6AddressSet.", this.Ipv6AddressSet); this.SetParamArrayObj(map, prefix + "TagSet.", this.TagSet); this.SetParamSimple(map, prefix + "EniType", this.EniType); } } }