DBInstance.go 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. type DBInstance struct {
  19. /* 实例ID (Optional) */
  20. InstanceId string `json:"instanceId"`
  21. /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
  22. InstanceName string `json:"instanceName"`
  23. /* 实例类别,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  24. InstanceType string `json:"instanceType"`
  25. /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- 仅支持MySQL,Percona,MariaDB, SQL Server (Optional) */
  26. InstanceStorageType string `json:"instanceStorageType"`
  27. /* 实例数据加密. false:不加密; true:加密 (Optional) */
  28. StorageEncrypted bool `json:"storageEncrypted"`
  29. /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  30. Engine string `json:"engine"`
  31. /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  32. EngineVersion string `json:"engineVersion"`
  33. /* 实例规格代码 (Optional) */
  34. InstanceClass string `json:"instanceClass"`
  35. /* 磁盘,单位GB (Optional) */
  36. InstanceStorageGB int `json:"instanceStorageGB"`
  37. /* CPU核数 (Optional) */
  38. InstanceCPU int `json:"instanceCPU"`
  39. /* 内存,单位MB (Optional) */
  40. InstanceMemoryMB int `json:"instanceMemoryMB"`
  41. /* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
  42. RegionId string `json:"regionId"`
  43. /* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
  44. AzId []string `json:"azId"`
  45. /* VPC的ID (Optional) */
  46. VpcId string `json:"vpcId"`
  47. /* 子网的ID (Optional) */
  48. SubnetId string `json:"subnetId"`
  49. /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
  50. InstanceStatus string `json:"instanceStatus"`
  51. /* 实例公网域名<br>- 仅支持MySQL (Optional) */
  52. PublicDomainName string `json:"publicDomainName"`
  53. /* 实例内网域名<br>- 仅支持MySQL (Optional) */
  54. InternalDomainName string `json:"internalDomainName"`
  55. /* 实例创建时间 (Optional) */
  56. CreateTime string `json:"createTime"`
  57. /* 实例跨地域备份服务开启相关信息 (Optional) */
  58. BackupSynchronicity []BackupSynchronicityAbstract `json:"backupSynchronicity"`
  59. /* 计费配置 (Optional) */
  60. Charge charge.Charge `json:"charge"`
  61. /* 标签信息 (Optional) */
  62. Tags []Tag `json:"tags"`
  63. /* MySQL、PostgreSQL只读实例对应的主实例ID (Optional) */
  64. SourceInstanceId string `json:"sourceInstanceId"`
  65. /* 应用访问端口<br>- 仅支持MySQL (Optional) */
  66. InstancePort string `json:"instancePort"`
  67. }