|
| 1 | +# coding=utf8 |
| 2 | + |
| 3 | +# Copyright 2018 JDCLOUD.COM |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +# NOTE: This class is auto generated by the jdcloud code generator program. |
| 18 | + |
| 19 | + |
| 20 | +class BriefInstance(object): |
| 21 | + |
| 22 | + def __init__(self, instanceId=None, instanceName=None, instanceType=None, vpcId=None, subnetId=None, privateIpAddress=None, status=None, description=None, imageId=None, systemDisk=None, dataDisks=None, primaryNetworkInterface=None, secondaryNetworkInterfaces=None, launchTime=None, az=None, keyNames=None, faultDomain=None, chargeOnStopped=None, dedicatedPoolId=None, dedicatedHostId=None): |
| 23 | + """ |
| 24 | + :param instanceId: (Optional) 云主机ID |
| 25 | + :param instanceName: (Optional) 云主机名称 |
| 26 | + :param instanceType: (Optional) 实例规格 |
| 27 | + :param vpcId: (Optional) 主网卡所属VPC的ID |
| 28 | + :param subnetId: (Optional) 主网卡所属子网的ID |
| 29 | + :param privateIpAddress: (Optional) 主网卡主IP地址 |
| 30 | + :param status: (Optional) 云主机状态,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> |
| 31 | + :param description: (Optional) 云主机描述 |
| 32 | + :param imageId: (Optional) 镜像ID |
| 33 | + :param systemDisk: (Optional) 系统盘配置 |
| 34 | + :param dataDisks: (Optional) 数据盘配置 |
| 35 | + :param primaryNetworkInterface: (Optional) 主网卡配置 |
| 36 | + :param secondaryNetworkInterfaces: (Optional) 辅助网卡配置 |
| 37 | + :param launchTime: (Optional) 创建时间 |
| 38 | + :param az: (Optional) 云主机所在可用区 |
| 39 | + :param keyNames: (Optional) 密钥对名称 |
| 40 | + :param faultDomain: (Optional) 高可用组中的错误域 |
| 41 | + :param chargeOnStopped: (Optional) 关机模式,只支持云盘做系统盘的按配置计费云主机。KeepCharging:关机后继续计费;StopCharging:关机后停止计费。 |
| 42 | + :param dedicatedPoolId: (Optional) 实例所属的专有宿主机池 |
| 43 | + :param dedicatedHostId: (Optional) 专有宿主机ID |
| 44 | + """ |
| 45 | + |
| 46 | + self.instanceId = instanceId |
| 47 | + self.instanceName = instanceName |
| 48 | + self.instanceType = instanceType |
| 49 | + self.vpcId = vpcId |
| 50 | + self.subnetId = subnetId |
| 51 | + self.privateIpAddress = privateIpAddress |
| 52 | + self.status = status |
| 53 | + self.description = description |
| 54 | + self.imageId = imageId |
| 55 | + self.systemDisk = systemDisk |
| 56 | + self.dataDisks = dataDisks |
| 57 | + self.primaryNetworkInterface = primaryNetworkInterface |
| 58 | + self.secondaryNetworkInterfaces = secondaryNetworkInterfaces |
| 59 | + self.launchTime = launchTime |
| 60 | + self.az = az |
| 61 | + self.keyNames = keyNames |
| 62 | + self.faultDomain = faultDomain |
| 63 | + self.chargeOnStopped = chargeOnStopped |
| 64 | + self.dedicatedPoolId = dedicatedPoolId |
| 65 | + self.dedicatedHostId = dedicatedHostId |
0 commit comments