Instance.go 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Copyright 2018 JDCLOUD.COM
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // NOTE: This class is auto generated by the jdcloud code generator program.
  16. package models
  17. import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
  18. import disk "github.com/jdcloud-api/jdcloud-sdk-go/services/disk/models"
  19. type Instance struct {
  20. /* 云主机ID (Optional) */
  21. InstanceId string `json:"instanceId"`
  22. /* 云主机名称 (Optional) */
  23. InstanceName string `json:"instanceName"`
  24. /* 云主机hostname (Optional) */
  25. Hostname string `json:"hostname"`
  26. /* 实例规格 (Optional) */
  27. InstanceType string `json:"instanceType"`
  28. /* 主网卡所属VPC的ID (Optional) */
  29. VpcId string `json:"vpcId"`
  30. /* 主网卡所属子网的ID (Optional) */
  31. SubnetId string `json:"subnetId"`
  32. /* 主网卡主IP地址 (Optional) */
  33. PrivateIpAddress string `json:"privateIpAddress"`
  34. /* 主网卡主IP绑定弹性IP的ID (Optional) */
  35. ElasticIpId string `json:"elasticIpId"`
  36. /* 主网卡主IP绑定弹性IP的地址 (Optional) */
  37. ElasticIpAddress string `json:"elasticIpAddress"`
  38. /* 云主机状态,<a href="http://docs.jdcloud.com/virtual-machines/api/vm_status">参考云主机状态</a> (Optional) */
  39. Status string `json:"status"`
  40. /* 云主机描述 (Optional) */
  41. Description string `json:"description"`
  42. /* 镜像ID (Optional) */
  43. ImageId string `json:"imageId"`
  44. /* 系统盘配置 (Optional) */
  45. SystemDisk InstanceDiskAttachment `json:"systemDisk"`
  46. /* 数据盘配置 (Optional) */
  47. DataDisks []InstanceDiskAttachment `json:"dataDisks"`
  48. /* 主网卡配置 (Optional) */
  49. PrimaryNetworkInterface InstanceNetworkInterfaceAttachment `json:"primaryNetworkInterface"`
  50. /* 辅助网卡配置 (Optional) */
  51. SecondaryNetworkInterfaces []InstanceNetworkInterfaceAttachment `json:"secondaryNetworkInterfaces"`
  52. /* 创建时间 (Optional) */
  53. LaunchTime string `json:"launchTime"`
  54. /* 云主机所在可用区 (Optional) */
  55. Az string `json:"az"`
  56. /* 密钥对名称 (Optional) */
  57. KeyNames []string `json:"keyNames"`
  58. /* 计费信息 (Optional) */
  59. Charge charge.Charge `json:"charge"`
  60. /* 高可用组,如果创建云主机使用了高可用组,此处可展示高可用组名称 (Optional) */
  61. Ag Ag `json:"ag"`
  62. /* 高可用组中的错误域 (Optional) */
  63. FaultDomain string `json:"faultDomain"`
  64. /* Tag信息 (Optional) */
  65. Tags []disk.Tag `json:"tags"`
  66. /* 关机模式,只支持云盘做系统盘的按配置计费云主机。keepCharging:关机后继续计费;stopCharging:关机后停止计费。 (Optional) */
  67. ChargeOnStopped string `json:"chargeOnStopped"`
  68. /* 策略信息 (Optional) */
  69. Policies []Policy `json:"policies"`
  70. }