# 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 NetworkInterface(object):
def __init__(self, networkInterfaceName=None, networkInterfaceId=None, azType=None, az=None, role=None, macAddress=None, vpcId=None, subnetId=None, networkSecurityGroupIds=None, sanityCheck=None, primaryIp=None, secondaryIps=None, secondaryCidrs=None, instanceType=None, instanceId=None, instanceOwnerId=None, deviceIndex=None, description=None, attachmentStatus=None, networkInterfaceStatus=None, createdTime=None):
"""
:param networkInterfaceName: (Optional) 弹性网卡名称
:param networkInterfaceId: (Optional) 弹性网卡ID
:param azType: (Optional) 网卡所在az类型,取值:standard(标准Az),edge(边缘Az)
:param az: (Optional) 网卡所在Az, 标准为"", 边缘为边缘az
:param role: (Optional) 网卡角色,取值范围:Primary(主网卡)、Secondary(辅助网卡)
:param macAddress: (Optional) 以太网地址
:param vpcId: (Optional) 虚拟网络ID
:param subnetId: (Optional) 子网ID
:param networkSecurityGroupIds: (Optional) 安全组ID列表
:param sanityCheck: (Optional) 源和目标IP地址校验,取值为0或者1
:param primaryIp: (Optional) 网卡主IP
:param secondaryIps: (Optional) 网卡附属IP列表
:param secondaryCidrs: (Optional) 网卡附属IP网段
:param instanceType: (Optional) 关联实例类型,取值范围:vm
:param instanceId: (Optional) 关联实例ID
:param instanceOwnerId: (Optional) 实例所属的账号
:param deviceIndex: (Optional) 网卡在实例上的设备索引号,取值范围:[0,8],0:辅助网卡未绑定设备,1:主网卡,2-8:辅助网卡已绑定设备
:param description: (Optional) 网卡描述信息
:param attachmentStatus: (Optional) 弹性网卡绑定实例状态,attached(已绑定)、detached(未绑定)
:param networkInterfaceStatus: (Optional) 弹性网卡可用状态,enabled(启用)、disabled(停用)
:param createdTime: (Optional) 弹性网卡创建时间
"""
self.networkInterfaceName = networkInterfaceName
self.networkInterfaceId = networkInterfaceId
self.azType = azType
self.az = az
self.role = role
self.macAddress = macAddress
self.vpcId = vpcId
self.subnetId = subnetId
self.networkSecurityGroupIds = networkSecurityGroupIds
self.sanityCheck = sanityCheck
self.primaryIp = primaryIp
self.secondaryIps = secondaryIps
self.secondaryCidrs = secondaryCidrs
self.instanceType = instanceType
self.instanceId = instanceId
self.instanceOwnerId = instanceOwnerId
self.deviceIndex = deviceIndex
self.description = description
self.attachmentStatus = attachmentStatus
self.networkInterfaceStatus = networkInterfaceStatus
self.createdTime = createdTime