DBInstanceSpec.go 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 DBInstanceSpec struct {
  19. /* 实例名,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
  20. InstanceName *string `json:"instanceName"`
  21. /* 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
  22. Engine string `json:"engine"`
  23. /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
  24. EngineVersion string `json:"engineVersion"`
  25. /* 实例规格代码,可以查看文档[MySQL 实例规格](../Instance-Specifications/Instance-Specifications-MySQL.md)、[SQL Server实例规格](../Instance-Specifications/Instance-Specifications-SQLServer.md) */
  26. InstanceClass string `json:"instanceClass"`
  27. /* 磁盘大小,单位GB,可以查看文档[MySQL 实例规格](../Instance-Specifications/Instance-Specifications-MySQL.md)、[SQL Server实例规格](../Instance-Specifications/Instance-Specifications-SQLServer.md) */
  28. InstanceStorageGB int `json:"instanceStorageGB"`
  29. /* 可用区ID, 第一个ID必须为主实例所在的可用区。如两个可用区一样,也需输入两个azId */
  30. AzId []string `json:"azId"`
  31. /* VPC的ID */
  32. VpcId string `json:"vpcId"`
  33. /* 子网ID */
  34. SubnetId string `json:"subnetId"`
  35. /* 参数组ID, 缺省系统会创建一个默认参数组<br>- 仅支持MySQL (Optional) */
  36. ParameterGroup *string `json:"parameterGroup"`
  37. /* 计费规格,包括计费类型,计费周期等 */
  38. ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
  39. /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md), 缺省值为:LOCAL_SSD<br>- 仅支持MySQL (Optional) */
  40. InstanceStorageType *string `json:"instanceStorageType"`
  41. /* 应用访问端口,支持的端口范围:1150~5999。MySQL、Percona、MariaDB的默认值为 3306;SQL SQL Server的默认值为1433,不支持5022;PostgreSQL的默认端口号为5432; (Optional) */
  42. InstancePort *string `json:"instancePort"`
  43. /* 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密,true:加密,缺省为false<br>- 仅支持MySQL (Optional) */
  44. StorageEncrypted *bool `json:"storageEncrypted"`
  45. /* 实例的高可用架构。standalone:单机,cluster:主备双机架构,缺省为cluster<br>- 仅支持SQL Server (Optional) */
  46. InstanceType *string `json:"instanceType"`
  47. }