/
BriefInstance.go
87 lines (63 loc) · 2.94 KB
/
BriefInstance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// 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.
package models
type BriefInstance struct {
/* 云主机ID。 (Optional) */
InstanceId string `json:"instanceId"`
/* 云主机名称。 (Optional) */
InstanceName string `json:"instanceName"`
/* 实例规格。 (Optional) */
InstanceType string `json:"instanceType"`
/* 主网卡所属VPC的ID。 (Optional) */
VpcId string `json:"vpcId"`
/* 主网卡所属子网的ID。 (Optional) */
SubnetId string `json:"subnetId"`
/* 主网卡主内网IP地址。 (Optional) */
PrivateIpAddress string `json:"privateIpAddress"`
/* 云主机状态,参考 [云主机状态](https://docs.jdcloud.com/virtual-machines/api/vm_status)。 (Optional) */
Status string `json:"status"`
/* 云主机描述。 (Optional) */
Description string `json:"description"`
/* 云主机使用的镜像ID。 (Optional) */
ImageId string `json:"imageId"`
/* 系统盘配置。 (Optional) */
SystemDisk BriefInstanceDiskAttachment `json:"systemDisk"`
/* 数据盘配置列表。 (Optional) */
DataDisks []BriefInstanceDiskAttachment `json:"dataDisks"`
/* 主网卡配置。 (Optional) */
PrimaryNetworkInterface BriefInstanceNetworkInterfaceAttachment `json:"primaryNetworkInterface"`
/* 辅助网卡配置列表。 (Optional) */
SecondaryNetworkInterfaces []BriefInstanceNetworkInterfaceAttachment `json:"secondaryNetworkInterfaces"`
/* 云主机实例的创建时间。 (Optional) */
LaunchTime string `json:"launchTime"`
/* 云主机所在可用区。 (Optional) */
Az string `json:"az"`
/* 云主机使用的密钥对名称。 (Optional) */
KeyNames []string `json:"keyNames"`
/* 高可用组中的错误域。 (Optional) */
FaultDomain string `json:"faultDomain"`
/* 关机模式,只支持云盘做系统盘的按配置计费云主机。
`keepCharging`:关机后继续计费。
`stopCharging`:关机后停止计费。
(Optional) */
ChargeOnStopped string `json:"chargeOnStopped"`
/* 云主机所属的专有宿主机池。 (Optional) */
DedicatedPoolId string `json:"dedicatedPoolId"`
/* 云主机所属的专有宿主机ID。 (Optional) */
DedicatedHostId string `json:"dedicatedHostId"`
/* 虚机CPU拓扑 (Optional) */
CpuTopology CpuTopology `json:"cpuTopology"`
}