/* * 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.Bmvpc.V20180625.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SubnetInfo : AbstractModel { /// /// 私有网络的唯一ID。 /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// VPC的名称。 /// [JsonProperty("VpcName")] public string VpcName{ get; set; } /// /// VPC的CIDR。 /// [JsonProperty("VpcCidrBlock")] public string VpcCidrBlock{ get; set; } /// /// 私有网络的唯一ID /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 子网名称。 /// [JsonProperty("SubnetName")] public string SubnetName{ get; set; } /// /// 子网CIDR。 /// [JsonProperty("CidrBlock")] public string CidrBlock{ get; set; } /// /// 子网类型。0: 黑石物理机子网; 6: ccs子网; 7 Docker子网; 8: 虚拟机子网 /// [JsonProperty("Type")] public ulong? Type{ get; set; } /// /// 子网可用区ID。 /// [JsonProperty("ZoneId")] public ulong? ZoneId{ get; set; } /// /// 子网物理机的个数 /// [JsonProperty("CpmNum")] public ulong? CpmNum{ get; set; } /// /// 子网的VlanId。 /// [JsonProperty("VlanId")] public ulong? VlanId{ get; set; } /// /// 是否开启分布式网关 ,关闭为0,开启为1。 /// [JsonProperty("DistributedFlag")] public ulong? DistributedFlag{ get; set; } /// /// 是否开启dhcp relay ,关闭为0,开启为1。默认为0。 /// [JsonProperty("DhcpEnable")] public ulong? DhcpEnable{ get; set; } /// /// DHCP SERVER 的IP地址数组。IP地址为相同VPC的子网内分配的IP。 /// [JsonProperty("DhcpServerIp")] public string[] DhcpServerIp{ get; set; } /// /// 预留的IP个数。从该子网的最大可分配IP倒序分配N个IP 用于DHCP 动态分配使用的地址段。 /// [JsonProperty("IpReserve")] public ulong? IpReserve{ get; set; } /// /// 子网中可用的IP个数 /// [JsonProperty("AvailableIpNum")] public ulong? AvailableIpNum{ get; set; } /// /// 子网中总共的IP个数 /// [JsonProperty("TotalIpNum")] public ulong? TotalIpNum{ get; set; } /// /// 子网创建时间 /// [JsonProperty("SubnetCreateTime")] public string SubnetCreateTime{ get; set; } /// /// 25G子网标识 /// [JsonProperty("IsSmartNic")] public ulong? IsSmartNic{ get; set; } /// /// 子网可用区。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// VPC所在可用区ID /// [JsonProperty("VpcZoneId")] public ulong? VpcZoneId{ get; set; } /// /// VPC所在可用区 /// [JsonProperty("VpcZone")] public string VpcZone{ get; set; } /// /// 是否开启广播,关闭为0,开启为1。 /// [JsonProperty("BroadcastFlag")] public ulong? BroadcastFlag{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "VpcName", this.VpcName); this.SetParamSimple(map, prefix + "VpcCidrBlock", this.VpcCidrBlock); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "SubnetName", this.SubnetName); this.SetParamSimple(map, prefix + "CidrBlock", this.CidrBlock); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamSimple(map, prefix + "ZoneId", this.ZoneId); this.SetParamSimple(map, prefix + "CpmNum", this.CpmNum); this.SetParamSimple(map, prefix + "VlanId", this.VlanId); this.SetParamSimple(map, prefix + "DistributedFlag", this.DistributedFlag); this.SetParamSimple(map, prefix + "DhcpEnable", this.DhcpEnable); this.SetParamArraySimple(map, prefix + "DhcpServerIp.", this.DhcpServerIp); this.SetParamSimple(map, prefix + "IpReserve", this.IpReserve); this.SetParamSimple(map, prefix + "AvailableIpNum", this.AvailableIpNum); this.SetParamSimple(map, prefix + "TotalIpNum", this.TotalIpNum); this.SetParamSimple(map, prefix + "SubnetCreateTime", this.SubnetCreateTime); this.SetParamSimple(map, prefix + "IsSmartNic", this.IsSmartNic); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "VpcZoneId", this.VpcZoneId); this.SetParamSimple(map, prefix + "VpcZone", this.VpcZone); this.SetParamSimple(map, prefix + "BroadcastFlag", this.BroadcastFlag); } } }