InstanceTemplateData.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. type InstanceTemplateData struct {
  18. /* 实例规格 (Optional) */
  19. InstanceType string `json:"instanceType"`
  20. /* 主网卡所属VPC的ID (Optional) */
  21. VpcId string `json:"vpcId"`
  22. /* 镜像ID (Optional) */
  23. ImageId string `json:"imageId"`
  24. /* 启动模板中是否包含自定义密码,true:包含密码,false:不包含密码 (Optional) */
  25. IncludePassword bool `json:"includePassword"`
  26. /* 系统盘信息 (Optional) */
  27. SystemDisk InstanceTemplateDiskAttachment `json:"systemDisk"`
  28. /* 数据盘信息,本地盘(local类型)做系统盘的云主机可挂载8块数据盘,云硬盘(cloud类型)做系统盘的云主机可挂载7块数据盘。 (Optional) */
  29. DataDisks []InstanceTemplateDiskAttachment `json:"dataDisks"`
  30. /* 主网卡信息 (Optional) */
  31. PrimaryNetworkInterface InstanceTemplateNetworkInterfaceAttachment `json:"primaryNetworkInterface"`
  32. /* 主网卡主IP关联的弹性IP规格 (Optional) */
  33. ElasticIp InstanceTemplateElasticIp `json:"elasticIp"`
  34. /* 密钥对名称;当前只支持一个 (Optional) */
  35. KeyNames []string `json:"keyNames"`
  36. /* 停机不计费的标志, keepCharging(默认):关机后继续计费;stopCharging:关机后停止计费。 (Optional) */
  37. ChargeOnStopped string `json:"chargeOnStopped"`
  38. /* 自动镜像策略ID (Optional) */
  39. AutoImagePolicyId string `json:"autoImagePolicyId"`
  40. /* 是否使用密码 (Optional) */
  41. PasswordAuth string `json:"passwordAuth"`
  42. /* 是否继承镜像密码密钥 (Optional) */
  43. ImageInherit string `json:"imageInherit"`
  44. }