Source code for jdcloud_sdk.services.vpc.models.Subnet

# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# 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.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


[docs]class Subnet(object): def __init__(self, subnetId=None, subnetName=None, vpcId=None, addressPrefix=None, availableIpCount=None, ipMaskLen=None, description=None, routeTableId=None, aclId=None, startIp=None, endIp=None, createdTime=None, subnetType=None, az=None, publicSubnet=None, domainNames=None, domainNameServers=None): """ :param subnetId: (Optional) Subnet的Id :param subnetName: (Optional) 子网名称 :param vpcId: (Optional) 子网所属VPC的Id :param addressPrefix: (Optional) 子网网段,vpc内子网网段不能重叠,cidr的取值范围:10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间,如果VPC含有Cidr,则必须为VPC所在Cidr的子网 :param availableIpCount: (Optional) 子网可用ip数量 :param ipMaskLen: (Optional) 子网内预留网段掩码长度,此网段IP地址按照单个申请,子网内其余部分IP地址以网段形式分配。此参数非必选,缺省值为0,代表子网内所有IP地址都按照单个申请(范围是[max{24, 子网掩码}, 28]) :param description: (Optional) 子网描述信息 :param routeTableId: (Optional) 子网关联的路由表Id :param aclId: (Optional) 子网关联的acl Id :param startIp: (Optional) 子网的起始地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 :param endIp: (Optional) 子网的结束地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 :param createdTime: (Optional) 子网创建时间 :param subnetType: (Optional) 子网类型,取值:standard(标准子网),edge(边缘子网) :param az: (Optional) 子网可用区 :param publicSubnet: (Optional) 子网是否为外部子网(即子网路由表中存在下一跳为internet的路由)。true表示外部子网,false表示内部子网 :param domainNames: (Optional) 域名后缀,不限制个数。总长度最长254个字符,仅支持字母,数字,中划线,下划线和点。 :param domainNameServers: (Optional) 域名服务器地址。最多支持5个IPv4地址,不同IPv4地址使用逗号分隔。如不输入,默认使用京东云默认DNS域名服务器地址。如不添加默认DNS域名服务器,可能会导致您无法访问京东云云上基础服务,请谨慎操作 """ self.subnetId = subnetId self.subnetName = subnetName self.vpcId = vpcId self.addressPrefix = addressPrefix self.availableIpCount = availableIpCount self.ipMaskLen = ipMaskLen self.description = description self.routeTableId = routeTableId self.aclId = aclId self.startIp = startIp self.endIp = endIp self.createdTime = createdTime self.subnetType = subnetType self.az = az self.publicSubnet = publicSubnet self.domainNames = domainNames self.domainNameServers = domainNameServers