diff --git a/.changelog/3015.txt b/.changelog/3015.txt
new file mode 100644
index 0000000000..8f8fb195cf
--- /dev/null
+++ b/.changelog/3015.txt
@@ -0,0 +1,3 @@
+```release-note:enhancement
+resource/tencentcloud_cynosdb_cluster: support `instance_init_infos`
+```
\ No newline at end of file
diff --git a/go.mod b/go.mod
index 7043fa8be4..d9de0717f6 100644
--- a/go.mod
+++ b/go.mod
@@ -46,10 +46,10 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1034
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1046
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1056
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1058
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.1014
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1058
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu v1.0.335
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dbbrain v1.0.652
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.633
diff --git a/go.sum b/go.sum
index 4dca086491..494eeb1885 100644
--- a/go.sum
+++ b/go.sum
@@ -936,6 +936,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1052 h1:RCs
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1052/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1056 h1:bOSZ7cOXvBe8MCBqDBTtpyKIqx9q6woxqIPK5M9FhNY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1056/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1058 h1:VVv5rEFtGbxEB23V3gJO5pFHEXGlOh9duEWEtNm+w6c=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1058/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
@@ -946,6 +948,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 h1:2egy69S
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762/go.mod h1:1XylIfNUbAzmNqi4XMhwcM3VhmUHdu1OYybOeaJ4sOw=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692 h1:lD44AqXCzkraZiCeMjL7dZmvuyurpyQRKwPHA6Ux5To=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692/go.mod h1:nH1mCLxOm21eqEYORMJ5pifOfHoupCIx8YwMOu9YW2c=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1058 h1:qgni/qIuUYkc5THMbtyGNSNleoac5ffMeM5TErJ9bnA=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1058/go.mod h1:HqoJMWKikraStfU3fj5HRK8linrtr4mfWF03GbOj2j8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dasb v1.0.970 h1:qVIRHgG1twsqF4aVN/x2T2yMRfPpsZBTNefDkqzM06M=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dasb v1.0.970/go.mod h1:NJuuQD4z6vcnsZnC7Tvz2U9hElNS1wroc34UQbZvP2U=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu v1.0.335 h1:D8qrelkK5udv8RzJJIABMzItGIyaZoYnxEVeIsYqiNw=
diff --git a/tencentcloud/services/cynosdb/extension_cynosdb.go b/tencentcloud/services/cynosdb/extension_cynosdb.go
index 821ed50222..c895af0be4 100644
--- a/tencentcloud/services/cynosdb/extension_cynosdb.go
+++ b/tencentcloud/services/cynosdb/extension_cynosdb.go
@@ -377,6 +377,70 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
ConflictsWith: []string{"prarm_template_id"},
Description: "The ID of the parameter template.",
},
+ "instance_init_infos": {
+ Type: schema.TypeList,
+ Optional: true,
+ ForceNew: true,
+ Description: "Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.",
+ Elem: &schema.Resource{
+ Schema: map[string]*schema.Schema{
+ "cpu": {
+ Type: schema.TypeInt,
+ Required: true,
+ ForceNew: true,
+ Description: "CPU of instance.",
+ },
+ "memory": {
+ Type: schema.TypeInt,
+ Required: true,
+ ForceNew: true,
+ Description: "Memory of instance.",
+ },
+ "instance_type": {
+ Type: schema.TypeString,
+ Required: true,
+ ForceNew: true,
+ Description: "Instance type. Value: `rw`, `ro`.",
+ },
+ "instance_count": {
+ Type: schema.TypeInt,
+ Required: true,
+ ForceNew: true,
+ Description: "Instance count. Range: [1, 15].",
+ },
+ "min_ro_count": {
+ Type: schema.TypeInt,
+ Optional: true,
+ ForceNew: true,
+ Description: "Minimum number of Serverless instances. Range [1,15].",
+ },
+ "max_ro_count": {
+ Type: schema.TypeInt,
+ Optional: true,
+ ForceNew: true,
+ Description: "Maximum number of Serverless instances. Range [1,15].",
+ },
+ "min_ro_cpu": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ ForceNew: true,
+ Description: "Minimum Serverless Instance Specifications.",
+ },
+ "max_ro_cpu": {
+ Type: schema.TypeFloat,
+ Optional: true,
+ ForceNew: true,
+ Description: "Maximum Serverless Instance Specifications.",
+ },
+ "device_type": {
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ Description: "Instance machine type. Values: `common`, `exclusive`.",
+ },
+ },
+ },
+ },
"db_mode": {
Type: schema.TypeString,
Optional: true,
diff --git a/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.go b/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.go
index cee22a7e0f..4b3d883687 100644
--- a/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.go
+++ b/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.go
@@ -121,6 +121,50 @@ func resourceTencentCloudCynosdbClusterCreate(d *schema.ResourceData, meta inter
request.ParamTemplateId = helper.IntInt64(v.(int))
}
+ if v, ok := d.GetOk("instance_init_infos"); ok {
+ for _, item := range v.([]interface{}) {
+ value := item.(map[string]interface{})
+ tmpInitInfo := cynosdb.InstanceInitInfo{}
+ if v, ok := value["cpu"]; ok {
+ tmpInitInfo.Cpu = helper.IntInt64(v.(int))
+ }
+
+ if v, ok := value["memory"]; ok {
+ tmpInitInfo.Memory = helper.IntInt64(v.(int))
+ }
+
+ if v, ok := value["instance_type"]; ok {
+ tmpInitInfo.InstanceType = helper.String(v.(string))
+ }
+
+ if v, ok := value["instance_count"]; ok {
+ tmpInitInfo.InstanceCount = helper.IntInt64(v.(int))
+ }
+
+ if v, ok := value["min_ro_count"].(int); ok && v != 0 {
+ tmpInitInfo.MinRoCount = helper.IntInt64(v)
+ }
+
+ if v, ok := value["max_ro_count"].(int); ok && v != 0 {
+ tmpInitInfo.MaxRoCount = helper.IntInt64(v)
+ }
+
+ if v, ok := value["min_ro_cpu"].(float64); ok && v != 0 {
+ tmpInitInfo.MinRoCpu = helper.Float64(v)
+ }
+
+ if v, ok := value["max_ro_cpu"].(float64); ok && v != 0 {
+ tmpInitInfo.MaxRoCpu = helper.Float64(v)
+ }
+
+ if v, ok := value["device_type"].(string); ok && v != "" {
+ tmpInitInfo.DeviceType = helper.String(v)
+ }
+
+ request.InstanceInitInfos = append(request.InstanceInitInfos, &tmpInitInfo)
+ }
+ }
+
isServerless := d.Get("db_mode").(string) == CYNOSDB_SERVERLESS
if v, ok := d.GetOk("instance_cpu_core"); ok {
request.Cpu = helper.IntInt64(v.(int))
@@ -158,8 +202,6 @@ func resourceTencentCloudCynosdbClusterCreate(d *schema.ResourceData, meta inter
}
request.PayMode = &chargeType
- request.InstanceCount = helper.Int64(1)
-
var response *cynosdb.CreateClustersResponse
var err error
err = resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
diff --git a/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.md b/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.md
index db7db26568..e955f12e36 100644
--- a/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.md
+++ b/tencentcloud/services/cynosdb/resource_tc_cynosdb_cluster.md
@@ -44,7 +44,6 @@ resource "tencentcloud_cynosdb_cluster" "example" {
db_type = "MYSQL"
db_version = "5.7"
port = 3306
- storage_limit = 1000
cluster_name = "tf-example"
password = "cynosDB@123"
instance_maintain_duration = 7200
@@ -80,6 +79,22 @@ resource "tencentcloud_cynosdb_cluster" "example" {
tencentcloud_security_group.example.id,
]
+ instance_init_infos {
+ cpu = 2
+ memory = 4
+ instance_type = "rw"
+ instance_count = 1
+ device_type = "common"
+ }
+
+ instance_init_infos {
+ cpu = 2
+ memory = 4
+ instance_type = "ro"
+ instance_count = 1
+ device_type = "exclusive"
+ }
+
tags = {
createBy = "terraform"
}
@@ -146,7 +161,6 @@ resource "tencentcloud_cynosdb_cluster" "example" {
db_type = "MYSQL"
db_version = "8.0"
port = 3306
- storage_limit = 1000
cluster_name = "tf-example"
password = "cynosDB@123"
instance_maintain_duration = 7200
diff --git a/tencentcloud/services/cynosdb/service_tencentcloud_cynosdb.go b/tencentcloud/services/cynosdb/service_tencentcloud_cynosdb.go
index 7336a864b4..2e630506f0 100644
--- a/tencentcloud/services/cynosdb/service_tencentcloud_cynosdb.go
+++ b/tencentcloud/services/cynosdb/service_tencentcloud_cynosdb.go
@@ -1649,48 +1649,48 @@ func (me *CynosdbService) DescribeCynosdbRollbackTimeRangeByFilter(ctx context.C
return
}
-func (me *CynosdbService) DescribeCynosdbRollbackTimeValidityByFilter(ctx context.Context, param map[string]interface{}) (rollbackTimeValidity *cynosdb.DescribeRollbackTimeValidityResponseParams, errRet error) {
- var (
- logId = tccommon.GetLogId(ctx)
- request = cynosdb.NewDescribeRollbackTimeValidityRequest()
- )
-
- defer func() {
- if errRet != nil {
- log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error())
- }
- }()
-
- for k, v := range param {
- if k == "ClusterId" {
- request.ClusterId = v.(*string)
- }
- if k == "ExpectTime" {
- request.ExpectTime = v.(*string)
- }
- if k == "ExpectTimeThresh" {
- request.ExpectTimeThresh = v.(*uint64)
- }
- }
-
- ratelimit.Check(request.GetAction())
-
- response, err := me.client.UseCynosdbClient().DescribeRollbackTimeValidity(request)
- if err != nil {
- errRet = err
- return
- }
-
- log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
-
- if response == nil {
- return
- }
-
- rollbackTimeValidity = response.Response
-
- return
-}
+// func (me *CynosdbService) DescribeCynosdbRollbackTimeValidityByFilter(ctx context.Context, param map[string]interface{}) (rollbackTimeValidity *cynosdb.DescribeRollbackTimeValidityResponseParams, errRet error) {
+// var (
+// logId = tccommon.GetLogId(ctx)
+// request = cynosdb.NewDescribeRollbackTimeValidityRequest()
+// )
+
+// defer func() {
+// if errRet != nil {
+// log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error())
+// }
+// }()
+
+// for k, v := range param {
+// if k == "ClusterId" {
+// request.ClusterId = v.(*string)
+// }
+// if k == "ExpectTime" {
+// request.ExpectTime = v.(*string)
+// }
+// if k == "ExpectTimeThresh" {
+// request.ExpectTimeThresh = v.(*uint64)
+// }
+// }
+
+// ratelimit.Check(request.GetAction())
+
+// response, err := me.client.UseCynosdbClient().DescribeRollbackTimeValidity(request)
+// if err != nil {
+// errRet = err
+// return
+// }
+
+// log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
+
+// if response == nil {
+// return
+// }
+
+// rollbackTimeValidity = response.Response
+
+// return
+// }
func (me *CynosdbService) DescribeCynosdbResourcePackageListByFilter(ctx context.Context, param map[string]interface{}) (resourcePackageList []*cynosdb.Package, errRet error) {
var (
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
index 86b05ce4df..6217ee77f1 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
@@ -265,7 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient string)
params["Action"] = request.GetAction()
params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10)
params["Nonce"] = strconv.Itoa(rand.Int())
- params["RequestClient"] = "SDK_GO_1.0.1056"
+ params["RequestClient"] = "SDK_GO_1.0.1058"
if requestClient != "" {
params["RequestClient"] += ": " + requestClient
}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/client.go
index 7a41ebfca3..36a0fcfb9d 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/client.go
@@ -59,8 +59,9 @@ func NewActivateInstanceRequest() (request *ActivateInstanceRequest) {
func NewActivateInstanceResponse() (response *ActivateInstanceResponse) {
response = &ActivateInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ActivateInstance
@@ -129,16 +130,18 @@ func NewAddClusterSlaveZoneRequest() (request *AddClusterSlaveZoneRequest) {
func NewAddClusterSlaveZoneResponse() (response *AddClusterSlaveZoneResponse) {
response = &AddClusterSlaveZoneResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// AddClusterSlaveZone
-// 增加从可用区
+// 本接口(AddClusterSlaveZone)用于对集群开启多可用区部署。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -148,11 +151,12 @@ func (c *Client) AddClusterSlaveZone(request *AddClusterSlaveZoneRequest) (respo
}
// AddClusterSlaveZone
-// 增加从可用区
+// 本接口(AddClusterSlaveZone)用于对集群开启多可用区部署。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -187,12 +191,13 @@ func NewAddInstancesRequest() (request *AddInstancesRequest) {
func NewAddInstancesResponse() (response *AddInstancesResponse) {
response = &AddInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// AddInstances
-// 本接口(AddInstances)用于集群添加实例
+// 本接口(AddInstances)用于集群添加实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -222,7 +227,7 @@ func (c *Client) AddInstances(request *AddInstancesRequest) (response *AddInstan
}
// AddInstances
-// 本接口(AddInstances)用于集群添加实例
+// 本接口(AddInstances)用于集群添加实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -277,12 +282,13 @@ func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsReques
func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse) {
response = &AssociateSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// AssociateSecurityGroups
-// 安全组批量绑定云资源
+// 本接口(AssociateSecurityGroups)用于安全组批量绑定云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -297,7 +303,7 @@ func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest
}
// AssociateSecurityGroups
-// 安全组批量绑定云资源
+// 本接口(AssociateSecurityGroups)用于安全组批量绑定云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -337,12 +343,13 @@ func NewBindClusterResourcePackagesRequest() (request *BindClusterResourcePackag
func NewBindClusterResourcePackagesResponse() (response *BindClusterResourcePackagesResponse) {
response = &BindClusterResourcePackagesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// BindClusterResourcePackages
-// 为集群绑定资源包
+// 本接口(BindClusterResourcePackages)用于为集群绑定资源包。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -359,7 +366,7 @@ func (c *Client) BindClusterResourcePackages(request *BindClusterResourcePackage
}
// BindClusterResourcePackages
-// 为集群绑定资源包
+// 本接口(BindClusterResourcePackages)用于为集群绑定资源包。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -401,12 +408,13 @@ func NewCloseAuditServiceRequest() (request *CloseAuditServiceRequest) {
func NewCloseAuditServiceResponse() (response *CloseAuditServiceResponse) {
response = &CloseAuditServiceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CloseAuditService
-// TDSQL-C for MySQL实例关闭审计服务
+// 本接口(CloseAuditService)用于关闭 TDSQL-C MySQL 实例的数据库审计服务。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -415,7 +423,7 @@ func (c *Client) CloseAuditService(request *CloseAuditServiceRequest) (response
}
// CloseAuditService
-// TDSQL-C for MySQL实例关闭审计服务
+// 本接口(CloseAuditService)用于关闭 TDSQL-C MySQL 实例的数据库审计服务。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -449,12 +457,13 @@ func NewCloseClusterPasswordComplexityRequest() (request *CloseClusterPasswordCo
func NewCloseClusterPasswordComplexityResponse() (response *CloseClusterPasswordComplexityResponse) {
response = &CloseClusterPasswordComplexityResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CloseClusterPasswordComplexity
-// 本接口(CloseClusterPasswordComplexity)用于关闭集群密码复杂度
+// 本接口(CloseClusterPasswordComplexity)用于关闭集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -468,7 +477,7 @@ func (c *Client) CloseClusterPasswordComplexity(request *CloseClusterPasswordCom
}
// CloseClusterPasswordComplexity
-// 本接口(CloseClusterPasswordComplexity)用于关闭集群密码复杂度
+// 本接口(CloseClusterPasswordComplexity)用于关闭集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -507,12 +516,13 @@ func NewCloseProxyRequest() (request *CloseProxyRequest) {
func NewCloseProxyResponse() (response *CloseProxyResponse) {
response = &CloseProxyResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CloseProxy
-// 关闭数据库代理
+// 本接口(CloseProxy)用于关闭集群的数据库代理服务。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -520,14 +530,16 @@ func NewCloseProxyResponse() (response *CloseProxyResponse) {
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CloseProxy(request *CloseProxyRequest) (response *CloseProxyResponse, err error) {
return c.CloseProxyWithContext(context.Background(), request)
}
// CloseProxy
-// 关闭数据库代理
+// 本接口(CloseProxy)用于关闭集群的数据库代理服务。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -535,7 +547,9 @@ func (c *Client) CloseProxy(request *CloseProxyRequest) (response *CloseProxyRes
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CloseProxyWithContext(ctx context.Context, request *CloseProxyRequest) (response *CloseProxyResponse, err error) {
if request == nil {
@@ -553,6 +567,71 @@ func (c *Client) CloseProxyWithContext(ctx context.Context, request *CloseProxyR
return
}
+func NewCloseProxyEndPointRequest() (request *CloseProxyEndPointRequest) {
+ request = &CloseProxyEndPointRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "CloseProxyEndPoint")
+
+
+ return
+}
+
+func NewCloseProxyEndPointResponse() (response *CloseProxyEndPointResponse) {
+ response = &CloseProxyEndPointResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CloseProxyEndPoint
+// 关闭数据库代理连接地址
+//
+// 可能返回的错误码:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) CloseProxyEndPoint(request *CloseProxyEndPointRequest) (response *CloseProxyEndPointResponse, err error) {
+ return c.CloseProxyEndPointWithContext(context.Background(), request)
+}
+
+// CloseProxyEndPoint
+// 关闭数据库代理连接地址
+//
+// 可能返回的错误码:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) CloseProxyEndPointWithContext(ctx context.Context, request *CloseProxyEndPointRequest) (response *CloseProxyEndPointResponse, err error) {
+ if request == nil {
+ request = NewCloseProxyEndPointRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CloseProxyEndPoint require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCloseProxyEndPointResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewCloseWanRequest() (request *CloseWanRequest) {
request = &CloseWanRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -567,12 +646,13 @@ func NewCloseWanRequest() (request *CloseWanRequest) {
func NewCloseWanResponse() (response *CloseWanResponse) {
response = &CloseWanResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CloseWan
-// 本接口(CloseWan)用于关闭外网
+// 本接口(CloseWan)用于关闭外网。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -580,6 +660,7 @@ func NewCloseWanResponse() (response *CloseWanResponse) {
// FAILEDOPERATION_GETNETSERVICEINFOERROR = "FailedOperation.GetNetServiceInfoError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_OPERATEWANFAIL = "InternalError.OperateWanFail"
// INTERNALERROR_SERVICEERROR = "InternalError.ServiceError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
@@ -590,7 +671,7 @@ func (c *Client) CloseWan(request *CloseWanRequest) (response *CloseWanResponse,
}
// CloseWan
-// 本接口(CloseWan)用于关闭外网
+// 本接口(CloseWan)用于关闭外网。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -598,6 +679,7 @@ func (c *Client) CloseWan(request *CloseWanRequest) (response *CloseWanResponse,
// FAILEDOPERATION_GETNETSERVICEINFOERROR = "FailedOperation.GetNetServiceInfoError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_OPERATEWANFAIL = "InternalError.OperateWanFail"
// INTERNALERROR_SERVICEERROR = "InternalError.ServiceError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
@@ -633,12 +715,13 @@ func NewCopyClusterPasswordComplexityRequest() (request *CopyClusterPasswordComp
func NewCopyClusterPasswordComplexityResponse() (response *CopyClusterPasswordComplexityResponse) {
response = &CopyClusterPasswordComplexityResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CopyClusterPasswordComplexity
-// 本接口(CopyClusterPasswordComplexity)用于复制集群密码复杂度
+// 本接口(CopyClusterPasswordComplexity)用于复制集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -653,7 +736,7 @@ func (c *Client) CopyClusterPasswordComplexity(request *CopyClusterPasswordCompl
}
// CopyClusterPasswordComplexity
-// 本接口(CopyClusterPasswordComplexity)用于复制集群密码复杂度
+// 本接口(CopyClusterPasswordComplexity)用于复制集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -693,12 +776,13 @@ func NewCreateAccountsRequest() (request *CreateAccountsRequest) {
func NewCreateAccountsResponse() (response *CreateAccountsResponse) {
response = &CreateAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateAccounts
-// 创建账号
+// 本接口(CreateAccounts)用于创建用户账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -743,7 +827,7 @@ func (c *Client) CreateAccounts(request *CreateAccountsRequest) (response *Creat
}
// CreateAccounts
-// 创建账号
+// 本接口(CreateAccounts)用于创建用户账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -813,8 +897,9 @@ func NewCreateAuditLogFileRequest() (request *CreateAuditLogFileRequest) {
func NewCreateAuditLogFileResponse() (response *CreateAuditLogFileResponse) {
response = &CreateAuditLogFileResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateAuditLogFile
@@ -822,6 +907,10 @@ func NewCreateAuditLogFileResponse() (response *CreateAuditLogFileResponse) {
//
// 可能返回的错误码:
// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_AUDITPOLICYNOTEXISTERROR = "OperationDenied.AuditPolicyNotExistError"
func (c *Client) CreateAuditLogFile(request *CreateAuditLogFileRequest) (response *CreateAuditLogFileResponse, err error) {
return c.CreateAuditLogFileWithContext(context.Background(), request)
}
@@ -831,6 +920,10 @@ func (c *Client) CreateAuditLogFile(request *CreateAuditLogFileRequest) (respons
//
// 可能返回的错误码:
// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_AUDITPOLICYNOTEXISTERROR = "OperationDenied.AuditPolicyNotExistError"
func (c *Client) CreateAuditLogFileWithContext(ctx context.Context, request *CreateAuditLogFileRequest) (response *CreateAuditLogFileResponse, err error) {
if request == nil {
request = NewCreateAuditLogFileRequest()
@@ -861,12 +954,13 @@ func NewCreateAuditRuleTemplateRequest() (request *CreateAuditRuleTemplateReques
func NewCreateAuditRuleTemplateResponse() (response *CreateAuditRuleTemplateResponse) {
response = &CreateAuditRuleTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateAuditRuleTemplate
-// 创建审计规则模版
+// 本接口(CreateAuditRuleTemplate)用于创建审计规则模板。
//
// 可能返回的错误码:
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
@@ -876,7 +970,7 @@ func (c *Client) CreateAuditRuleTemplate(request *CreateAuditRuleTemplateRequest
}
// CreateAuditRuleTemplate
-// 创建审计规则模版
+// 本接口(CreateAuditRuleTemplate)用于创建审计规则模板。
//
// 可能返回的错误码:
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
@@ -911,16 +1005,18 @@ func NewCreateBackupRequest() (request *CreateBackupRequest) {
func NewCreateBackupResponse() (response *CreateBackupResponse) {
response = &CreateBackupResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateBackup
-// 为集群创建手动备份
+// 本接口(CreateBackup)用于为集群创建手动备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
@@ -931,11 +1027,12 @@ func (c *Client) CreateBackup(request *CreateBackupRequest) (response *CreateBac
}
// CreateBackup
-// 为集群创建手动备份
+// 本接口(CreateBackup)用于为集群创建手动备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
@@ -957,6 +1054,59 @@ func (c *Client) CreateBackupWithContext(ctx context.Context, request *CreateBac
return
}
+func NewCreateCLSDeliveryRequest() (request *CreateCLSDeliveryRequest) {
+ request = &CreateCLSDeliveryRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "CreateCLSDelivery")
+
+
+ return
+}
+
+func NewCreateCLSDeliveryResponse() (response *CreateCLSDeliveryResponse) {
+ response = &CreateCLSDeliveryResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateCLSDelivery
+// 本接口(CreateCLSDelivery)用于创建日志投递。
+//
+// 可能返回的错误码:
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_RESOURCEERROR = "ResourceNotFound.ResourceError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) CreateCLSDelivery(request *CreateCLSDeliveryRequest) (response *CreateCLSDeliveryResponse, err error) {
+ return c.CreateCLSDeliveryWithContext(context.Background(), request)
+}
+
+// CreateCLSDelivery
+// 本接口(CreateCLSDelivery)用于创建日志投递。
+//
+// 可能返回的错误码:
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_RESOURCEERROR = "ResourceNotFound.ResourceError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) CreateCLSDeliveryWithContext(ctx context.Context, request *CreateCLSDeliveryRequest) (response *CreateCLSDeliveryResponse, err error) {
+ if request == nil {
+ request = NewCreateCLSDeliveryRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateCLSDelivery require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateCLSDeliveryResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewCreateClusterDatabaseRequest() (request *CreateClusterDatabaseRequest) {
request = &CreateClusterDatabaseRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -971,12 +1121,13 @@ func NewCreateClusterDatabaseRequest() (request *CreateClusterDatabaseRequest) {
func NewCreateClusterDatabaseResponse() (response *CreateClusterDatabaseResponse) {
response = &CreateClusterDatabaseResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateClusterDatabase
-// 创建数据库
+// 本接口(CreateClusterDatabase)用于创建数据库。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -988,7 +1139,7 @@ func (c *Client) CreateClusterDatabase(request *CreateClusterDatabaseRequest) (r
}
// CreateClusterDatabase
-// 创建数据库
+// 本接口(CreateClusterDatabase)用于创建数据库。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -1025,12 +1176,13 @@ func NewCreateClustersRequest() (request *CreateClustersRequest) {
func NewCreateClustersResponse() (response *CreateClustersResponse) {
response = &CreateClustersResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateClusters
-// 创建集群
+// 本接口(CreateClusters)用于新购集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
@@ -1049,6 +1201,7 @@ func NewCreateClustersResponse() (response *CreateClustersResponse) {
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound"
// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
@@ -1062,7 +1215,7 @@ func (c *Client) CreateClusters(request *CreateClustersRequest) (response *Creat
}
// CreateClusters
-// 创建集群
+// 本接口(CreateClusters)用于新购集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
@@ -1081,6 +1234,7 @@ func (c *Client) CreateClusters(request *CreateClustersRequest) (response *Creat
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound"
// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
@@ -1119,15 +1273,17 @@ func NewCreateParamTemplateRequest() (request *CreateParamTemplateRequest) {
func NewCreateParamTemplateResponse() (response *CreateParamTemplateResponse) {
response = &CreateParamTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateParamTemplate
-// 本接口(CreateParamTemplate)用于创建参数模板
+// 本接口(CreateParamTemplate)用于创建参数模板。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -1136,10 +1292,11 @@ func (c *Client) CreateParamTemplate(request *CreateParamTemplateRequest) (respo
}
// CreateParamTemplate
-// 本接口(CreateParamTemplate)用于创建参数模板
+// 本接口(CreateParamTemplate)用于创建参数模板。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -1173,12 +1330,13 @@ func NewCreateProxyRequest() (request *CreateProxyRequest) {
func NewCreateProxyResponse() (response *CreateProxyResponse) {
response = &CreateProxyResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateProxy
-// 创建数据库代理
+// 本接口(CreateProxy)用于开启集群的数据库代理。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1186,13 +1344,16 @@ func NewCreateProxyResponse() (response *CreateProxyResponse) {
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateProxy(request *CreateProxyRequest) (response *CreateProxyResponse, err error) {
return c.CreateProxyWithContext(context.Background(), request)
}
// CreateProxy
-// 创建数据库代理
+// 本接口(CreateProxy)用于开启集群的数据库代理。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1200,6 +1361,9 @@ func (c *Client) CreateProxy(request *CreateProxyRequest) (response *CreateProxy
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateProxyWithContext(ctx context.Context, request *CreateProxyRequest) (response *CreateProxyResponse, err error) {
if request == nil {
@@ -1231,12 +1395,13 @@ func NewCreateProxyEndPointRequest() (request *CreateProxyEndPointRequest) {
func NewCreateProxyEndPointResponse() (response *CreateProxyEndPointResponse) {
response = &CreateProxyEndPointResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateProxyEndPoint
-// 创建数据库代理连接点
+// 本接口(CreateProxyEndPoint)用于创建数据库代理连接点。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1255,7 +1420,7 @@ func (c *Client) CreateProxyEndPoint(request *CreateProxyEndPointRequest) (respo
}
// CreateProxyEndPoint
-// 创建数据库代理连接点
+// 本接口(CreateProxyEndPoint)用于创建数据库代理连接点。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1299,17 +1464,19 @@ func NewCreateResourcePackageRequest() (request *CreateResourcePackageRequest) {
func NewCreateResourcePackageResponse() (response *CreateResourcePackageResponse) {
response = &CreateResourcePackageResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// CreateResourcePackage
-// 新购资源包
+// 本接口(CreateResourcePackage)用于新购资源包。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATESOURCEPACKAGEERROR = "FailedOperation.CreateSourcePackageError"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateResourcePackage(request *CreateResourcePackageRequest) (response *CreateResourcePackageResponse, err error) {
@@ -1317,12 +1484,13 @@ func (c *Client) CreateResourcePackage(request *CreateResourcePackageRequest) (r
}
// CreateResourcePackage
-// 新购资源包
+// 本接口(CreateResourcePackage)用于新购资源包。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATESOURCEPACKAGEERROR = "FailedOperation.CreateSourcePackageError"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateResourcePackageWithContext(ctx context.Context, request *CreateResourcePackageRequest) (response *CreateResourcePackageResponse, err error) {
@@ -1355,12 +1523,13 @@ func NewDeleteAccountsRequest() (request *DeleteAccountsRequest) {
func NewDeleteAccountsResponse() (response *DeleteAccountsResponse) {
response = &DeleteAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteAccounts
-// 删除账号
+// 本接口(DeleteAccounts)用于删除用户账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1381,7 +1550,7 @@ func (c *Client) DeleteAccounts(request *DeleteAccountsRequest) (response *Delet
}
// DeleteAccounts
-// 删除账号
+// 本接口(DeleteAccounts)用于删除用户账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1427,8 +1596,9 @@ func NewDeleteAuditLogFileRequest() (request *DeleteAuditLogFileRequest) {
func NewDeleteAuditLogFileResponse() (response *DeleteAuditLogFileResponse) {
response = &DeleteAuditLogFileResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteAuditLogFile
@@ -1499,12 +1669,13 @@ func NewDeleteAuditRuleTemplatesRequest() (request *DeleteAuditRuleTemplatesRequ
func NewDeleteAuditRuleTemplatesResponse() (response *DeleteAuditRuleTemplatesResponse) {
response = &DeleteAuditRuleTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteAuditRuleTemplates
-// 删除审计规则模版
+// 本接口(DeleteAuditRuleTemplates)用于删除审计规则模板。
//
// 可能返回的错误码:
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
@@ -1513,7 +1684,7 @@ func (c *Client) DeleteAuditRuleTemplates(request *DeleteAuditRuleTemplatesReque
}
// DeleteAuditRuleTemplates
-// 删除审计规则模版
+// 本接口(DeleteAuditRuleTemplates)用于删除审计规则模板。
//
// 可能返回的错误码:
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
@@ -1547,12 +1718,13 @@ func NewDeleteBackupRequest() (request *DeleteBackupRequest) {
func NewDeleteBackupResponse() (response *DeleteBackupResponse) {
response = &DeleteBackupResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteBackup
-// 为集群删除手动备份,无法删除自动备份
+// 本接口(DeleteBackup)用于为集群删除手动备份,无法删除自动备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1568,7 +1740,7 @@ func (c *Client) DeleteBackup(request *DeleteBackupRequest) (response *DeleteBac
}
// DeleteBackup
-// 为集群删除手动备份,无法删除自动备份
+// 本接口(DeleteBackup)用于为集群删除手动备份,无法删除自动备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1595,6 +1767,55 @@ func (c *Client) DeleteBackupWithContext(ctx context.Context, request *DeleteBac
return
}
+func NewDeleteCLSDeliveryRequest() (request *DeleteCLSDeliveryRequest) {
+ request = &DeleteCLSDeliveryRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DeleteCLSDelivery")
+
+
+ return
+}
+
+func NewDeleteCLSDeliveryResponse() (response *DeleteCLSDeliveryResponse) {
+ response = &DeleteCLSDeliveryResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteCLSDelivery
+// 本接口(DeleteCLSDelivery)用于删除日志投递。
+//
+// 可能返回的错误码:
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DeleteCLSDelivery(request *DeleteCLSDeliveryRequest) (response *DeleteCLSDeliveryResponse, err error) {
+ return c.DeleteCLSDeliveryWithContext(context.Background(), request)
+}
+
+// DeleteCLSDelivery
+// 本接口(DeleteCLSDelivery)用于删除日志投递。
+//
+// 可能返回的错误码:
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DeleteCLSDeliveryWithContext(ctx context.Context, request *DeleteCLSDeliveryRequest) (response *DeleteCLSDeliveryResponse, err error) {
+ if request == nil {
+ request = NewDeleteCLSDeliveryRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteCLSDelivery require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteCLSDeliveryResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDeleteClusterDatabaseRequest() (request *DeleteClusterDatabaseRequest) {
request = &DeleteClusterDatabaseRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -1609,15 +1830,18 @@ func NewDeleteClusterDatabaseRequest() (request *DeleteClusterDatabaseRequest) {
func NewDeleteClusterDatabaseResponse() (response *DeleteClusterDatabaseResponse) {
response = &DeleteClusterDatabaseResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteClusterDatabase
-// 删除数据库
+// 本接口(DeleteClusterDatabase)用于删除数据库。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DeleteClusterDatabase(request *DeleteClusterDatabaseRequest) (response *DeleteClusterDatabaseResponse, err error) {
@@ -1625,10 +1849,12 @@ func (c *Client) DeleteClusterDatabase(request *DeleteClusterDatabaseRequest) (r
}
// DeleteClusterDatabase
-// 删除数据库
+// 本接口(DeleteClusterDatabase)用于删除数据库。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DeleteClusterDatabaseWithContext(ctx context.Context, request *DeleteClusterDatabaseRequest) (response *DeleteClusterDatabaseResponse, err error) {
@@ -1661,8 +1887,9 @@ func NewDeleteParamTemplateRequest() (request *DeleteParamTemplateRequest) {
func NewDeleteParamTemplateResponse() (response *DeleteParamTemplateResponse) {
response = &DeleteParamTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DeleteParamTemplate
@@ -1711,12 +1938,13 @@ func NewDescribeAccountAllGrantPrivilegesRequest() (request *DescribeAccountAllG
func NewDescribeAccountAllGrantPrivilegesResponse() (response *DescribeAccountAllGrantPrivilegesResponse) {
response = &DescribeAccountAllGrantPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeAccountAllGrantPrivileges
-// 账号所有权限
+// 本接口(DescribeAccountAllGrantPrivileges)用于查询账号所有可授予的权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1749,6 +1977,7 @@ func NewDescribeAccountAllGrantPrivilegesResponse() (response *DescribeAccountAl
// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
@@ -1759,7 +1988,7 @@ func (c *Client) DescribeAccountAllGrantPrivileges(request *DescribeAccountAllGr
}
// DescribeAccountAllGrantPrivileges
-// 账号所有权限
+// 本接口(DescribeAccountAllGrantPrivileges)用于查询账号所有可授予的权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1792,6 +2021,7 @@ func (c *Client) DescribeAccountAllGrantPrivileges(request *DescribeAccountAllGr
// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
@@ -1827,12 +2057,13 @@ func NewDescribeAccountPrivilegesRequest() (request *DescribeAccountPrivilegesRe
func NewDescribeAccountPrivilegesResponse() (response *DescribeAccountPrivilegesResponse) {
response = &DescribeAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeAccountPrivileges
-// 查询账号已有权限
+// 本接口(DescribeAccountPrivileges)用于查询账号已有权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1876,7 +2107,7 @@ func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesReq
}
// DescribeAccountPrivileges
-// 查询账号已有权限
+// 本接口(DescribeAccountPrivileges)用于查询账号已有权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1945,12 +2176,13 @@ func NewDescribeAccountsRequest() (request *DescribeAccountsRequest) {
func NewDescribeAccountsResponse() (response *DescribeAccountsResponse) {
response = &DescribeAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeAccounts
-// 本接口(DescribeAccounts)用于查询数据库管理账号。
+// 本接口(DescribeAccounts)用于查询数据库账号列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1967,7 +2199,7 @@ func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *D
}
// DescribeAccounts
-// 本接口(DescribeAccounts)用于查询数据库管理账号。
+// 本接口(DescribeAccounts)用于查询数据库账号列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -1995,101 +2227,130 @@ func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *Descr
return
}
-func NewDescribeAuditLogFilesRequest() (request *DescribeAuditLogFilesRequest) {
- request = &DescribeAuditLogFilesRequest{
+func NewDescribeAuditInstanceListRequest() (request *DescribeAuditInstanceListRequest) {
+ request = &DescribeAuditInstanceListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
- request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeAuditLogFiles")
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeAuditInstanceList")
return
}
-func NewDescribeAuditLogFilesResponse() (response *DescribeAuditLogFilesResponse) {
- response = &DescribeAuditLogFilesResponse{
+func NewDescribeAuditInstanceListResponse() (response *DescribeAuditInstanceListResponse) {
+ response = &DescribeAuditInstanceListResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
-// DescribeAuditLogFiles
-// 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
+// DescribeAuditInstanceList
+// 本接口(DescribeAuditInstanceList)用于获取数据库审计的实例列表。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
-// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeAuditLogFiles(request *DescribeAuditLogFilesRequest) (response *DescribeAuditLogFilesResponse, err error) {
- return c.DescribeAuditLogFilesWithContext(context.Background(), request)
+// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+func (c *Client) DescribeAuditInstanceList(request *DescribeAuditInstanceListRequest) (response *DescribeAuditInstanceListResponse, err error) {
+ return c.DescribeAuditInstanceListWithContext(context.Background(), request)
}
-// DescribeAuditLogFiles
-// 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
+// DescribeAuditInstanceList
+// 本接口(DescribeAuditInstanceList)用于获取数据库审计的实例列表。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
-// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeAuditLogFilesWithContext(ctx context.Context, request *DescribeAuditLogFilesRequest) (response *DescribeAuditLogFilesResponse, err error) {
+// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+func (c *Client) DescribeAuditInstanceListWithContext(ctx context.Context, request *DescribeAuditInstanceListRequest) (response *DescribeAuditInstanceListResponse, err error) {
if request == nil {
- request = NewDescribeAuditLogFilesRequest()
+ request = NewDescribeAuditInstanceListRequest()
}
if c.GetCredential() == nil {
- return nil, errors.New("DescribeAuditLogFiles require credential")
+ return nil, errors.New("DescribeAuditInstanceList require credential")
}
request.SetContext(ctx)
- response = NewDescribeAuditLogFilesResponse()
+ response = NewDescribeAuditInstanceListResponse()
err = c.Send(request, response)
return
}
-func NewDescribeAuditLogsRequest() (request *DescribeAuditLogsRequest) {
- request = &DescribeAuditLogsRequest{
+func NewDescribeAuditLogFilesRequest() (request *DescribeAuditLogFilesRequest) {
+ request = &DescribeAuditLogFilesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
- request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeAuditLogs")
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeAuditLogFiles")
return
}
-func NewDescribeAuditLogsResponse() (response *DescribeAuditLogsResponse) {
- response = &DescribeAuditLogsResponse{
+func NewDescribeAuditLogFilesResponse() (response *DescribeAuditLogFilesResponse) {
+ response = &DescribeAuditLogFilesResponse{
BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeAuditLogFiles
+// 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
+//
+// 可能返回的错误码:
+// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+func (c *Client) DescribeAuditLogFiles(request *DescribeAuditLogFilesRequest) (response *DescribeAuditLogFilesResponse, err error) {
+ return c.DescribeAuditLogFilesWithContext(context.Background(), request)
+}
+
+// DescribeAuditLogFiles
+// 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
+//
+// 可能返回的错误码:
+// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+func (c *Client) DescribeAuditLogFilesWithContext(ctx context.Context, request *DescribeAuditLogFilesRequest) (response *DescribeAuditLogFilesResponse, err error) {
+ if request == nil {
+ request = NewDescribeAuditLogFilesRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeAuditLogFiles require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeAuditLogFilesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeAuditLogsRequest() (request *DescribeAuditLogsRequest) {
+ request = &DescribeAuditLogsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
}
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeAuditLogs")
+
+
return
}
+func NewDescribeAuditLogsResponse() (response *DescribeAuditLogsResponse) {
+ response = &DescribeAuditLogsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
// DescribeAuditLogs
// 本接口(DescribeAuditLogs)用于查询数据库审计日志。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error) {
return c.DescribeAuditLogsWithContext(context.Background(), request)
}
@@ -2098,15 +2359,9 @@ func (c *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response
// 本接口(DescribeAuditLogs)用于查询数据库审计日志。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAuditLogsWithContext(ctx context.Context, request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error) {
if request == nil {
request = NewDescribeAuditLogsRequest()
@@ -2137,40 +2392,29 @@ func NewDescribeAuditRuleTemplatesRequest() (request *DescribeAuditRuleTemplates
func NewDescribeAuditRuleTemplatesResponse() (response *DescribeAuditRuleTemplatesResponse) {
response = &DescribeAuditRuleTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeAuditRuleTemplates
-// 查询审计规则模版信息
+// 本接口(DescribeAuditRuleTemplates)用于查询审计规则模板信息。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAuditRuleTemplates(request *DescribeAuditRuleTemplatesRequest) (response *DescribeAuditRuleTemplatesResponse, err error) {
return c.DescribeAuditRuleTemplatesWithContext(context.Background(), request)
}
// DescribeAuditRuleTemplates
-// 查询审计规则模版信息
+// 本接口(DescribeAuditRuleTemplates)用于查询审计规则模板信息。
//
// 可能返回的错误码:
-// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
-// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSINSTANCESTATUSDENIED = "OperationDenied.ServerlessInstanceStatusDenied"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAuditRuleTemplatesWithContext(ctx context.Context, request *DescribeAuditRuleTemplatesRequest) (response *DescribeAuditRuleTemplatesResponse, err error) {
if request == nil {
request = NewDescribeAuditRuleTemplatesRequest()
@@ -2201,8 +2445,9 @@ func NewDescribeAuditRuleWithInstanceIdsRequest() (request *DescribeAuditRuleWit
func NewDescribeAuditRuleWithInstanceIdsResponse() (response *DescribeAuditRuleWithInstanceIdsResponse) {
response = &DescribeAuditRuleWithInstanceIdsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeAuditRuleWithInstanceIds
@@ -2249,12 +2494,13 @@ func NewDescribeBackupConfigRequest() (request *DescribeBackupConfigRequest) {
func NewDescribeBackupConfigResponse() (response *DescribeBackupConfigResponse) {
response = &DescribeBackupConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBackupConfig
-// 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
+// 本接口(DescribeBackupConfig)用于获取指定集群的备份配置信息,包括全量备份时间段、备份文件保留时间。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2270,7 +2516,7 @@ func (c *Client) DescribeBackupConfig(request *DescribeBackupConfigRequest) (res
}
// DescribeBackupConfig
-// 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
+// 本接口(DescribeBackupConfig)用于获取指定集群的备份配置信息,包括全量备份时间段、备份文件保留时间。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2311,12 +2557,13 @@ func NewDescribeBackupDownloadUrlRequest() (request *DescribeBackupDownloadUrlRe
func NewDescribeBackupDownloadUrlResponse() (response *DescribeBackupDownloadUrlResponse) {
response = &DescribeBackupDownloadUrlResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBackupDownloadUrl
-// 此接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
+// 本接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2328,7 +2575,7 @@ func (c *Client) DescribeBackupDownloadUrl(request *DescribeBackupDownloadUrlReq
}
// DescribeBackupDownloadUrl
-// 此接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
+// 本接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2365,17 +2612,20 @@ func NewDescribeBackupListRequest() (request *DescribeBackupListRequest) {
func NewDescribeBackupListResponse() (response *DescribeBackupListResponse) {
response = &DescribeBackupListResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBackupList
-// 查询备份文件列表
+// 本接口(DescribeBackupList)用于查询集群的备份文件列表。
//
// 可能返回的错误码:
+// FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
@@ -2386,12 +2636,14 @@ func (c *Client) DescribeBackupList(request *DescribeBackupListRequest) (respons
}
// DescribeBackupList
-// 查询备份文件列表
+// 本接口(DescribeBackupList)用于查询集群的备份文件列表。
//
// 可能返回的错误码:
+// FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
@@ -2413,6 +2665,55 @@ func (c *Client) DescribeBackupListWithContext(ctx context.Context, request *Des
return
}
+func NewDescribeBinlogConfigRequest() (request *DescribeBinlogConfigRequest) {
+ request = &DescribeBinlogConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeBinlogConfig")
+
+
+ return
+}
+
+func NewDescribeBinlogConfigResponse() (response *DescribeBinlogConfigResponse) {
+ response = &DescribeBinlogConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeBinlogConfig
+// 该接口(DescribeBinlogConfig)用于查询binlog配置
+//
+// 可能返回的错误码:
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+func (c *Client) DescribeBinlogConfig(request *DescribeBinlogConfigRequest) (response *DescribeBinlogConfigResponse, err error) {
+ return c.DescribeBinlogConfigWithContext(context.Background(), request)
+}
+
+// DescribeBinlogConfig
+// 该接口(DescribeBinlogConfig)用于查询binlog配置
+//
+// 可能返回的错误码:
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+func (c *Client) DescribeBinlogConfigWithContext(ctx context.Context, request *DescribeBinlogConfigRequest) (response *DescribeBinlogConfigResponse, err error) {
+ if request == nil {
+ request = NewDescribeBinlogConfigRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeBinlogConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeBinlogConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeBinlogDownloadUrlRequest() (request *DescribeBinlogDownloadUrlRequest) {
request = &DescribeBinlogDownloadUrlRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -2427,12 +2728,13 @@ func NewDescribeBinlogDownloadUrlRequest() (request *DescribeBinlogDownloadUrlRe
func NewDescribeBinlogDownloadUrlResponse() (response *DescribeBinlogDownloadUrlResponse) {
response = &DescribeBinlogDownloadUrlResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBinlogDownloadUrl
-// 此接口(DescribeBinlogDownloadUrl)用于查询Binlog的下载地址。
+// 本接口(DescribeBinlogDownloadUrl)用于查询 Binlog 的下载地址。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2445,7 +2747,7 @@ func (c *Client) DescribeBinlogDownloadUrl(request *DescribeBinlogDownloadUrlReq
}
// DescribeBinlogDownloadUrl
-// 此接口(DescribeBinlogDownloadUrl)用于查询Binlog的下载地址。
+// 本接口(DescribeBinlogDownloadUrl)用于查询 Binlog 的下载地址。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2483,8 +2785,9 @@ func NewDescribeBinlogSaveDaysRequest() (request *DescribeBinlogSaveDaysRequest)
func NewDescribeBinlogSaveDaysResponse() (response *DescribeBinlogSaveDaysResponse) {
response = &DescribeBinlogSaveDaysResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBinlogSaveDays
@@ -2492,7 +2795,9 @@ func NewDescribeBinlogSaveDaysResponse() (response *DescribeBinlogSaveDaysRespon
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -2505,7 +2810,9 @@ func (c *Client) DescribeBinlogSaveDays(request *DescribeBinlogSaveDaysRequest)
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_GETBACKUPSTRATEGYERROR = "FailedOperation.GetBackupStrategyError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -2539,12 +2846,13 @@ func NewDescribeBinlogsRequest() (request *DescribeBinlogsRequest) {
func NewDescribeBinlogsResponse() (response *DescribeBinlogsResponse) {
response = &DescribeBinlogsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeBinlogs
-// 此接口(DescribeBinlogs)用来查询集群Binlog日志列表。
+// 本接口(DescribeBinlogs)用来查询集群 Binlog 日志列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2555,7 +2863,7 @@ func (c *Client) DescribeBinlogs(request *DescribeBinlogsRequest) (response *Des
}
// DescribeBinlogs
-// 此接口(DescribeBinlogs)用来查询集群Binlog日志列表。
+// 本接口(DescribeBinlogs)用来查询集群 Binlog 日志列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -2577,6 +2885,190 @@ func (c *Client) DescribeBinlogsWithContext(ctx context.Context, request *Descri
return
}
+func NewDescribeChangedParamsAfterUpgradeRequest() (request *DescribeChangedParamsAfterUpgradeRequest) {
+ request = &DescribeChangedParamsAfterUpgradeRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeChangedParamsAfterUpgrade")
+
+
+ return
+}
+
+func NewDescribeChangedParamsAfterUpgradeResponse() (response *DescribeChangedParamsAfterUpgradeResponse) {
+ response = &DescribeChangedParamsAfterUpgradeResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeChangedParamsAfterUpgrade
+// 本接口(DescribeChangedParamsAfterUpgrade)用于查询升降配运行参数对比。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeChangedParamsAfterUpgrade(request *DescribeChangedParamsAfterUpgradeRequest) (response *DescribeChangedParamsAfterUpgradeResponse, err error) {
+ return c.DescribeChangedParamsAfterUpgradeWithContext(context.Background(), request)
+}
+
+// DescribeChangedParamsAfterUpgrade
+// 本接口(DescribeChangedParamsAfterUpgrade)用于查询升降配运行参数对比。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeChangedParamsAfterUpgradeWithContext(ctx context.Context, request *DescribeChangedParamsAfterUpgradeRequest) (response *DescribeChangedParamsAfterUpgradeResponse, err error) {
+ if request == nil {
+ request = NewDescribeChangedParamsAfterUpgradeRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeChangedParamsAfterUpgrade require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeChangedParamsAfterUpgradeResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClusterDatabasesRequest() (request *DescribeClusterDatabasesRequest) {
+ request = &DescribeClusterDatabasesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeClusterDatabases")
+
+
+ return
+}
+
+func NewDescribeClusterDatabasesResponse() (response *DescribeClusterDatabasesResponse) {
+ response = &DescribeClusterDatabasesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClusterDatabases
+// 本接口(DescribeClusterDatabases)用于获取集群数据库列表。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
+// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
+// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
+// INTERNALERROR_LISTINSTANCEFAILED = "InternalError.ListInstanceFailed"
+// INTERNALERROR_OPERATEWANFAIL = "InternalError.OperateWanFail"
+// INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport"
+// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETER_ISOLATENOTALLOWED = "InvalidParameter.IsolateNotAllowed"
+// INVALIDPARAMETERVALUE_ACCOUNTEXIST = "InvalidParameterValue.AccountExist"
+// INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound"
+// INVALIDPARAMETERVALUE_FLOWNOTFOUND = "InvalidParameterValue.FlowNotFound"
+// INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
+// INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy"
+// INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
+// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETERVALUE_INTERNALACCOUNT = "InvalidParameterValue.InternalAccount"
+// INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
+// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
+// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
+// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
+// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
+// OPERATIONDENIED_INSTANCESTATUSLIMITERROR = "OperationDenied.InstanceStatusLimitError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterDatabases(request *DescribeClusterDatabasesRequest) (response *DescribeClusterDatabasesResponse, err error) {
+ return c.DescribeClusterDatabasesWithContext(context.Background(), request)
+}
+
+// DescribeClusterDatabases
+// 本接口(DescribeClusterDatabases)用于获取集群数据库列表。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
+// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
+// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
+// INTERNALERROR_LISTINSTANCEFAILED = "InternalError.ListInstanceFailed"
+// INTERNALERROR_OPERATEWANFAIL = "InternalError.OperateWanFail"
+// INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport"
+// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETER_ISOLATENOTALLOWED = "InvalidParameter.IsolateNotAllowed"
+// INVALIDPARAMETERVALUE_ACCOUNTEXIST = "InvalidParameterValue.AccountExist"
+// INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound"
+// INVALIDPARAMETERVALUE_FLOWNOTFOUND = "InvalidParameterValue.FlowNotFound"
+// INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
+// INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy"
+// INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
+// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETERVALUE_INTERNALACCOUNT = "InvalidParameterValue.InternalAccount"
+// INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
+// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
+// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
+// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
+// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
+// OPERATIONDENIED_INSTANCESTATUSLIMITERROR = "OperationDenied.InstanceStatusLimitError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterDatabasesWithContext(ctx context.Context, request *DescribeClusterDatabasesRequest) (response *DescribeClusterDatabasesResponse, err error) {
+ if request == nil {
+ request = NewDescribeClusterDatabasesRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClusterDatabases require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClusterDatabasesResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest) {
request = &DescribeClusterDetailRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -2591,12 +3083,13 @@ func NewDescribeClusterDetailRequest() (request *DescribeClusterDetailRequest) {
func NewDescribeClusterDetailResponse() (response *DescribeClusterDetailResponse) {
response = &DescribeClusterDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterDetail
-// 该接口(DescribeClusterDetail)显示集群详情
+// 该接口(DescribeClusterDetail)用于显示集群详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
@@ -2619,7 +3112,7 @@ func (c *Client) DescribeClusterDetail(request *DescribeClusterDetailRequest) (r
}
// DescribeClusterDetail
-// 该接口(DescribeClusterDetail)显示集群详情
+// 该接口(DescribeClusterDetail)用于显示集群详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
@@ -2667,12 +3160,13 @@ func NewDescribeClusterDetailDatabasesRequest() (request *DescribeClusterDetailD
func NewDescribeClusterDetailDatabasesResponse() (response *DescribeClusterDetailDatabasesResponse) {
response = &DescribeClusterDetailDatabasesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterDetailDatabases
-// 查询数据库列表
+// 本接口(DescribeClusterDetailDatabases)用于查询数据库列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2687,7 +3181,7 @@ func (c *Client) DescribeClusterDetailDatabases(request *DescribeClusterDetailDa
}
// DescribeClusterDetailDatabases
-// 查询数据库列表
+// 本接口(DescribeClusterDetailDatabases)用于查询数据库列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2713,6 +3207,67 @@ func (c *Client) DescribeClusterDetailDatabasesWithContext(ctx context.Context,
return
}
+func NewDescribeClusterInstanceGroupsRequest() (request *DescribeClusterInstanceGroupsRequest) {
+ request = &DescribeClusterInstanceGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeClusterInstanceGroups")
+
+
+ return
+}
+
+func NewDescribeClusterInstanceGroupsResponse() (response *DescribeClusterInstanceGroupsResponse) {
+ response = &DescribeClusterInstanceGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClusterInstanceGroups
+// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterInstanceGroups(request *DescribeClusterInstanceGroupsRequest) (response *DescribeClusterInstanceGroupsResponse, err error) {
+ return c.DescribeClusterInstanceGroupsWithContext(context.Background(), request)
+}
+
+// DescribeClusterInstanceGroups
+// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterInstanceGroupsWithContext(ctx context.Context, request *DescribeClusterInstanceGroupsRequest) (response *DescribeClusterInstanceGroupsResponse, err error) {
+ if request == nil {
+ request = NewDescribeClusterInstanceGroupsRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClusterInstanceGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClusterInstanceGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeClusterInstanceGrpsRequest() (request *DescribeClusterInstanceGrpsRequest) {
request = &DescribeClusterInstanceGrpsRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -2727,12 +3282,13 @@ func NewDescribeClusterInstanceGrpsRequest() (request *DescribeClusterInstanceGr
func NewDescribeClusterInstanceGrpsResponse() (response *DescribeClusterInstanceGrpsResponse) {
response = &DescribeClusterInstanceGrpsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterInstanceGrps
-// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
+// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。 该接口已废弃,推荐使用DescribeClusterInstanceGroups
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2747,7 +3303,7 @@ func (c *Client) DescribeClusterInstanceGrps(request *DescribeClusterInstanceGrp
}
// DescribeClusterInstanceGrps
-// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
+// 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。 该接口已废弃,推荐使用DescribeClusterInstanceGroups
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2787,12 +3343,13 @@ func NewDescribeClusterParamLogsRequest() (request *DescribeClusterParamLogsRequ
func NewDescribeClusterParamLogsResponse() (response *DescribeClusterParamLogsResponse) {
response = &DescribeClusterParamLogsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterParamLogs
-// 本接口(DescribeClusterParamLogs)查询参数修改日志
+// 本接口(DescribeClusterParamLogs)用于查询参数修改记录。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2807,7 +3364,7 @@ func (c *Client) DescribeClusterParamLogs(request *DescribeClusterParamLogsReque
}
// DescribeClusterParamLogs
-// 本接口(DescribeClusterParamLogs)查询参数修改日志
+// 本接口(DescribeClusterParamLogs)用于查询参数修改记录。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2847,12 +3404,13 @@ func NewDescribeClusterParamsRequest() (request *DescribeClusterParamsRequest) {
func NewDescribeClusterParamsResponse() (response *DescribeClusterParamsResponse) {
response = &DescribeClusterParamsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterParams
-// 本接口(DescribeClusterParams)用于查询集群参数
+// 本接口(DescribeClusterParams)用于查询集群参数。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2871,7 +3429,7 @@ func (c *Client) DescribeClusterParams(request *DescribeClusterParamsRequest) (r
}
// DescribeClusterParams
-// 本接口(DescribeClusterParams)用于查询集群参数
+// 本接口(DescribeClusterParams)用于查询集群参数。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -2915,12 +3473,13 @@ func NewDescribeClusterPasswordComplexityRequest() (request *DescribeClusterPass
func NewDescribeClusterPasswordComplexityResponse() (response *DescribeClusterPasswordComplexityResponse) {
response = &DescribeClusterPasswordComplexityResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusterPasswordComplexity
-// 本接口(DescribeClusterPasswordComplexity)用于查看集群密码复杂度详情
+// 本接口(DescribeClusterPasswordComplexity)用于查看集群密码复杂度详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_GETOSSINFOERROR = "FailedOperation.GetOssInfoError"
@@ -2937,7 +3496,7 @@ func (c *Client) DescribeClusterPasswordComplexity(request *DescribeClusterPassw
}
// DescribeClusterPasswordComplexity
-// 本接口(DescribeClusterPasswordComplexity)用于查看集群密码复杂度详情
+// 本接口(DescribeClusterPasswordComplexity)用于查看集群密码复杂度详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_GETOSSINFOERROR = "FailedOperation.GetOssInfoError"
@@ -2965,6 +3524,71 @@ func (c *Client) DescribeClusterPasswordComplexityWithContext(ctx context.Contex
return
}
+func NewDescribeClusterTransparentEncryptInfoRequest() (request *DescribeClusterTransparentEncryptInfoRequest) {
+ request = &DescribeClusterTransparentEncryptInfoRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeClusterTransparentEncryptInfo")
+
+
+ return
+}
+
+func NewDescribeClusterTransparentEncryptInfoResponse() (response *DescribeClusterTransparentEncryptInfoResponse) {
+ response = &DescribeClusterTransparentEncryptInfoResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClusterTransparentEncryptInfo
+// 查询集群透明加密信息
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_GETOSSINFOERROR = "FailedOperation.GetOssInfoError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterTransparentEncryptInfo(request *DescribeClusterTransparentEncryptInfoRequest) (response *DescribeClusterTransparentEncryptInfoResponse, err error) {
+ return c.DescribeClusterTransparentEncryptInfoWithContext(context.Background(), request)
+}
+
+// DescribeClusterTransparentEncryptInfo
+// 查询集群透明加密信息
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_GETOSSINFOERROR = "FailedOperation.GetOssInfoError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeClusterTransparentEncryptInfoWithContext(ctx context.Context, request *DescribeClusterTransparentEncryptInfoRequest) (response *DescribeClusterTransparentEncryptInfoResponse, err error) {
+ if request == nil {
+ request = NewDescribeClusterTransparentEncryptInfoRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClusterTransparentEncryptInfo require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClusterTransparentEncryptInfoResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeClustersRequest() (request *DescribeClustersRequest) {
request = &DescribeClustersRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -2979,12 +3603,13 @@ func NewDescribeClustersRequest() (request *DescribeClustersRequest) {
func NewDescribeClustersResponse() (response *DescribeClustersResponse) {
response = &DescribeClustersResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeClusters
-// 查询集群列表
+// 本接口(DescribeClusters)用于查询集群列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
@@ -3002,7 +3627,7 @@ func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *D
}
// DescribeClusters
-// 查询集群列表
+// 本接口(DescribeClusters)用于查询集群列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
@@ -3045,16 +3670,18 @@ func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequ
func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse) {
response = &DescribeDBSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeDBSecurityGroups
-// 查询实例安全组信息
+// 本接口(DescribeDBSecurityGroups)用于查询实例安全组信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error) {
@@ -3062,11 +3689,12 @@ func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsReque
}
// DescribeDBSecurityGroups
-// 查询实例安全组信息
+// 本接口(DescribeDBSecurityGroups)用于查询实例安全组信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error) {
@@ -3099,12 +3727,13 @@ func NewDescribeFlowRequest() (request *DescribeFlowRequest) {
func NewDescribeFlowResponse() (response *DescribeFlowResponse) {
response = &DescribeFlowResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeFlow
-// 本接口(DescribeFlow)用于查询任务流信息
+// 本接口(DescribeFlow)用于查询任务流信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -3118,7 +3747,7 @@ func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeF
}
// DescribeFlow
-// 本接口(DescribeFlow)用于查询任务流信息
+// 本接口(DescribeFlow)用于查询任务流信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -3127,18 +3756,75 @@ func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeF
// INVALIDPARAMETERVALUE_FLOWNOTFOUND = "InvalidParameterValue.FlowNotFound"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, err error) {
+func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, err error) {
+ if request == nil {
+ request = NewDescribeFlowRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeFlow require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeFlowResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeInstanceCLSLogDeliveryRequest() (request *DescribeInstanceCLSLogDeliveryRequest) {
+ request = &DescribeInstanceCLSLogDeliveryRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeInstanceCLSLogDelivery")
+
+
+ return
+}
+
+func NewDescribeInstanceCLSLogDeliveryResponse() (response *DescribeInstanceCLSLogDeliveryResponse) {
+ response = &DescribeInstanceCLSLogDeliveryResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeInstanceCLSLogDelivery
+// 本接口(DescribeInstanceCLSLogDelivery)用于查询实例日志投递信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeInstanceCLSLogDelivery(request *DescribeInstanceCLSLogDeliveryRequest) (response *DescribeInstanceCLSLogDeliveryResponse, err error) {
+ return c.DescribeInstanceCLSLogDeliveryWithContext(context.Background(), request)
+}
+
+// DescribeInstanceCLSLogDelivery
+// 本接口(DescribeInstanceCLSLogDelivery)用于查询实例日志投递信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeInstanceCLSLogDeliveryWithContext(ctx context.Context, request *DescribeInstanceCLSLogDeliveryRequest) (response *DescribeInstanceCLSLogDeliveryResponse, err error) {
if request == nil {
- request = NewDescribeFlowRequest()
+ request = NewDescribeInstanceCLSLogDeliveryRequest()
}
if c.GetCredential() == nil {
- return nil, errors.New("DescribeFlow require credential")
+ return nil, errors.New("DescribeInstanceCLSLogDelivery require credential")
}
request.SetContext(ctx)
- response = NewDescribeFlowResponse()
+ response = NewDescribeInstanceCLSLogDeliveryResponse()
err = c.Send(request, response)
return
}
@@ -3157,8 +3843,9 @@ func NewDescribeInstanceDetailRequest() (request *DescribeInstanceDetailRequest)
func NewDescribeInstanceDetailResponse() (response *DescribeInstanceDetailResponse) {
response = &DescribeInstanceDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstanceDetail
@@ -3168,6 +3855,7 @@ func NewDescribeInstanceDetailResponse() (response *DescribeInstanceDetailRespon
// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
@@ -3186,6 +3874,7 @@ func (c *Client) DescribeInstanceDetail(request *DescribeInstanceDetailRequest)
// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_OPERATIONNOTSUPPORT = "InternalError.OperationNotSupport"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
@@ -3223,12 +3912,13 @@ func NewDescribeInstanceErrorLogsRequest() (request *DescribeInstanceErrorLogsRe
func NewDescribeInstanceErrorLogsResponse() (response *DescribeInstanceErrorLogsResponse) {
response = &DescribeInstanceErrorLogsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstanceErrorLogs
-// 查询实例错误日志列表
+// 本接口(DescribeInstanceErrorLogs)用于查询实例错误日志列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3236,6 +3926,7 @@ func NewDescribeInstanceErrorLogsResponse() (response *DescribeInstanceErrorLogs
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_VALUENOTFOUND = "InvalidParameterValue.ValueNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeInstanceErrorLogs(request *DescribeInstanceErrorLogsRequest) (response *DescribeInstanceErrorLogsResponse, err error) {
@@ -3243,7 +3934,7 @@ func (c *Client) DescribeInstanceErrorLogs(request *DescribeInstanceErrorLogsReq
}
// DescribeInstanceErrorLogs
-// 查询实例错误日志列表
+// 本接口(DescribeInstanceErrorLogs)用于查询实例错误日志列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3251,6 +3942,7 @@ func (c *Client) DescribeInstanceErrorLogs(request *DescribeInstanceErrorLogsReq
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
// INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_VALUENOTFOUND = "InvalidParameterValue.ValueNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeInstanceErrorLogsWithContext(ctx context.Context, request *DescribeInstanceErrorLogsRequest) (response *DescribeInstanceErrorLogsResponse, err error) {
@@ -3283,12 +3975,13 @@ func NewDescribeInstanceParamsRequest() (request *DescribeInstanceParamsRequest)
func NewDescribeInstanceParamsResponse() (response *DescribeInstanceParamsResponse) {
response = &DescribeInstanceParamsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstanceParams
-// 该接口(DescribeInstanceParams)查询实例参数列表
+// 本接口(DescribeInstanceParams)用于查询实例参数列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3304,7 +3997,7 @@ func (c *Client) DescribeInstanceParams(request *DescribeInstanceParamsRequest)
}
// DescribeInstanceParams
-// 该接口(DescribeInstanceParams)查询实例参数列表
+// 本接口(DescribeInstanceParams)用于查询实例参数列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3345,12 +4038,13 @@ func NewDescribeInstanceSlowQueriesRequest() (request *DescribeInstanceSlowQueri
func NewDescribeInstanceSlowQueriesResponse() (response *DescribeInstanceSlowQueriesResponse) {
response = &DescribeInstanceSlowQueriesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstanceSlowQueries
-// 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
+// 此接口(DescribeInstanceSlowQueries)用于查询实例慢日志详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3362,7 +4056,7 @@ func (c *Client) DescribeInstanceSlowQueries(request *DescribeInstanceSlowQuerie
}
// DescribeInstanceSlowQueries
-// 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
+// 此接口(DescribeInstanceSlowQueries)用于查询实例慢日志详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3399,29 +4093,34 @@ func NewDescribeInstanceSpecsRequest() (request *DescribeInstanceSpecsRequest) {
func NewDescribeInstanceSpecsResponse() (response *DescribeInstanceSpecsResponse) {
response = &DescribeInstanceSpecsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstanceSpecs
-// 本接口(DescribeInstanceSpecs)用于查询实例规格
+// 本接口(DescribeInstanceSpecs)用于查询购买页可购买的实例规格。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeInstanceSpecs(request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error) {
return c.DescribeInstanceSpecsWithContext(context.Background(), request)
}
// DescribeInstanceSpecs
-// 本接口(DescribeInstanceSpecs)用于查询实例规格
+// 本接口(DescribeInstanceSpecs)用于查询购买页可购买的实例规格。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeInstanceSpecsWithContext(ctx context.Context, request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error) {
if request == nil {
@@ -3453,8 +4152,9 @@ func NewDescribeInstancesRequest() (request *DescribeInstancesRequest) {
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse) {
response = &DescribeInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeInstances
@@ -3511,6 +4211,132 @@ func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *Desc
return
}
+func NewDescribeInstancesWithinSameClusterRequest() (request *DescribeInstancesWithinSameClusterRequest) {
+ request = &DescribeInstancesWithinSameClusterRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeInstancesWithinSameCluster")
+
+
+ return
+}
+
+func NewDescribeInstancesWithinSameClusterResponse() (response *DescribeInstancesWithinSameClusterResponse) {
+ response = &DescribeInstancesWithinSameClusterResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeInstancesWithinSameCluster
+// 本接口(DescribeInstancesWithinSameCluster)用于查询同一集群下实例列表
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
+// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeInstancesWithinSameCluster(request *DescribeInstancesWithinSameClusterRequest) (response *DescribeInstancesWithinSameClusterResponse, err error) {
+ return c.DescribeInstancesWithinSameClusterWithContext(context.Background(), request)
+}
+
+// DescribeInstancesWithinSameCluster
+// 本接口(DescribeInstancesWithinSameCluster)用于查询同一集群下实例列表
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
+// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeInstancesWithinSameClusterWithContext(ctx context.Context, request *DescribeInstancesWithinSameClusterRequest) (response *DescribeInstancesWithinSameClusterResponse, err error) {
+ if request == nil {
+ request = NewDescribeInstancesWithinSameClusterRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeInstancesWithinSameCluster require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeInstancesWithinSameClusterResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeIsolatedInstancesRequest() (request *DescribeIsolatedInstancesRequest) {
+ request = &DescribeIsolatedInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeIsolatedInstances")
+
+
+ return
+}
+
+func NewDescribeIsolatedInstancesResponse() (response *DescribeIsolatedInstancesResponse) {
+ response = &DescribeIsolatedInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeIsolatedInstances
+// 本接口(DescribeIsolatedInstances)用于查询回收站实例列表。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
+// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeIsolatedInstances(request *DescribeIsolatedInstancesRequest) (response *DescribeIsolatedInstancesResponse, err error) {
+ return c.DescribeIsolatedInstancesWithContext(context.Background(), request)
+}
+
+// DescribeIsolatedInstances
+// 本接口(DescribeIsolatedInstances)用于查询回收站实例列表。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
+// FAILEDOPERATION_CAMSIGANDAUTHERROR = "FailedOperation.CamSigAndAuthError"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_ILLEGALORDERBY = "InvalidParameterValue.IllegalOrderBy"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMBOTHSETERROR = "InvalidParameterValue.ParamBothSetError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeIsolatedInstancesWithContext(ctx context.Context, request *DescribeIsolatedInstancesRequest) (response *DescribeIsolatedInstancesResponse, err error) {
+ if request == nil {
+ request = NewDescribeIsolatedInstancesRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeIsolatedInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeIsolatedInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeMaintainPeriodRequest() (request *DescribeMaintainPeriodRequest) {
request = &DescribeMaintainPeriodRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -3525,18 +4351,20 @@ func NewDescribeMaintainPeriodRequest() (request *DescribeMaintainPeriodRequest)
func NewDescribeMaintainPeriodResponse() (response *DescribeMaintainPeriodResponse) {
response = &DescribeMaintainPeriodResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeMaintainPeriod
-// 查询实例维护时间窗
+// 本接口(DescribeMaintainPeriod)用于查询实例维护时间窗。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeMaintainPeriod(request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error) {
@@ -3544,13 +4372,14 @@ func (c *Client) DescribeMaintainPeriod(request *DescribeMaintainPeriodRequest)
}
// DescribeMaintainPeriod
-// 查询实例维护时间窗
+// 本接口(DescribeMaintainPeriod)用于查询实例维护时间窗。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeMaintainPeriodWithContext(ctx context.Context, request *DescribeMaintainPeriodRequest) (response *DescribeMaintainPeriodResponse, err error) {
@@ -3583,12 +4412,13 @@ func NewDescribeParamTemplateDetailRequest() (request *DescribeParamTemplateDeta
func NewDescribeParamTemplateDetailResponse() (response *DescribeParamTemplateDetailResponse) {
response = &DescribeParamTemplateDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeParamTemplateDetail
-// 本接口(DescribeParamTemplateDetail)用于查询用户参数模板详情
+// 本接口(DescribeParamTemplateDetail)用于查询用户参数模板详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3599,7 +4429,7 @@ func (c *Client) DescribeParamTemplateDetail(request *DescribeParamTemplateDetai
}
// DescribeParamTemplateDetail
-// 本接口(DescribeParamTemplateDetail)用于查询用户参数模板详情
+// 本接口(DescribeParamTemplateDetail)用于查询用户参数模板详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3635,12 +4465,13 @@ func NewDescribeParamTemplatesRequest() (request *DescribeParamTemplatesRequest)
func NewDescribeParamTemplatesResponse() (response *DescribeParamTemplatesResponse) {
response = &DescribeParamTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeParamTemplates
-// 查询用户指定产品下的所有参数模板信息
+// 本接口(DescribeParamTemplates)用于查询用户指定产品下的所有参数模板信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3650,7 +4481,7 @@ func (c *Client) DescribeParamTemplates(request *DescribeParamTemplatesRequest)
}
// DescribeParamTemplates
-// 查询用户指定产品下的所有参数模板信息
+// 本接口(DescribeParamTemplates)用于查询用户指定产品下的所有参数模板信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3685,12 +4516,13 @@ func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurity
func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse) {
response = &DescribeProjectSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeProjectSecurityGroups
-// 查询项目安全组信息
+// 本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3702,7 +4534,7 @@ func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityG
}
// DescribeProjectSecurityGroups
-// 查询项目安全组信息
+// 本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -3739,12 +4571,13 @@ func NewDescribeProxiesRequest() (request *DescribeProxiesRequest) {
func NewDescribeProxiesResponse() (response *DescribeProxiesResponse) {
response = &DescribeProxiesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeProxies
-// 查询数据库代理列表
+// 本接口(DescribeProxies)用于查询数据库代理列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
@@ -3761,7 +4594,7 @@ func (c *Client) DescribeProxies(request *DescribeProxiesRequest) (response *Des
}
// DescribeProxies
-// 查询数据库代理列表
+// 本接口(DescribeProxies)用于查询数据库代理列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_CAMCHECKRESOURCEERROR = "FailedOperation.CamCheckResourceError"
@@ -3803,12 +4636,13 @@ func NewDescribeProxyNodesRequest() (request *DescribeProxyNodesRequest) {
func NewDescribeProxyNodesResponse() (response *DescribeProxyNodesResponse) {
response = &DescribeProxyNodesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeProxyNodes
-// 本接口(DescribeProxyNodes)用于查询代理接口列表。
+// 本接口(DescribeProxyNodes)用于查询代理节点列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -3819,7 +4653,7 @@ func (c *Client) DescribeProxyNodes(request *DescribeProxyNodesRequest) (respons
}
// DescribeProxyNodes
-// 本接口(DescribeProxyNodes)用于查询代理接口列表。
+// 本接口(DescribeProxyNodes)用于查询代理节点列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -3855,12 +4689,13 @@ func NewDescribeProxySpecsRequest() (request *DescribeProxySpecsRequest) {
func NewDescribeProxySpecsResponse() (response *DescribeProxySpecsResponse) {
response = &DescribeProxySpecsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeProxySpecs
-// 查询数据库代理规格
+// 本接口(DescribeProxySpecs)用于查询数据库代理规格。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -3870,7 +4705,7 @@ func (c *Client) DescribeProxySpecs(request *DescribeProxySpecsRequest) (respons
}
// DescribeProxySpecs
-// 查询数据库代理规格
+// 本接口(DescribeProxySpecs)用于查询数据库代理规格。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -3905,12 +4740,13 @@ func NewDescribeResourcePackageDetailRequest() (request *DescribeResourcePackage
func NewDescribeResourcePackageDetailResponse() (response *DescribeResourcePackageDetailResponse) {
response = &DescribeResourcePackageDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeResourcePackageDetail
-// 查询资源包使用详情
+// 本接口(DescribeResourcePackageDetail)用于查询资源包使用详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_QUERYSOURCEPACKAGEDETAILERROR = "FailedOperation.QuerySourcePackageDetailError"
@@ -3922,7 +4758,7 @@ func (c *Client) DescribeResourcePackageDetail(request *DescribeResourcePackageD
}
// DescribeResourcePackageDetail
-// 查询资源包使用详情
+// 本接口(DescribeResourcePackageDetail)用于查询资源包使用详情。
//
// 可能返回的错误码:
// FAILEDOPERATION_QUERYSOURCEPACKAGEDETAILERROR = "FailedOperation.QuerySourcePackageDetailError"
@@ -3959,12 +4795,13 @@ func NewDescribeResourcePackageListRequest() (request *DescribeResourcePackageLi
func NewDescribeResourcePackageListResponse() (response *DescribeResourcePackageListResponse) {
response = &DescribeResourcePackageListResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeResourcePackageList
-// 查询资源包列表
+// 本接口(DescribeResourcePackageList)用于查询资源包列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -3978,7 +4815,7 @@ func (c *Client) DescribeResourcePackageList(request *DescribeResourcePackageLis
}
// DescribeResourcePackageList
-// 查询资源包列表
+// 本接口(DescribeResourcePackageList)用于查询资源包列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4017,12 +4854,13 @@ func NewDescribeResourcePackageSaleSpecRequest() (request *DescribeResourcePacka
func NewDescribeResourcePackageSaleSpecResponse() (response *DescribeResourcePackageSaleSpecResponse) {
response = &DescribeResourcePackageSaleSpecResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeResourcePackageSaleSpec
-// 查询资源包规格
+// 本接口(DescribeResourcePackageSaleSpec)用于查询资源包规格。
//
// 可能返回的错误码:
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
@@ -4034,7 +4872,7 @@ func (c *Client) DescribeResourcePackageSaleSpec(request *DescribeResourcePackag
}
// DescribeResourcePackageSaleSpec
-// 查询资源包规格
+// 本接口(DescribeResourcePackageSaleSpec)用于查询资源包规格。
//
// 可能返回的错误码:
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
@@ -4071,12 +4909,13 @@ func NewDescribeResourcesByDealNameRequest() (request *DescribeResourcesByDealNa
func NewDescribeResourcesByDealNameResponse() (response *DescribeResourcesByDealNameResponse) {
response = &DescribeResourcesByDealNameResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeResourcesByDealName
-// 根据计费订单id查询资源列表
+// 本接口(DescribeResourcesByDealName)用于查询订单关联实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4092,7 +4931,7 @@ func (c *Client) DescribeResourcesByDealName(request *DescribeResourcesByDealNam
}
// DescribeResourcesByDealName
-// 根据计费订单id查询资源列表
+// 本接口(DescribeResourcesByDealName)用于查询订单关联实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4133,17 +4972,20 @@ func NewDescribeRollbackTimeRangeRequest() (request *DescribeRollbackTimeRangeRe
func NewDescribeRollbackTimeRangeResponse() (response *DescribeRollbackTimeRangeResponse) {
response = &DescribeRollbackTimeRangeResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeRollbackTimeRange
-// 查询指定集群有效回滚时间范围
+// 本接口(DescribeRollbackTimeRange)用于查询回档时间范围。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -4153,12 +4995,14 @@ func (c *Client) DescribeRollbackTimeRange(request *DescribeRollbackTimeRangeReq
}
// DescribeRollbackTimeRange
-// 查询指定集群有效回滚时间范围
+// 本接口(DescribeRollbackTimeRange)用于查询回档时间范围。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -4179,58 +5023,120 @@ func (c *Client) DescribeRollbackTimeRangeWithContext(ctx context.Context, reque
return
}
-func NewDescribeRollbackTimeValidityRequest() (request *DescribeRollbackTimeValidityRequest) {
- request = &DescribeRollbackTimeValidityRequest{
+func NewDescribeServerlessInstanceSpecsRequest() (request *DescribeServerlessInstanceSpecsRequest) {
+ request = &DescribeServerlessInstanceSpecsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
- request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeRollbackTimeValidity")
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeServerlessInstanceSpecs")
return
}
-func NewDescribeRollbackTimeValidityResponse() (response *DescribeRollbackTimeValidityResponse) {
- response = &DescribeRollbackTimeValidityResponse{
+func NewDescribeServerlessInstanceSpecsResponse() (response *DescribeServerlessInstanceSpecsResponse) {
+ response = &DescribeServerlessInstanceSpecsResponse{
BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeServerlessInstanceSpecs
+// 查询Serverless实例可选规格
+//
+// 可能返回的错误码:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR = "InternalError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INVALIDPARAMETER = "InvalidParameter"
+func (c *Client) DescribeServerlessInstanceSpecs(request *DescribeServerlessInstanceSpecsRequest) (response *DescribeServerlessInstanceSpecsResponse, err error) {
+ return c.DescribeServerlessInstanceSpecsWithContext(context.Background(), request)
+}
+
+// DescribeServerlessInstanceSpecs
+// 查询Serverless实例可选规格
+//
+// 可能返回的错误码:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR = "InternalError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INVALIDPARAMETER = "InvalidParameter"
+func (c *Client) DescribeServerlessInstanceSpecsWithContext(ctx context.Context, request *DescribeServerlessInstanceSpecsRequest) (response *DescribeServerlessInstanceSpecsResponse, err error) {
+ if request == nil {
+ request = NewDescribeServerlessInstanceSpecsRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeServerlessInstanceSpecs require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeServerlessInstanceSpecsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeServerlessStrategyRequest() (request *DescribeServerlessStrategyRequest) {
+ request = &DescribeServerlessStrategyRequest{
+ BaseRequest: &tchttp.BaseRequest{},
}
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeServerlessStrategy")
+
+
+ return
+}
+
+func NewDescribeServerlessStrategyResponse() (response *DescribeServerlessStrategyResponse) {
+ response = &DescribeServerlessStrategyResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
return
+
}
-// DescribeRollbackTimeValidity
-// 指定时间和集群查询是否可回滚
+// DescribeServerlessStrategy
+// 查询serverless策略
//
// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_DBMODENOTSERVERLESSERROR = "InvalidParameterValue.DbModeNotServerlessError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
-// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeRollbackTimeValidity(request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error) {
- return c.DescribeRollbackTimeValidityWithContext(context.Background(), request)
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+func (c *Client) DescribeServerlessStrategy(request *DescribeServerlessStrategyRequest) (response *DescribeServerlessStrategyResponse, err error) {
+ return c.DescribeServerlessStrategyWithContext(context.Background(), request)
}
-// DescribeRollbackTimeValidity
-// 指定时间和集群查询是否可回滚
+// DescribeServerlessStrategy
+// 查询serverless策略
//
// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
-// INVALIDPARAMETER_CONTROLLERNOTFOUNDERROR = "InvalidParameter.ControllerNotFoundError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_DBMODENOTSERVERLESSERROR = "InvalidParameterValue.DbModeNotServerlessError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
-// INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeRollbackTimeValidityWithContext(ctx context.Context, request *DescribeRollbackTimeValidityRequest) (response *DescribeRollbackTimeValidityResponse, err error) {
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+func (c *Client) DescribeServerlessStrategyWithContext(ctx context.Context, request *DescribeServerlessStrategyRequest) (response *DescribeServerlessStrategyResponse, err error) {
if request == nil {
- request = NewDescribeRollbackTimeValidityRequest()
+ request = NewDescribeServerlessStrategyRequest()
}
if c.GetCredential() == nil {
- return nil, errors.New("DescribeRollbackTimeValidity require credential")
+ return nil, errors.New("DescribeServerlessStrategy require credential")
}
request.SetContext(ctx)
- response = NewDescribeRollbackTimeValidityResponse()
+ response = NewDescribeServerlessStrategyResponse()
err = c.Send(request, response)
return
}
@@ -4249,12 +5155,29 @@ func NewDescribeSupportProxyVersionRequest() (request *DescribeSupportProxyVersi
func NewDescribeSupportProxyVersionResponse() (response *DescribeSupportProxyVersionResponse) {
response = &DescribeSupportProxyVersionResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
+}
+
+// DescribeSupportProxyVersion
+// 本接口(DescribeSupportProxyVersion)用于查询支持的数据库代理版本。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeSupportProxyVersion(request *DescribeSupportProxyVersionRequest) (response *DescribeSupportProxyVersionResponse, err error) {
+ return c.DescribeSupportProxyVersionWithContext(context.Background(), request)
}
// DescribeSupportProxyVersion
-// 查询支持的数据库代理版本
+// 本接口(DescribeSupportProxyVersion)用于查询支持的数据库代理版本。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4265,34 +5188,75 @@ func NewDescribeSupportProxyVersionResponse() (response *DescribeSupportProxyVer
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeSupportProxyVersion(request *DescribeSupportProxyVersionRequest) (response *DescribeSupportProxyVersionResponse, err error) {
- return c.DescribeSupportProxyVersionWithContext(context.Background(), request)
+func (c *Client) DescribeSupportProxyVersionWithContext(ctx context.Context, request *DescribeSupportProxyVersionRequest) (response *DescribeSupportProxyVersionResponse, err error) {
+ if request == nil {
+ request = NewDescribeSupportProxyVersionRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeSupportProxyVersion require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeSupportProxyVersionResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTasksRequest() (request *DescribeTasksRequest) {
+ request = &DescribeTasksRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "DescribeTasks")
+
+
+ return
+}
+
+func NewDescribeTasksResponse() (response *DescribeTasksResponse) {
+ response = &DescribeTasksResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTasks
+// 本接口(DescribeTasks)用于查询任务列表。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) {
+ return c.DescribeTasksWithContext(context.Background(), request)
}
-// DescribeSupportProxyVersion
-// 查询支持的数据库代理版本
+// DescribeTasks
+// 本接口(DescribeTasks)用于查询任务列表。
//
// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
-// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
-// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
-// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
-// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) DescribeSupportProxyVersionWithContext(ctx context.Context, request *DescribeSupportProxyVersionRequest) (response *DescribeSupportProxyVersionResponse, err error) {
+func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) {
if request == nil {
- request = NewDescribeSupportProxyVersionRequest()
+ request = NewDescribeTasksRequest()
}
if c.GetCredential() == nil {
- return nil, errors.New("DescribeSupportProxyVersion require credential")
+ return nil, errors.New("DescribeTasks require credential")
}
request.SetContext(ctx)
- response = NewDescribeSupportProxyVersionResponse()
+ response = NewDescribeTasksResponse()
err = c.Send(request, response)
return
}
@@ -4311,12 +5275,13 @@ func NewDescribeZonesRequest() (request *DescribeZonesRequest) {
func NewDescribeZonesResponse() (response *DescribeZonesResponse) {
response = &DescribeZonesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DescribeZones
-// 本接口(DescribeZones)用于查询可售卖地域可用区信息。
+// 本接口(DescribeZones)用于查询可售卖地域可用区信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4328,7 +5293,7 @@ func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *Describ
}
// DescribeZones
-// 本接口(DescribeZones)用于查询可售卖地域可用区信息。
+// 本接口(DescribeZones)用于查询可售卖地域可用区信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4365,12 +5330,13 @@ func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroups
func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse) {
response = &DisassociateSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// DisassociateSecurityGroups
-// 安全组批量解绑云资源
+// 本接口(DisassociateSecurityGroups)用于安全组批量解绑云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4384,7 +5350,7 @@ func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsR
}
// DisassociateSecurityGroups
-// 安全组批量解绑云资源
+// 本接口(DisassociateSecurityGroups)用于安全组批量解绑云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4423,8 +5389,9 @@ func NewExportInstanceErrorLogsRequest() (request *ExportInstanceErrorLogsReques
func NewExportInstanceErrorLogsResponse() (response *ExportInstanceErrorLogsResponse) {
response = &ExportInstanceErrorLogsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ExportInstanceErrorLogs
@@ -4475,12 +5442,13 @@ func NewExportInstanceSlowQueriesRequest() (request *ExportInstanceSlowQueriesRe
func NewExportInstanceSlowQueriesResponse() (response *ExportInstanceSlowQueriesResponse) {
response = &ExportInstanceSlowQueriesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ExportInstanceSlowQueries
-// 此接口(ExportInstanceSlowQueries)用于导出实例慢日志。
+// 本接口(ExportInstanceSlowQueries)用于导出实例慢日志。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4491,7 +5459,7 @@ func (c *Client) ExportInstanceSlowQueries(request *ExportInstanceSlowQueriesReq
}
// ExportInstanceSlowQueries
-// 此接口(ExportInstanceSlowQueries)用于导出实例慢日志。
+// 本接口(ExportInstanceSlowQueries)用于导出实例慢日志。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4513,6 +5481,69 @@ func (c *Client) ExportInstanceSlowQueriesWithContext(ctx context.Context, reque
return
}
+func NewExportResourcePackageDeductDetailsRequest() (request *ExportResourcePackageDeductDetailsRequest) {
+ request = &ExportResourcePackageDeductDetailsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "ExportResourcePackageDeductDetails")
+
+
+ return
+}
+
+func NewExportResourcePackageDeductDetailsResponse() (response *ExportResourcePackageDeductDetailsResponse) {
+ response = &ExportResourcePackageDeductDetailsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ExportResourcePackageDeductDetails
+// 资源包使用明细导出
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_QUERYSOURCEPACKAGEERROR = "FailedOperation.QuerySourcePackageError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ExportResourcePackageDeductDetails(request *ExportResourcePackageDeductDetailsRequest) (response *ExportResourcePackageDeductDetailsResponse, err error) {
+ return c.ExportResourcePackageDeductDetailsWithContext(context.Background(), request)
+}
+
+// ExportResourcePackageDeductDetails
+// 资源包使用明细导出
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_QUERYSOURCEPACKAGEERROR = "FailedOperation.QuerySourcePackageError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ExportResourcePackageDeductDetailsWithContext(ctx context.Context, request *ExportResourcePackageDeductDetailsRequest) (response *ExportResourcePackageDeductDetailsResponse, err error) {
+ if request == nil {
+ request = NewExportResourcePackageDeductDetailsRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ExportResourcePackageDeductDetails require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewExportResourcePackageDeductDetailsResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewGrantAccountPrivilegesRequest() (request *GrantAccountPrivilegesRequest) {
request = &GrantAccountPrivilegesRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -4527,12 +5558,13 @@ func NewGrantAccountPrivilegesRequest() (request *GrantAccountPrivilegesRequest)
func NewGrantAccountPrivilegesResponse() (response *GrantAccountPrivilegesResponse) {
response = &GrantAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// GrantAccountPrivileges
-// 批量授权账号权限
+// 本接口(GrantAccountPrivileges)用于批量授权账号权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4577,7 +5609,7 @@ func (c *Client) GrantAccountPrivileges(request *GrantAccountPrivilegesRequest)
}
// GrantAccountPrivileges
-// 批量授权账号权限
+// 本接口(GrantAccountPrivileges)用于批量授权账号权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4647,12 +5679,13 @@ func NewInquirePriceCreateRequest() (request *InquirePriceCreateRequest) {
func NewInquirePriceCreateResponse() (response *InquirePriceCreateResponse) {
response = &InquirePriceCreateResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// InquirePriceCreate
-// 查询新购集群价格
+// 本接口(InquirePriceCreate)用于新购集群的价格查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4665,7 +5698,7 @@ func (c *Client) InquirePriceCreate(request *InquirePriceCreateRequest) (respons
}
// InquirePriceCreate
-// 查询新购集群价格
+// 本接口(InquirePriceCreate)用于新购集群的价格查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -4689,6 +5722,63 @@ func (c *Client) InquirePriceCreateWithContext(ctx context.Context, request *Inq
return
}
+func NewInquirePriceModifyRequest() (request *InquirePriceModifyRequest) {
+ request = &InquirePriceModifyRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "InquirePriceModify")
+
+
+ return
+}
+
+func NewInquirePriceModifyResponse() (response *InquirePriceModifyResponse) {
+ response = &InquirePriceModifyResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquirePriceModify
+// 变配预付费集群询价
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) InquirePriceModify(request *InquirePriceModifyRequest) (response *InquirePriceModifyResponse, err error) {
+ return c.InquirePriceModifyWithContext(context.Background(), request)
+}
+
+// InquirePriceModify
+// 变配预付费集群询价
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) InquirePriceModifyWithContext(ctx context.Context, request *InquirePriceModifyRequest) (response *InquirePriceModifyResponse, err error) {
+ if request == nil {
+ request = NewInquirePriceModifyRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquirePriceModify require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquirePriceModifyResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewInquirePriceRenewRequest() (request *InquirePriceRenewRequest) {
request = &InquirePriceRenewRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -4703,12 +5793,13 @@ func NewInquirePriceRenewRequest() (request *InquirePriceRenewRequest) {
func NewInquirePriceRenewResponse() (response *InquirePriceRenewResponse) {
response = &InquirePriceRenewResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// InquirePriceRenew
-// 查询续费集群价格
+// 本接口(InquirePriceRenew)用于查询续费集群价格。
//
// 可能返回的错误码:
// FAILEDOPERATION_BATCHGETINSTANCEERROR = "FailedOperation.BatchGetInstanceError"
@@ -4725,7 +5816,7 @@ func (c *Client) InquirePriceRenew(request *InquirePriceRenewRequest) (response
}
// InquirePriceRenew
-// 查询续费集群价格
+// 本接口(InquirePriceRenew)用于查询续费集群价格。
//
// 可能返回的错误码:
// FAILEDOPERATION_BATCHGETINSTANCEERROR = "FailedOperation.BatchGetInstanceError"
@@ -4767,12 +5858,13 @@ func NewIsolateClusterRequest() (request *IsolateClusterRequest) {
func NewIsolateClusterResponse() (response *IsolateClusterResponse) {
response = &IsolateClusterResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// IsolateCluster
-// 隔离集群
+// 本接口(IsolateCluster)用于隔离集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4793,7 +5885,7 @@ func (c *Client) IsolateCluster(request *IsolateClusterRequest) (response *Isola
}
// IsolateCluster
-// 隔离集群
+// 本接口(IsolateCluster)用于隔离集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -4839,8 +5931,9 @@ func NewIsolateInstanceRequest() (request *IsolateInstanceRequest) {
func NewIsolateInstanceResponse() (response *IsolateInstanceResponse) {
response = &IsolateInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// IsolateInstance
@@ -4911,8 +6004,9 @@ func NewModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequ
func NewModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse) {
response = &ModifyAccountDescriptionResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAccountDescription
@@ -4975,12 +6069,13 @@ func NewModifyAccountHostRequest() (request *ModifyAccountHostRequest) {
func NewModifyAccountHostResponse() (response *ModifyAccountHostResponse) {
response = &ModifyAccountHostResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAccountHost
-// 修改账号主机
+// 本接口(ModifyAccountHost)用于修改账号主机。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5023,7 +6118,7 @@ func (c *Client) ModifyAccountHost(request *ModifyAccountHostRequest) (response
}
// ModifyAccountHost
-// 修改账号主机
+// 本接口(ModifyAccountHost)用于修改账号主机。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5091,12 +6186,13 @@ func NewModifyAccountParamsRequest() (request *ModifyAccountParamsRequest) {
func NewModifyAccountParamsResponse() (response *ModifyAccountParamsResponse) {
response = &ModifyAccountParamsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAccountParams
-// 修改账号参数
+// 本接口(ModifyAccountParams)用于修改账号配置。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5141,7 +6237,7 @@ func (c *Client) ModifyAccountParams(request *ModifyAccountParamsRequest) (respo
}
// ModifyAccountParams
-// 修改账号参数
+// 本接口(ModifyAccountParams)用于修改账号配置。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5211,12 +6307,13 @@ func NewModifyAccountPrivilegesRequest() (request *ModifyAccountPrivilegesReques
func NewModifyAccountPrivilegesResponse() (response *ModifyAccountPrivilegesResponse) {
response = &ModifyAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAccountPrivileges
-// 修改账号权限
+// 本接口(ModifyAccountPrivileges)用于修改账号库表权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5260,7 +6357,7 @@ func (c *Client) ModifyAccountPrivileges(request *ModifyAccountPrivilegesRequest
}
// ModifyAccountPrivileges
-// 修改账号权限
+// 本接口(ModifyAccountPrivileges)用于修改账号库表权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5329,14 +6426,16 @@ func NewModifyAuditRuleTemplatesRequest() (request *ModifyAuditRuleTemplatesRequ
func NewModifyAuditRuleTemplatesResponse() (response *ModifyAuditRuleTemplatesResponse) {
response = &ModifyAuditRuleTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAuditRuleTemplates
-// 修改审计规则模版
+// 本接口(ModifyAuditRuleTemplates)用于修改审计规则模板。
//
// 可能返回的错误码:
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
func (c *Client) ModifyAuditRuleTemplates(request *ModifyAuditRuleTemplatesRequest) (response *ModifyAuditRuleTemplatesResponse, err error) {
@@ -5344,9 +6443,10 @@ func (c *Client) ModifyAuditRuleTemplates(request *ModifyAuditRuleTemplatesReque
}
// ModifyAuditRuleTemplates
-// 修改审计规则模版
+// 本接口(ModifyAuditRuleTemplates)用于修改审计规则模板。
//
// 可能返回的错误码:
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
func (c *Client) ModifyAuditRuleTemplatesWithContext(ctx context.Context, request *ModifyAuditRuleTemplatesRequest) (response *ModifyAuditRuleTemplatesResponse, err error) {
@@ -5379,8 +6479,9 @@ func NewModifyAuditServiceRequest() (request *ModifyAuditServiceRequest) {
func NewModifyAuditServiceResponse() (response *ModifyAuditServiceResponse) {
response = &ModifyAuditServiceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyAuditService
@@ -5388,6 +6489,7 @@ func NewModifyAuditServiceResponse() (response *ModifyAuditServiceResponse) {
//
// 可能返回的错误码:
// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
func (c *Client) ModifyAuditService(request *ModifyAuditServiceRequest) (response *ModifyAuditServiceResponse, err error) {
return c.ModifyAuditServiceWithContext(context.Background(), request)
@@ -5398,6 +6500,7 @@ func (c *Client) ModifyAuditService(request *ModifyAuditServiceRequest) (respons
//
// 可能返回的错误码:
// INTERNALERROR_HTTPERROR = "InternalError.HttpError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_EXCEPTIONPARAM = "InvalidParameter.ExceptionParam"
func (c *Client) ModifyAuditServiceWithContext(ctx context.Context, request *ModifyAuditServiceRequest) (response *ModifyAuditServiceResponse, err error) {
if request == nil {
@@ -5429,16 +6532,19 @@ func NewModifyBackupConfigRequest() (request *ModifyBackupConfigRequest) {
func NewModifyBackupConfigResponse() (response *ModifyBackupConfigResponse) {
response = &ModifyBackupConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyBackupConfig
-// 修改指定集群的备份配置
+// 本接口(ModifyBackupConfig)用于修改指定集群的备份配置。
//
// 可能返回的错误码:
+// FAILEDOPERATION_CYNOSDBMYSQLSETBACKUPSTRATEGY = "FailedOperation.CynosdbMysqlSetBackupStrategy"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -5448,11 +6554,13 @@ func (c *Client) ModifyBackupConfig(request *ModifyBackupConfigRequest) (respons
}
// ModifyBackupConfig
-// 修改指定集群的备份配置
+// 本接口(ModifyBackupConfig)用于修改指定集群的备份配置。
//
// 可能返回的错误码:
+// FAILEDOPERATION_CYNOSDBMYSQLSETBACKUPSTRATEGY = "FailedOperation.CynosdbMysqlSetBackupStrategy"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
@@ -5487,8 +6595,9 @@ func NewModifyBackupNameRequest() (request *ModifyBackupNameRequest) {
func NewModifyBackupNameResponse() (response *ModifyBackupNameResponse) {
response = &ModifyBackupNameResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyBackupName
@@ -5525,6 +6634,57 @@ func (c *Client) ModifyBackupNameWithContext(ctx context.Context, request *Modif
return
}
+func NewModifyBinlogConfigRequest() (request *ModifyBinlogConfigRequest) {
+ request = &ModifyBinlogConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "ModifyBinlogConfig")
+
+
+ return
+}
+
+func NewModifyBinlogConfigResponse() (response *ModifyBinlogConfigResponse) {
+ response = &ModifyBinlogConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyBinlogConfig
+// 该接口(ModifyBinlogConfig)用于修改Binlog配置
+//
+// 可能返回的错误码:
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+func (c *Client) ModifyBinlogConfig(request *ModifyBinlogConfigRequest) (response *ModifyBinlogConfigResponse, err error) {
+ return c.ModifyBinlogConfigWithContext(context.Background(), request)
+}
+
+// ModifyBinlogConfig
+// 该接口(ModifyBinlogConfig)用于修改Binlog配置
+//
+// 可能返回的错误码:
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
+func (c *Client) ModifyBinlogConfigWithContext(ctx context.Context, request *ModifyBinlogConfigRequest) (response *ModifyBinlogConfigResponse, err error) {
+ if request == nil {
+ request = NewModifyBinlogConfigRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyBinlogConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyBinlogConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewModifyBinlogSaveDaysRequest() (request *ModifyBinlogSaveDaysRequest) {
request = &ModifyBinlogSaveDaysRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -5539,8 +6699,9 @@ func NewModifyBinlogSaveDaysRequest() (request *ModifyBinlogSaveDaysRequest) {
func NewModifyBinlogSaveDaysResponse() (response *ModifyBinlogSaveDaysResponse) {
response = &ModifyBinlogSaveDaysResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyBinlogSaveDays
@@ -5593,12 +6754,13 @@ func NewModifyClusterDatabaseRequest() (request *ModifyClusterDatabaseRequest) {
func NewModifyClusterDatabaseResponse() (response *ModifyClusterDatabaseResponse) {
response = &ModifyClusterDatabaseResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterDatabase
-// 修改数据库
+// 本接口(ModifyClusterDatabase)用于修改数据库的账号授权。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -5610,7 +6772,7 @@ func (c *Client) ModifyClusterDatabase(request *ModifyClusterDatabaseRequest) (r
}
// ModifyClusterDatabase
-// 修改数据库
+// 本接口(ModifyClusterDatabase)用于修改数据库的账号授权。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -5647,12 +6809,13 @@ func NewModifyClusterNameRequest() (request *ModifyClusterNameRequest) {
func NewModifyClusterNameResponse() (response *ModifyClusterNameResponse) {
response = &ModifyClusterNameResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterName
-// 修改集群名称
+// 本接口(ModifyClusterName)用于修改集群名称。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5667,7 +6830,7 @@ func (c *Client) ModifyClusterName(request *ModifyClusterNameRequest) (response
}
// ModifyClusterName
-// 修改集群名称
+// 本接口(ModifyClusterName)用于修改集群名称。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5707,12 +6870,13 @@ func NewModifyClusterParamRequest() (request *ModifyClusterParamRequest) {
func NewModifyClusterParamResponse() (response *ModifyClusterParamResponse) {
response = &ModifyClusterParamResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterParam
-// 修改集群参数
+// 本接口(ModifyClusterParam)用于修改集群参数。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -5732,7 +6896,7 @@ func (c *Client) ModifyClusterParam(request *ModifyClusterParamRequest) (respons
}
// ModifyClusterParam
-// 修改集群参数
+// 本接口(ModifyClusterParam)用于修改集群参数。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -5777,17 +6941,19 @@ func NewModifyClusterPasswordComplexityRequest() (request *ModifyClusterPassword
func NewModifyClusterPasswordComplexityResponse() (response *ModifyClusterPasswordComplexityResponse) {
response = &ModifyClusterPasswordComplexityResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterPasswordComplexity
-// 本接口(ModifyClusterPasswordComplexity)用于修改/开启集群密码复杂度
+// 本接口(ModifyClusterPasswordComplexity)用于修改/开启集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
@@ -5797,12 +6963,13 @@ func (c *Client) ModifyClusterPasswordComplexity(request *ModifyClusterPasswordC
}
// ModifyClusterPasswordComplexity
-// 本接口(ModifyClusterPasswordComplexity)用于修改/开启集群密码复杂度
+// 本接口(ModifyClusterPasswordComplexity)用于修改/开启集群密码复杂度。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
@@ -5837,12 +7004,13 @@ func NewModifyClusterSlaveZoneRequest() (request *ModifyClusterSlaveZoneRequest)
func NewModifyClusterSlaveZoneResponse() (response *ModifyClusterSlaveZoneResponse) {
response = &ModifyClusterSlaveZoneResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterSlaveZone
-// 修改从可用区
+// 本接口(ModifyClusterSlaveZone)用于变更集群的备可用区。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5855,7 +7023,7 @@ func (c *Client) ModifyClusterSlaveZone(request *ModifyClusterSlaveZoneRequest)
}
// ModifyClusterSlaveZone
-// 修改从可用区
+// 本接口(ModifyClusterSlaveZone)用于变更集群的备可用区。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -5893,12 +7061,13 @@ func NewModifyClusterStorageRequest() (request *ModifyClusterStorageRequest) {
func NewModifyClusterStorageResponse() (response *ModifyClusterStorageResponse) {
response = &ModifyClusterStorageResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyClusterStorage
-// 升级预付费存储
+// 本接口(ModifyClusterStorage)用于调整包年包月存储容量。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
@@ -5920,7 +7089,7 @@ func (c *Client) ModifyClusterStorage(request *ModifyClusterStorageRequest) (res
}
// ModifyClusterStorage
-// 升级预付费存储
+// 本接口(ModifyClusterStorage)用于调整包年包月存储容量。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
@@ -5967,12 +7136,13 @@ func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecuri
func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse) {
response = &ModifyDBInstanceSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyDBInstanceSecurityGroups
-// 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
+// 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -5986,7 +7156,7 @@ func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurit
}
// ModifyDBInstanceSecurityGroups
-// 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
+// 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -6025,8 +7195,9 @@ func NewModifyInstanceNameRequest() (request *ModifyInstanceNameRequest) {
func NewModifyInstanceNameResponse() (response *ModifyInstanceNameResponse) {
response = &ModifyInstanceNameResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyInstanceName
@@ -6087,46 +7258,102 @@ func NewModifyInstanceParamRequest() (request *ModifyInstanceParamRequest) {
func NewModifyInstanceParamResponse() (response *ModifyInstanceParamResponse) {
response = &ModifyInstanceParamResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
+}
+
+// ModifyInstanceParam
+// 本接口(ModifyInstanceParam)用于修改实例参数。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error) {
+ return c.ModifyInstanceParamWithContext(context.Background(), request)
}
// ModifyInstanceParam
// 本接口(ModifyInstanceParam)用于修改实例参数。
//
// 可能返回的错误码:
-// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
-// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
-// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error) {
+ if request == nil {
+ request = NewModifyInstanceParamRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyInstanceParam require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyInstanceParamResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyInstanceUpgradeLimitDaysRequest() (request *ModifyInstanceUpgradeLimitDaysRequest) {
+ request = &ModifyInstanceUpgradeLimitDaysRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "ModifyInstanceUpgradeLimitDays")
+
+
+ return
+}
+
+func NewModifyInstanceUpgradeLimitDaysResponse() (response *ModifyInstanceUpgradeLimitDaysResponse) {
+ response = &ModifyInstanceUpgradeLimitDaysResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyInstanceUpgradeLimitDays
+// 本接口(ModifyInstanceUpgradeLimitDays)用于修改实例内核小版本的升级限制时间。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) ModifyInstanceParam(request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error) {
- return c.ModifyInstanceParamWithContext(context.Background(), request)
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+func (c *Client) ModifyInstanceUpgradeLimitDays(request *ModifyInstanceUpgradeLimitDaysRequest) (response *ModifyInstanceUpgradeLimitDaysResponse, err error) {
+ return c.ModifyInstanceUpgradeLimitDaysWithContext(context.Background(), request)
}
-// ModifyInstanceParam
-// 本接口(ModifyInstanceParam)用于修改实例参数。
+// ModifyInstanceUpgradeLimitDays
+// 本接口(ModifyInstanceUpgradeLimitDays)用于修改实例内核小版本的升级限制时间。
//
// 可能返回的错误码:
-// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
-// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
-// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
-// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
-// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
-func (c *Client) ModifyInstanceParamWithContext(ctx context.Context, request *ModifyInstanceParamRequest) (response *ModifyInstanceParamResponse, err error) {
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
+func (c *Client) ModifyInstanceUpgradeLimitDaysWithContext(ctx context.Context, request *ModifyInstanceUpgradeLimitDaysRequest) (response *ModifyInstanceUpgradeLimitDaysResponse, err error) {
if request == nil {
- request = NewModifyInstanceParamRequest()
+ request = NewModifyInstanceUpgradeLimitDaysRequest()
}
if c.GetCredential() == nil {
- return nil, errors.New("ModifyInstanceParam require credential")
+ return nil, errors.New("ModifyInstanceUpgradeLimitDays require credential")
}
request.SetContext(ctx)
- response = NewModifyInstanceParamResponse()
+ response = NewModifyInstanceUpgradeLimitDaysResponse()
err = c.Send(request, response)
return
}
@@ -6145,12 +7372,13 @@ func NewModifyMaintainPeriodConfigRequest() (request *ModifyMaintainPeriodConfig
func NewModifyMaintainPeriodConfigResponse() (response *ModifyMaintainPeriodConfigResponse) {
response = &ModifyMaintainPeriodConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyMaintainPeriodConfig
-// 修改维护时间配置
+// 本接口(ModifyMaintainPeriodConfig)用于修改维护时间配置。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6163,7 +7391,7 @@ func (c *Client) ModifyMaintainPeriodConfig(request *ModifyMaintainPeriodConfigR
}
// ModifyMaintainPeriodConfig
-// 修改维护时间配置
+// 本接口(ModifyMaintainPeriodConfig)用于修改维护时间配置。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6201,8 +7429,9 @@ func NewModifyParamTemplateRequest() (request *ModifyParamTemplateRequest) {
func NewModifyParamTemplateResponse() (response *ModifyParamTemplateResponse) {
response = &ModifyParamTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyParamTemplate
@@ -6210,6 +7439,7 @@ func NewModifyParamTemplateResponse() (response *ModifyParamTemplateResponse) {
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error) {
@@ -6221,6 +7451,7 @@ func (c *Client) ModifyParamTemplate(request *ModifyParamTemplateRequest) (respo
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
func (c *Client) ModifyParamTemplateWithContext(ctx context.Context, request *ModifyParamTemplateRequest) (response *ModifyParamTemplateResponse, err error) {
@@ -6253,27 +7484,30 @@ func NewModifyProxyDescRequest() (request *ModifyProxyDescRequest) {
func NewModifyProxyDescResponse() (response *ModifyProxyDescResponse) {
response = &ModifyProxyDescResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyProxyDesc
-// 修改数据库代理描述
+// 本接口(ModifyProxyDesc)用于修改数据库代理描述。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
func (c *Client) ModifyProxyDesc(request *ModifyProxyDescRequest) (response *ModifyProxyDescResponse, err error) {
return c.ModifyProxyDescWithContext(context.Background(), request)
}
// ModifyProxyDesc
-// 修改数据库代理描述
+// 本接口(ModifyProxyDesc)用于修改数据库代理描述。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
func (c *Client) ModifyProxyDescWithContext(ctx context.Context, request *ModifyProxyDescRequest) (response *ModifyProxyDescResponse, err error) {
if request == nil {
@@ -6305,33 +7539,42 @@ func NewModifyProxyRwSplitRequest() (request *ModifyProxyRwSplitRequest) {
func NewModifyProxyRwSplitResponse() (response *ModifyProxyRwSplitResponse) {
response = &ModifyProxyRwSplitResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyProxyRwSplit
-// 配置数据库代理读写分离
+// 本接口(ModifyProxyRwSplit)用于配置数据库代理读写分离。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyProxyRwSplit(request *ModifyProxyRwSplitRequest) (response *ModifyProxyRwSplitResponse, err error) {
return c.ModifyProxyRwSplitWithContext(context.Background(), request)
}
// ModifyProxyRwSplit
-// 配置数据库代理读写分离
+// 本接口(ModifyProxyRwSplit)用于配置数据库代理读写分离。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INVALIDPARAMETER_INVALIDPARAMETERERROR = "InvalidParameter.InvalidParameterError"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// RESOURCENOTFOUND_INSTANCENOTFOUNDERROR = "ResourceNotFound.InstanceNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyProxyRwSplitWithContext(ctx context.Context, request *ModifyProxyRwSplitRequest) (response *ModifyProxyRwSplitResponse, err error) {
if request == nil {
@@ -6363,12 +7606,13 @@ func NewModifyResourcePackageClustersRequest() (request *ModifyResourcePackageCl
func NewModifyResourcePackageClustersResponse() (response *ModifyResourcePackageClustersResponse) {
response = &ModifyResourcePackageClustersResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyResourcePackageClusters
-// 给资源包绑定集群
+// 本接口(ModifyResourcePackageClusters)用于修改资源包与集群之间的绑定关系。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -6385,7 +7629,7 @@ func (c *Client) ModifyResourcePackageClusters(request *ModifyResourcePackageClu
}
// ModifyResourcePackageClusters
-// 给资源包绑定集群
+// 本接口(ModifyResourcePackageClusters)用于修改资源包与集群之间的绑定关系。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -6427,12 +7671,13 @@ func NewModifyResourcePackageNameRequest() (request *ModifyResourcePackageNameRe
func NewModifyResourcePackageNameResponse() (response *ModifyResourcePackageNameResponse) {
response = &ModifyResourcePackageNameResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyResourcePackageName
-// 修改资源包名称
+// 本接口(ModifyResourcePackageName)用于修改资源包名称。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -6449,7 +7694,7 @@ func (c *Client) ModifyResourcePackageName(request *ModifyResourcePackageNameReq
}
// ModifyResourcePackageName
-// 修改资源包名称
+// 本接口(ModifyResourcePackageName)用于修改资源包名称。
//
// 可能返回的错误码:
// FAILEDOPERATION_BINDSOURCEPACKAGEERROR = "FailedOperation.BindSourcePackageError"
@@ -6477,6 +7722,142 @@ func (c *Client) ModifyResourcePackageNameWithContext(ctx context.Context, reque
return
}
+func NewModifyResourcePackagesDeductionPriorityRequest() (request *ModifyResourcePackagesDeductionPriorityRequest) {
+ request = &ModifyResourcePackagesDeductionPriorityRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "ModifyResourcePackagesDeductionPriority")
+
+
+ return
+}
+
+func NewModifyResourcePackagesDeductionPriorityResponse() (response *ModifyResourcePackagesDeductionPriorityResponse) {
+ response = &ModifyResourcePackagesDeductionPriorityResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyResourcePackagesDeductionPriority
+// 修改已绑定资源包抵扣优先级
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_MODIFYDEDUCTIONPRIORITYERROR = "FailedOperation.ModifyDeductionPriorityError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyResourcePackagesDeductionPriority(request *ModifyResourcePackagesDeductionPriorityRequest) (response *ModifyResourcePackagesDeductionPriorityResponse, err error) {
+ return c.ModifyResourcePackagesDeductionPriorityWithContext(context.Background(), request)
+}
+
+// ModifyResourcePackagesDeductionPriority
+// 修改已绑定资源包抵扣优先级
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_MODIFYDEDUCTIONPRIORITYERROR = "FailedOperation.ModifyDeductionPriorityError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyResourcePackagesDeductionPriorityWithContext(ctx context.Context, request *ModifyResourcePackagesDeductionPriorityRequest) (response *ModifyResourcePackagesDeductionPriorityResponse, err error) {
+ if request == nil {
+ request = NewModifyResourcePackagesDeductionPriorityRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyResourcePackagesDeductionPriority require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyResourcePackagesDeductionPriorityResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyServerlessStrategyRequest() (request *ModifyServerlessStrategyRequest) {
+ request = &ModifyServerlessStrategyRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "ModifyServerlessStrategy")
+
+
+ return
+}
+
+func NewModifyServerlessStrategyResponse() (response *ModifyServerlessStrategyResponse) {
+ response = &ModifyServerlessStrategyResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyServerlessStrategy
+// 修改serverless策略
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_SERVERLESSSETSTRATEGYERROR = "FailedOperation.ServerlessSetStrategyError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_DBMODENOTSERVERLESSERROR = "InvalidParameterValue.DbModeNotServerlessError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyServerlessStrategy(request *ModifyServerlessStrategyRequest) (response *ModifyServerlessStrategyResponse, err error) {
+ return c.ModifyServerlessStrategyWithContext(context.Background(), request)
+}
+
+// ModifyServerlessStrategy
+// 修改serverless策略
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_SERVERLESSSETSTRATEGYERROR = "FailedOperation.ServerlessSetStrategyError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_DBMODENOTSERVERLESSERROR = "InvalidParameterValue.DbModeNotServerlessError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) ModifyServerlessStrategyWithContext(ctx context.Context, request *ModifyServerlessStrategyRequest) (response *ModifyServerlessStrategyResponse, err error) {
+ if request == nil {
+ request = NewModifyServerlessStrategyRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyServerlessStrategy require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyServerlessStrategyResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewModifyVipVportRequest() (request *ModifyVipVportRequest) {
request = &ModifyVipVportRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -6491,12 +7872,13 @@ func NewModifyVipVportRequest() (request *ModifyVipVportRequest) {
func NewModifyVipVportResponse() (response *ModifyVipVportResponse) {
response = &ModifyVipVportResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ModifyVipVport
-// 修改实例组ip,端口
+// 本接口(ModifyVipVport)用于修改实例组ip,端口。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6512,7 +7894,7 @@ func (c *Client) ModifyVipVport(request *ModifyVipVportRequest) (response *Modif
}
// ModifyVipVport
-// 修改实例组ip,端口
+// 本接口(ModifyVipVport)用于修改实例组ip,端口。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6553,12 +7935,13 @@ func NewOfflineClusterRequest() (request *OfflineClusterRequest) {
func NewOfflineClusterResponse() (response *OfflineClusterResponse) {
response = &OfflineClusterResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OfflineCluster
-// 下线集群
+// 本接口(OfflineCluster)用于销毁集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -6575,7 +7958,7 @@ func (c *Client) OfflineCluster(request *OfflineClusterRequest) (response *Offli
}
// OfflineCluster
-// 下线集群
+// 本接口(OfflineCluster)用于销毁集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -6617,12 +8000,13 @@ func NewOfflineInstanceRequest() (request *OfflineInstanceRequest) {
func NewOfflineInstanceResponse() (response *OfflineInstanceResponse) {
response = &OfflineInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OfflineInstance
-// 下线实例
+// 本接口(OfflineInstance)用于销毁实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6641,7 +8025,7 @@ func (c *Client) OfflineInstance(request *OfflineInstanceRequest) (response *Off
}
// OfflineInstance
-// 下线实例
+// 本接口(OfflineInstance)用于销毁实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6685,12 +8069,13 @@ func NewOpenAuditServiceRequest() (request *OpenAuditServiceRequest) {
func NewOpenAuditServiceResponse() (response *OpenAuditServiceResponse) {
response = &OpenAuditServiceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OpenAuditService
-// TDSQL-C for MySQL实例开通审计服务
+// 本接口(OpenAuditService)用于为实例开通数据库审计服务。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -6701,7 +8086,7 @@ func (c *Client) OpenAuditService(request *OpenAuditServiceRequest) (response *O
}
// OpenAuditService
-// TDSQL-C for MySQL实例开通审计服务
+// 本接口(OpenAuditService)用于为实例开通数据库审计服务。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
@@ -6737,17 +8122,19 @@ func NewOpenClusterPasswordComplexityRequest() (request *OpenClusterPasswordComp
func NewOpenClusterPasswordComplexityResponse() (response *OpenClusterPasswordComplexityResponse) {
response = &OpenClusterPasswordComplexityResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OpenClusterPasswordComplexity
-// 本接口(OpenClusterPasswordComplexity)用于开启集群密码复杂度
+// 本接口(OpenClusterPasswordComplexity)用于开启自定义密码复杂度功能。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
@@ -6758,12 +8145,13 @@ func (c *Client) OpenClusterPasswordComplexity(request *OpenClusterPasswordCompl
}
// OpenClusterPasswordComplexity
-// 本接口(OpenClusterPasswordComplexity)用于开启集群密码复杂度
+// 本接口(OpenClusterPasswordComplexity)用于开启自定义密码复杂度功能。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
@@ -6785,6 +8173,128 @@ func (c *Client) OpenClusterPasswordComplexityWithContext(ctx context.Context, r
return
}
+func NewOpenClusterReadOnlyInstanceGroupAccessRequest() (request *OpenClusterReadOnlyInstanceGroupAccessRequest) {
+ request = &OpenClusterReadOnlyInstanceGroupAccessRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "OpenClusterReadOnlyInstanceGroupAccess")
+
+
+ return
+}
+
+func NewOpenClusterReadOnlyInstanceGroupAccessResponse() (response *OpenClusterReadOnlyInstanceGroupAccessResponse) {
+ response = &OpenClusterReadOnlyInstanceGroupAccessResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// OpenClusterReadOnlyInstanceGroupAccess
+// 本接口(OpenClusterReadOnlyInstanceGroupAccess)用于开启只读实例组接入。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) OpenClusterReadOnlyInstanceGroupAccess(request *OpenClusterReadOnlyInstanceGroupAccessRequest) (response *OpenClusterReadOnlyInstanceGroupAccessResponse, err error) {
+ return c.OpenClusterReadOnlyInstanceGroupAccessWithContext(context.Background(), request)
+}
+
+// OpenClusterReadOnlyInstanceGroupAccess
+// 本接口(OpenClusterReadOnlyInstanceGroupAccess)用于开启只读实例组接入。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) OpenClusterReadOnlyInstanceGroupAccessWithContext(ctx context.Context, request *OpenClusterReadOnlyInstanceGroupAccessRequest) (response *OpenClusterReadOnlyInstanceGroupAccessResponse, err error) {
+ if request == nil {
+ request = NewOpenClusterReadOnlyInstanceGroupAccessRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("OpenClusterReadOnlyInstanceGroupAccess require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewOpenClusterReadOnlyInstanceGroupAccessResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewOpenClusterTransparentEncryptRequest() (request *OpenClusterTransparentEncryptRequest) {
+ request = &OpenClusterTransparentEncryptRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "OpenClusterTransparentEncrypt")
+
+
+ return
+}
+
+func NewOpenClusterTransparentEncryptResponse() (response *OpenClusterTransparentEncryptResponse) {
+ response = &OpenClusterTransparentEncryptResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// OpenClusterTransparentEncrypt
+// 开通集群透明加密
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) OpenClusterTransparentEncrypt(request *OpenClusterTransparentEncryptRequest) (response *OpenClusterTransparentEncryptResponse, err error) {
+ return c.OpenClusterTransparentEncryptWithContext(context.Background(), request)
+}
+
+// OpenClusterTransparentEncrypt
+// 开通集群透明加密
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) OpenClusterTransparentEncryptWithContext(ctx context.Context, request *OpenClusterTransparentEncryptRequest) (response *OpenClusterTransparentEncryptResponse, err error) {
+ if request == nil {
+ request = NewOpenClusterTransparentEncryptRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("OpenClusterTransparentEncrypt require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewOpenClusterTransparentEncryptResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewOpenReadOnlyInstanceExclusiveAccessRequest() (request *OpenReadOnlyInstanceExclusiveAccessRequest) {
request = &OpenReadOnlyInstanceExclusiveAccessRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -6799,12 +8309,13 @@ func NewOpenReadOnlyInstanceExclusiveAccessRequest() (request *OpenReadOnlyInsta
func NewOpenReadOnlyInstanceExclusiveAccessResponse() (response *OpenReadOnlyInstanceExclusiveAccessResponse) {
response = &OpenReadOnlyInstanceExclusiveAccessResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OpenReadOnlyInstanceExclusiveAccess
-// 开通只读实例独有访问接入组
+// 本接口(OpenReadOnlyInstanceExclusiveAccess)用于开通只读实例独有访问接入组。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6818,7 +8329,7 @@ func (c *Client) OpenReadOnlyInstanceExclusiveAccess(request *OpenReadOnlyInstan
}
// OpenReadOnlyInstanceExclusiveAccess
-// 开通只读实例独有访问接入组
+// 本接口(OpenReadOnlyInstanceExclusiveAccess)用于开通只读实例独有访问接入组。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6857,12 +8368,13 @@ func NewOpenWanRequest() (request *OpenWanRequest) {
func NewOpenWanResponse() (response *OpenWanResponse) {
response = &OpenWanResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// OpenWan
-// 本接口(OpenWan)用于开通外网
+// 本接口(OpenWan)用于开通外网。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6881,7 +8393,7 @@ func (c *Client) OpenWan(request *OpenWanRequest) (response *OpenWanResponse, er
}
// OpenWan
-// 本接口(OpenWan)用于开通外网
+// 本接口(OpenWan)用于开通外网。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -6925,12 +8437,13 @@ func NewPauseServerlessRequest() (request *PauseServerlessRequest) {
func NewPauseServerlessResponse() (response *PauseServerlessResponse) {
response = &PauseServerlessResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// PauseServerless
-// 暂停serverless集群
+// 本接口(PauseServerless)用于暂停 serverless 集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -6940,12 +8453,13 @@ func NewPauseServerlessResponse() (response *PauseServerlessResponse) {
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) PauseServerless(request *PauseServerlessRequest) (response *PauseServerlessResponse, err error) {
return c.PauseServerlessWithContext(context.Background(), request)
}
// PauseServerless
-// 暂停serverless集群
+// 本接口(PauseServerless)用于暂停 serverless 集群。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -6955,6 +8469,7 @@ func (c *Client) PauseServerless(request *PauseServerlessRequest) (response *Pau
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) PauseServerlessWithContext(ctx context.Context, request *PauseServerlessRequest) (response *PauseServerlessResponse, err error) {
if request == nil {
request = NewPauseServerlessRequest()
@@ -6985,12 +8500,13 @@ func NewRefundResourcePackageRequest() (request *RefundResourcePackageRequest) {
func NewRefundResourcePackageResponse() (response *RefundResourcePackageResponse) {
response = &RefundResourcePackageResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// RefundResourcePackage
-// 退款资源包
+// 本接口(RefundResourcePackage)用于资源包退款。
//
// 可能返回的错误码:
// FAILEDOPERATION_REFUNDSOURCEPACKAGEERROR = "FailedOperation.RefundSourcePackageError"
@@ -7002,7 +8518,7 @@ func (c *Client) RefundResourcePackage(request *RefundResourcePackageRequest) (r
}
// RefundResourcePackage
-// 退款资源包
+// 本接口(RefundResourcePackage)用于资源包退款。
//
// 可能返回的错误码:
// FAILEDOPERATION_REFUNDSOURCEPACKAGEERROR = "FailedOperation.RefundSourcePackageError"
@@ -7039,26 +8555,31 @@ func NewReloadBalanceProxyNodeRequest() (request *ReloadBalanceProxyNodeRequest)
func NewReloadBalanceProxyNodeResponse() (response *ReloadBalanceProxyNodeResponse) {
response = &ReloadBalanceProxyNodeResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ReloadBalanceProxyNode
-// 负载均衡数据库代理
+// 本接口(ReloadBalanceProxyNode)用于负载均衡数据库代理。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (c *Client) ReloadBalanceProxyNode(request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error) {
return c.ReloadBalanceProxyNodeWithContext(context.Background(), request)
}
// ReloadBalanceProxyNode
-// 负载均衡数据库代理
+// 本接口(ReloadBalanceProxyNode)用于负载均衡数据库代理。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
func (c *Client) ReloadBalanceProxyNodeWithContext(ctx context.Context, request *ReloadBalanceProxyNodeRequest) (response *ReloadBalanceProxyNodeResponse, err error) {
if request == nil {
request = NewReloadBalanceProxyNodeRequest()
@@ -7089,16 +8610,18 @@ func NewRemoveClusterSlaveZoneRequest() (request *RemoveClusterSlaveZoneRequest)
func NewRemoveClusterSlaveZoneResponse() (response *RemoveClusterSlaveZoneResponse) {
response = &RemoveClusterSlaveZoneResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// RemoveClusterSlaveZone
-// 删除从可用区
+// 本接口(RemoveClusterSlaveZone)用于关闭集群多可用区部署。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -7107,11 +8630,12 @@ func (c *Client) RemoveClusterSlaveZone(request *RemoveClusterSlaveZoneRequest)
}
// RemoveClusterSlaveZone
-// 删除从可用区
+// 本接口(RemoveClusterSlaveZone)用于关闭集群多可用区部署。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
@@ -7131,6 +8655,79 @@ func (c *Client) RemoveClusterSlaveZoneWithContext(ctx context.Context, request
return
}
+func NewRenewClustersRequest() (request *RenewClustersRequest) {
+ request = &RenewClustersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "RenewClusters")
+
+
+ return
+}
+
+func NewRenewClustersResponse() (response *RenewClustersResponse) {
+ response = &RenewClustersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RenewClusters
+// 续费集群
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) RenewClusters(request *RenewClustersRequest) (response *RenewClustersResponse, err error) {
+ return c.RenewClustersWithContext(context.Background(), request)
+}
+
+// RenewClusters
+// 续费集群
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
+// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDREGIONIDERROR = "InvalidParameterValue.InvalidRegionIdError"
+// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
+// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
+// RESOURCEUNAVAILABLE_INSTANCELOCKFAIL = "ResourceUnavailable.InstanceLockFail"
+// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) RenewClustersWithContext(ctx context.Context, request *RenewClustersRequest) (response *RenewClustersResponse, err error) {
+ if request == nil {
+ request = NewRenewClustersRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RenewClusters require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRenewClustersResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest) {
request = &ResetAccountPasswordRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -7145,12 +8742,13 @@ func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest) {
func NewResetAccountPasswordResponse() (response *ResetAccountPasswordResponse) {
response = &ResetAccountPasswordResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ResetAccountPassword
-// 本接口(ResetAccountPassword)用于重置实例的数据库账号密码。
+// 本接口(ResetAccountPassword)用于修改数据库账号密码。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7174,7 +8772,7 @@ func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (res
}
// ResetAccountPassword
-// 本接口(ResetAccountPassword)用于重置实例的数据库账号密码。
+// 本接口(ResetAccountPassword)用于修改数据库账号密码。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7223,12 +8821,13 @@ func NewRestartInstanceRequest() (request *RestartInstanceRequest) {
func NewRestartInstanceResponse() (response *RestartInstanceResponse) {
response = &RestartInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// RestartInstance
-// 重启实例
+// 本接口(RestartInstance)用于重启实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -7272,7 +8871,7 @@ func (c *Client) RestartInstance(request *RestartInstanceRequest) (response *Res
}
// RestartInstance
-// 重启实例
+// 本接口(RestartInstance)用于重启实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -7341,12 +8940,13 @@ func NewResumeServerlessRequest() (request *ResumeServerlessRequest) {
func NewResumeServerlessResponse() (response *ResumeServerlessResponse) {
response = &ResumeServerlessResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// ResumeServerless
-// 恢复serverless集群
+// 本接口(ResumeServerless)用于恢复 serverless 集群(启动暂停的集群)。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7365,7 +8965,7 @@ func (c *Client) ResumeServerless(request *ResumeServerlessRequest) (response *R
}
// ResumeServerless
-// 恢复serverless集群
+// 本接口(ResumeServerless)用于恢复 serverless 集群(启动暂停的集群)。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7409,12 +9009,13 @@ func NewRevokeAccountPrivilegesRequest() (request *RevokeAccountPrivilegesReques
func NewRevokeAccountPrivilegesResponse() (response *RevokeAccountPrivilegesResponse) {
response = &RevokeAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// RevokeAccountPrivileges
-// 批量回收账号权限
+// 本接口(RevokeAccountPrivileges)用于批量回收账号权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7458,7 +9059,7 @@ func (c *Client) RevokeAccountPrivileges(request *RevokeAccountPrivilegesRequest
}
// RevokeAccountPrivileges
-// 批量回收账号权限
+// 本接口(RevokeAccountPrivileges)用于批量回收账号权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7527,12 +9128,13 @@ func NewRollBackClusterRequest() (request *RollBackClusterRequest) {
func NewRollBackClusterResponse() (response *RollBackClusterResponse) {
response = &RollBackClusterResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// RollBackCluster
-// 本接口(RollBackCluster)用于回档集群
+// 本接口(RollBackCluster)用于集群回档。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -7549,7 +9151,7 @@ func (c *Client) RollBackCluster(request *RollBackClusterRequest) (response *Rol
}
// RollBackCluster
-// 本接口(RollBackCluster)用于回档集群
+// 本接口(RollBackCluster)用于集群回档。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -7577,6 +9179,103 @@ func (c *Client) RollBackClusterWithContext(ctx context.Context, request *RollBa
return
}
+func NewRollbackToNewClusterRequest() (request *RollbackToNewClusterRequest) {
+ request = &RollbackToNewClusterRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "RollbackToNewCluster")
+
+
+ return
+}
+
+func NewRollbackToNewClusterResponse() (response *RollbackToNewClusterResponse) {
+ response = &RollbackToNewClusterResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RollbackToNewCluster
+// 本接口(RollbackToNewCluster)用于回档到新集群。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
+// FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_QUERYSPECBYSPECCODEERROR = "FailedOperation.QuerySpecBySpecCodeError"
+// FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
+// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound"
+// INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
+// INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
+// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound"
+// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
+// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
+// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
+// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
+// OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError"
+// OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError"
+// UNAUTHORIZEDOPERATION_NOTREALNAMEACCOUNT = "UnauthorizedOperation.NotRealNameAccount"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) RollbackToNewCluster(request *RollbackToNewClusterRequest) (response *RollbackToNewClusterResponse, err error) {
+ return c.RollbackToNewClusterWithContext(context.Background(), request)
+}
+
+// RollbackToNewCluster
+// 本接口(RollbackToNewCluster)用于回档到新集群。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
+// FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_QUERYSPECBYSPECCODEERROR = "FailedOperation.QuerySpecBySpecCodeError"
+// FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError"
+// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
+// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
+// INTERNALERROR_INTERNALHTTPSERVERERROR = "InternalError.InternalHttpServerError"
+// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
+// INVALIDPARAMETERVALUE_DBTYPENOTFOUND = "InvalidParameterValue.DBTypeNotFound"
+// INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
+// INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
+// INVALIDPARAMETERVALUE_INVALIDZONEIDERROR = "InvalidParameterValue.InvalidZoneIdError"
+// INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound"
+// INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
+// INVALIDPARAMETERVALUE_SUBNETNOTFOUND = "InvalidParameterValue.SubnetNotFound"
+// INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
+// LIMITEXCEEDED_USERINSTANCELIMIT = "LimitExceeded.UserInstanceLimit"
+// OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError"
+// OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = "OperationDenied.UserNotAuthenticatedError"
+// UNAUTHORIZEDOPERATION_NOTREALNAMEACCOUNT = "UnauthorizedOperation.NotRealNameAccount"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) RollbackToNewClusterWithContext(ctx context.Context, request *RollbackToNewClusterRequest) (response *RollbackToNewClusterResponse, err error) {
+ if request == nil {
+ request = NewRollbackToNewClusterRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RollbackToNewCluster require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRollbackToNewClusterResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewSearchClusterDatabasesRequest() (request *SearchClusterDatabasesRequest) {
request = &SearchClusterDatabasesRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -7591,12 +9290,13 @@ func NewSearchClusterDatabasesRequest() (request *SearchClusterDatabasesRequest)
func NewSearchClusterDatabasesResponse() (response *SearchClusterDatabasesResponse) {
response = &SearchClusterDatabasesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SearchClusterDatabases
-// 本接口(SearchClusterDatabases)搜索集群database列表
+// 本接口(SearchClusterDatabases)用于搜索集群数据库列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7608,7 +9308,7 @@ func (c *Client) SearchClusterDatabases(request *SearchClusterDatabasesRequest)
}
// SearchClusterDatabases
-// 本接口(SearchClusterDatabases)搜索集群database列表
+// 本接口(SearchClusterDatabases)用于搜索集群数据库列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7645,12 +9345,13 @@ func NewSearchClusterTablesRequest() (request *SearchClusterTablesRequest) {
func NewSearchClusterTablesResponse() (response *SearchClusterTablesResponse) {
response = &SearchClusterTablesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SearchClusterTables
-// 本接口(SearchClusterTables)搜索集群数据表列表
+// 本接口(SearchClusterTables)用于搜索集群数据表列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7662,7 +9363,7 @@ func (c *Client) SearchClusterTables(request *SearchClusterTablesRequest) (respo
}
// SearchClusterTables
-// 本接口(SearchClusterTables)搜索集群数据表列表
+// 本接口(SearchClusterTables)用于搜索集群数据表列表。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7699,12 +9400,13 @@ func NewSetRenewFlagRequest() (request *SetRenewFlagRequest) {
func NewSetRenewFlagResponse() (response *SetRenewFlagResponse) {
response = &SetRenewFlagResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SetRenewFlag
-// SetRenewFlag设置实例的自动续费功能
+// 本接口(SetRenewFlag)用于设置实例的自动续费功能。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7728,7 +9430,7 @@ func (c *Client) SetRenewFlag(request *SetRenewFlagRequest) (response *SetRenewF
}
// SetRenewFlag
-// SetRenewFlag设置实例的自动续费功能
+// 本接口(SetRenewFlag)用于设置实例的自动续费功能。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7763,6 +9465,106 @@ func (c *Client) SetRenewFlagWithContext(ctx context.Context, request *SetRenewF
return
}
+func NewStartCLSDeliveryRequest() (request *StartCLSDeliveryRequest) {
+ request = &StartCLSDeliveryRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "StartCLSDelivery")
+
+
+ return
+}
+
+func NewStartCLSDeliveryResponse() (response *StartCLSDeliveryResponse) {
+ response = &StartCLSDeliveryResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// StartCLSDelivery
+// 本接口(StartCLSDelivery)用于开启日志投递功能。
+//
+// 可能返回的错误码:
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) StartCLSDelivery(request *StartCLSDeliveryRequest) (response *StartCLSDeliveryResponse, err error) {
+ return c.StartCLSDeliveryWithContext(context.Background(), request)
+}
+
+// StartCLSDelivery
+// 本接口(StartCLSDelivery)用于开启日志投递功能。
+//
+// 可能返回的错误码:
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) StartCLSDeliveryWithContext(ctx context.Context, request *StartCLSDeliveryRequest) (response *StartCLSDeliveryResponse, err error) {
+ if request == nil {
+ request = NewStartCLSDeliveryRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("StartCLSDelivery require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewStartCLSDeliveryResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewStopCLSDeliveryRequest() (request *StopCLSDeliveryRequest) {
+ request = &StopCLSDeliveryRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cynosdb", APIVersion, "StopCLSDelivery")
+
+
+ return
+}
+
+func NewStopCLSDeliveryResponse() (response *StopCLSDeliveryResponse) {
+ response = &StopCLSDeliveryResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// StopCLSDelivery
+// 本接口(StopCLSDelivery)用于停止日志投递功能。
+//
+// 可能返回的错误码:
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) StopCLSDelivery(request *StopCLSDeliveryRequest) (response *StopCLSDeliveryResponse, err error) {
+ return c.StopCLSDeliveryWithContext(context.Background(), request)
+}
+
+// StopCLSDelivery
+// 本接口(StopCLSDelivery)用于停止日志投递功能。
+//
+// 可能返回的错误码:
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
+func (c *Client) StopCLSDeliveryWithContext(ctx context.Context, request *StopCLSDeliveryRequest) (response *StopCLSDeliveryResponse, err error) {
+ if request == nil {
+ request = NewStopCLSDeliveryRequest()
+ }
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("StopCLSDelivery require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewStopCLSDeliveryResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewSwitchClusterVpcRequest() (request *SwitchClusterVpcRequest) {
request = &SwitchClusterVpcRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -7777,12 +9579,13 @@ func NewSwitchClusterVpcRequest() (request *SwitchClusterVpcRequest) {
func NewSwitchClusterVpcResponse() (response *SwitchClusterVpcResponse) {
response = &SwitchClusterVpcResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SwitchClusterVpc
-// 更换集群vpc
+// 本接口(SwitchClusterVpc)用于更换集群vpc。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7797,7 +9600,7 @@ func (c *Client) SwitchClusterVpc(request *SwitchClusterVpcRequest) (response *S
}
// SwitchClusterVpc
-// 更换集群vpc
+// 本接口(SwitchClusterVpc)用于更换集群vpc。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7837,12 +9640,13 @@ func NewSwitchClusterZoneRequest() (request *SwitchClusterZoneRequest) {
func NewSwitchClusterZoneResponse() (response *SwitchClusterZoneResponse) {
response = &SwitchClusterZoneResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SwitchClusterZone
-// 切换到从可用区
+// 本接口(SwitchClusterZone)用于切换集群的主备可用区。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -7855,7 +9659,7 @@ func (c *Client) SwitchClusterZone(request *SwitchClusterZoneRequest) (response
}
// SwitchClusterZone
-// 切换到从可用区
+// 本接口(SwitchClusterZone)用于切换集群的主备可用区。
//
// 可能返回的错误码:
// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -7893,12 +9697,13 @@ func NewSwitchProxyVpcRequest() (request *SwitchProxyVpcRequest) {
func NewSwitchProxyVpcResponse() (response *SwitchProxyVpcResponse) {
response = &SwitchProxyVpcResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// SwitchProxyVpc
-// 本接口(SwitchProxyVpc)更换数据库代理vpc
+// 本接口(SwitchProxyVpc)用于更换数据库代理vpc。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7914,7 +9719,7 @@ func (c *Client) SwitchProxyVpc(request *SwitchProxyVpcRequest) (response *Switc
}
// SwitchProxyVpc
-// 本接口(SwitchProxyVpc)更换数据库代理vpc
+// 本接口(SwitchProxyVpc)用于更换数据库代理vpc。
//
// 可能返回的错误码:
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -7955,12 +9760,13 @@ func NewUnbindClusterResourcePackagesRequest() (request *UnbindClusterResourcePa
func NewUnbindClusterResourcePackagesResponse() (response *UnbindClusterResourcePackagesResponse) {
response = &UnbindClusterResourcePackagesResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// UnbindClusterResourcePackages
-// cynos解绑资源包
+// 本接口(UnbindClusterResourcePackages)用于解除资源包与集群之间的绑定关系。
//
// 可能返回的错误码:
// FAILEDOPERATION_QUERYSOURCEPACKAGEERROR = "FailedOperation.QuerySourcePackageError"
@@ -7975,7 +9781,7 @@ func (c *Client) UnbindClusterResourcePackages(request *UnbindClusterResourcePac
}
// UnbindClusterResourcePackages
-// cynos解绑资源包
+// 本接口(UnbindClusterResourcePackages)用于解除资源包与集群之间的绑定关系。
//
// 可能返回的错误码:
// FAILEDOPERATION_QUERYSOURCEPACKAGEERROR = "FailedOperation.QuerySourcePackageError"
@@ -8015,12 +9821,13 @@ func NewUpgradeClusterVersionRequest() (request *UpgradeClusterVersionRequest) {
func NewUpgradeClusterVersionResponse() (response *UpgradeClusterVersionResponse) {
response = &UpgradeClusterVersionResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// UpgradeClusterVersion
-// 更新集群Cynos内核版本
+// 本接口(UpgradeClusterVersion)用于更新内核小版本。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -8064,7 +9871,7 @@ func (c *Client) UpgradeClusterVersion(request *UpgradeClusterVersionRequest) (r
}
// UpgradeClusterVersion
-// 更新集群Cynos内核版本
+// 本接口(UpgradeClusterVersion)用于更新内核小版本。
//
// 可能返回的错误码:
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
@@ -8133,12 +9940,13 @@ func NewUpgradeInstanceRequest() (request *UpgradeInstanceRequest) {
func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse) {
response = &UpgradeInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// UpgradeInstance
-// 升级实例
+// 本接口(UpgradeInstance)用于实例变配。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
@@ -8152,6 +9960,7 @@ func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse) {
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error) {
@@ -8159,7 +9968,7 @@ func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *Upg
}
// UpgradeInstance
-// 升级实例
+// 本接口(UpgradeInstance)用于实例变配。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDER = "FailedOperation.CreateOrder"
@@ -8173,6 +9982,7 @@ func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *Upg
// INVALIDPARAMETERVALUE_PARAMERROR = "InvalidParameterValue.ParamError"
// OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = "OperationDenied.ClusterOpNotAllowedError"
// OPERATIONDENIED_INSTANCESTATUSDENIEDERROR = "OperationDenied.InstanceStatusDeniedError"
+// OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError"
// RESOURCENOTFOUND_CLUSTERNOTFOUNDERROR = "ResourceNotFound.ClusterNotFoundError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error) {
@@ -8205,28 +10015,49 @@ func NewUpgradeProxyRequest() (request *UpgradeProxyRequest) {
func NewUpgradeProxyResponse() (response *UpgradeProxyResponse) {
response = &UpgradeProxyResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// UpgradeProxy
-// 升级数据库代理配置
+// 本接口(UpgradeProxy)用于升级数据库代理配置。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_SPECNOTFOUNDERROR = "FailedOperation.SpecNotFoundError"
+// OPERATIONDENIED_GETPROXYGROUPFAILEDERROR = "OperationDenied.GetProxyGroupFailedError"
+// OPERATIONDENIED_PROXYCONNECTCOUNTCHECKERROR = "OperationDenied.ProxyConnectCountCheckError"
+// OPERATIONDENIED_PROXYNODECOUNTCHECKERROR = "OperationDenied.ProxyNodeCountCheckError"
+// OPERATIONDENIED_PROXYNOTRUNNINGERROR = "OperationDenied.ProxyNotRunningError"
+// OPERATIONDENIED_PROXYSALEZONECHECKERROR = "OperationDenied.ProxySaleZoneCheckError"
+// OPERATIONDENIED_PROXYVERSIONCHECKERROR = "OperationDenied.ProxyVersionCheckError"
+// OPERATIONDENIED_PROXYZONECHECKERROR = "OperationDenied.ProxyZoneCheckError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeProxy(request *UpgradeProxyRequest) (response *UpgradeProxyResponse, err error) {
return c.UpgradeProxyWithContext(context.Background(), request)
}
// UpgradeProxy
-// 升级数据库代理配置
+// 本接口(UpgradeProxy)用于升级数据库代理配置。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
+// FAILEDOPERATION_SPECNOTFOUNDERROR = "FailedOperation.SpecNotFoundError"
+// OPERATIONDENIED_GETPROXYGROUPFAILEDERROR = "OperationDenied.GetProxyGroupFailedError"
+// OPERATIONDENIED_PROXYCONNECTCOUNTCHECKERROR = "OperationDenied.ProxyConnectCountCheckError"
+// OPERATIONDENIED_PROXYNODECOUNTCHECKERROR = "OperationDenied.ProxyNodeCountCheckError"
+// OPERATIONDENIED_PROXYNOTRUNNINGERROR = "OperationDenied.ProxyNotRunningError"
+// OPERATIONDENIED_PROXYSALEZONECHECKERROR = "OperationDenied.ProxySaleZoneCheckError"
+// OPERATIONDENIED_PROXYVERSIONCHECKERROR = "OperationDenied.ProxyVersionCheckError"
+// OPERATIONDENIED_PROXYZONECHECKERROR = "OperationDenied.ProxyZoneCheckError"
+// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeProxyWithContext(ctx context.Context, request *UpgradeProxyRequest) (response *UpgradeProxyResponse, err error) {
if request == nil {
request = NewUpgradeProxyRequest()
@@ -8257,28 +10088,31 @@ func NewUpgradeProxyVersionRequest() (request *UpgradeProxyVersionRequest) {
func NewUpgradeProxyVersionResponse() (response *UpgradeProxyVersionResponse) {
response = &UpgradeProxyVersionResponse{
BaseResponse: &tchttp.BaseResponse{},
- }
+ }
return
+
}
// UpgradeProxyVersion
-// 升级数据库代理版本
+// 本接口(UpgradeProxyVersion)用于升级数据库代理版本。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
func (c *Client) UpgradeProxyVersion(request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error) {
return c.UpgradeProxyVersionWithContext(context.Background(), request)
}
// UpgradeProxyVersion
-// 升级数据库代理版本
+// 本接口(UpgradeProxyVersion)用于升级数据库代理版本。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
// FAILEDOPERATION_FLOWCREATEERROR = "FailedOperation.FlowCreateError"
+// FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
func (c *Client) UpgradeProxyVersionWithContext(ctx context.Context, request *UpgradeProxyVersionRequest) (response *UpgradeProxyVersionResponse, err error) {
if request == nil {
request = NewUpgradeProxyVersionRequest()
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/errors.go
index 52c02ec870..68980bd7c1 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/errors.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/errors.go
@@ -41,6 +41,9 @@ const (
// 创建资源包失败
FAILEDOPERATION_CREATESOURCEPACKAGEERROR = "FailedOperation.CreateSourcePackageError"
+ // 设置备份策略失败,请稍后重试。如果持续不成功,请联系客服进行处理。
+ FAILEDOPERATION_CYNOSDBMYSQLSETBACKUPSTRATEGY = "FailedOperation.CynosdbMysqlSetBackupStrategy"
+
// 数据库访问失败,请稍后重试。如果持续不成功,请联系客服进行处理。
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
@@ -65,6 +68,9 @@ const (
// 账号余额不足。
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
+ // 修改资源包抵扣优先级失败,请检查参数并稍后重试
+ FAILEDOPERATION_MODIFYDEDUCTIONPRIORITYERROR = "FailedOperation.ModifyDeductionPriorityError"
+
// 操作失败,请稍后重试。如果持续不成功,请联系客服进行处理。
FAILEDOPERATION_OPERATIONFAILEDERROR = "FailedOperation.OperationFailedError"
@@ -80,6 +86,12 @@ const (
// 资源包退款失败
FAILEDOPERATION_REFUNDSOURCEPACKAGEERROR = "FailedOperation.RefundSourcePackageError"
+ // 修改策略失败。
+ FAILEDOPERATION_SERVERLESSSETSTRATEGYERROR = "FailedOperation.ServerlessSetStrategyError"
+
+ // 规格信息{{1}}搜索失败
+ FAILEDOPERATION_SPECNOTFOUNDERROR = "FailedOperation.SpecNotFoundError"
+
// 创建并支付订单失败,请稍后重试。如果持续不成功,请联系客服进行处理。
FAILEDOPERATION_TRADECREATEORDERERROR = "FailedOperation.TradeCreateOrderError"
@@ -92,6 +104,9 @@ const (
// 查询数据库失败。
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
+ // 客户未授权
+ INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
+
// 获取安全组信息失败。
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
@@ -215,6 +230,9 @@ const (
// 预付费类型不允许该操作。
INVALIDPARAMETERVALUE_PREPAYPAYMODEERROR = "InvalidParameterValue.PrePayPayModeError"
+ // 找不到该ProjectId
+ INVALIDPARAMETERVALUE_PROJECTIDNOTFOUND = "InvalidParameterValue.ProjectIdNotFound"
+
// 所选地域和可用区不可用。
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
@@ -242,6 +260,9 @@ const (
// 缺少参数错误。
MISSINGPARAMETER = "MissingParameter"
+ // 审计规则不存在
+ OPERATIONDENIED_AUDITPOLICYNOTEXISTERROR = "OperationDenied.AuditPolicyNotExistError"
+
// 权限校验失败。
OPERATIONDENIED_CAMDENIEDERROR = "OperationDenied.CamDeniedError"
@@ -251,6 +272,9 @@ const (
// 集群当前状态不允许该操作。
OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = "OperationDenied.ClusterStatusDeniedError"
+ // 获取proxy失败
+ OPERATIONDENIED_GETPROXYGROUPFAILEDERROR = "OperationDenied.GetProxyGroupFailedError"
+
// 您没有权限操作资源。
OPERATIONDENIED_INSTANCEACCESSDENIEDERROR = "OperationDenied.InstanceAccessDeniedError"
@@ -263,6 +287,24 @@ const (
// 账号余额不足。
OPERATIONDENIED_INSUFFICIENTBALANCEERROR = "OperationDenied.InsufficientBalanceError"
+ // proxy节点支持的可创建的连接数量不匹配,可支持的创建连接数{{1}},当前连接数{{2}}
+ OPERATIONDENIED_PROXYCONNECTCOUNTCHECKERROR = "OperationDenied.ProxyConnectCountCheckError"
+
+ // 代理节点数量检查失败
+ OPERATIONDENIED_PROXYNODECOUNTCHECKERROR = "OperationDenied.ProxyNodeCountCheckError"
+
+ // 非运行的proxy
+ OPERATIONDENIED_PROXYNOTRUNNINGERROR = "OperationDenied.ProxyNotRunningError"
+
+ // 可用区不存在
+ OPERATIONDENIED_PROXYSALEZONECHECKERROR = "OperationDenied.ProxySaleZoneCheckError"
+
+ // 代理版本检查失败
+ OPERATIONDENIED_PROXYVERSIONCHECKERROR = "OperationDenied.ProxyVersionCheckError"
+
+ // proxy可用区校验失败
+ OPERATIONDENIED_PROXYZONECHECKERROR = "OperationDenied.ProxyZoneCheckError"
+
// serverless集群当前状态不允许该操作。
OPERATIONDENIED_SERVERLESSCLUSTERSTATUSDENIED = "OperationDenied.ServerlessClusterStatusDenied"
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/models.go
index 83c391e098..90658ef05b 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107/models.go
@@ -15,72 +15,88 @@
package v20190107
import (
- "encoding/json"
tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
+ "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json"
)
type Ability struct {
// 是否支持从可用区
- IsSupportSlaveZone *string `json:"IsSupportSlaveZone,omitempty" name:"IsSupportSlaveZone"`
+ IsSupportSlaveZone *string `json:"IsSupportSlaveZone,omitnil,omitempty" name:"IsSupportSlaveZone"`
// 不支持从可用区的原因
// 注意:此字段可能返回 null,表示取不到有效值。
- NonsupportSlaveZoneReason *string `json:"NonsupportSlaveZoneReason,omitempty" name:"NonsupportSlaveZoneReason"`
+ NonsupportSlaveZoneReason *string `json:"NonsupportSlaveZoneReason,omitnil,omitempty" name:"NonsupportSlaveZoneReason"`
// 是否支持RO实例
- IsSupportRo *string `json:"IsSupportRo,omitempty" name:"IsSupportRo"`
+ IsSupportRo *string `json:"IsSupportRo,omitnil,omitempty" name:"IsSupportRo"`
// 不支持RO实例的原因
// 注意:此字段可能返回 null,表示取不到有效值。
- NonsupportRoReason *string `json:"NonsupportRoReason,omitempty" name:"NonsupportRoReason"`
+ NonsupportRoReason *string `json:"NonsupportRoReason,omitnil,omitempty" name:"NonsupportRoReason"`
+
+ // 是否支持手动发起快照备份
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IsSupportManualSnapshot *string `json:"IsSupportManualSnapshot,omitnil,omitempty" name:"IsSupportManualSnapshot"`
+
+ // 是否支持透明数据加密
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IsSupportTransparentDataEncryption *string `json:"IsSupportTransparentDataEncryption,omitnil,omitempty" name:"IsSupportTransparentDataEncryption"`
+
+ // 不支持透明数据加密原因
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NoSupportTransparentDataEncryptionReason *string `json:"NoSupportTransparentDataEncryptionReason,omitnil,omitempty" name:"NoSupportTransparentDataEncryptionReason"`
+
+ // 是否支持手动发起逻辑备份
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IsSupportManualLogic *string `json:"IsSupportManualLogic,omitnil,omitempty" name:"IsSupportManualLogic"`
}
type Account struct {
// 数据库账号名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 数据库账号描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 创建时间
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 更新时间
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 主机
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 用户最大连接数
- MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"`
+ MaxUserConnections *int64 `json:"MaxUserConnections,omitnil,omitempty" name:"MaxUserConnections"`
}
type AccountParam struct {
// 参数名称,当前仅支持参数:max_user_connections
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 参数值
- ParamValue *string `json:"ParamValue,omitempty" name:"ParamValue"`
+ ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"`
}
// Predefined struct for user
type ActivateInstanceRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例 ID 列表,单个实例 ID 格式如:cynosdbmysql-ins-n7ocdslw,与TDSQL-C MySQL数据库控制台页面中显示的实例 ID 相同,可使用 查询实例列表 接口获取,其值为输出参数中字段 InstanceId 的值。
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
}
type ActivateInstanceRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例 ID 列表,单个实例 ID 格式如:cynosdbmysql-ins-n7ocdslw,与TDSQL-C MySQL数据库控制台页面中显示的实例 ID 相同,可使用 查询实例列表 接口获取,其值为输出参数中字段 InstanceId 的值。
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
}
func (r *ActivateInstanceRequest) ToJsonString() string {
@@ -106,10 +122,10 @@ func (r *ActivateInstanceRequest) FromJsonString(s string) error {
// Predefined struct for user
type ActivateInstanceResponseParams struct {
// 任务流id
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ActivateInstanceResponse struct {
@@ -131,20 +147,26 @@ func (r *ActivateInstanceResponse) FromJsonString(s string) error {
// Predefined struct for user
type AddClusterSlaveZoneRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 从可用区
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
+
+ // binlog同步方式。默认值:async。可选值:sync、semisync、async
+ BinlogSyncWay *string `json:"BinlogSyncWay,omitnil,omitempty" name:"BinlogSyncWay"`
}
type AddClusterSlaveZoneRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 从可用区
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
+
+ // binlog同步方式。默认值:async。可选值:sync、semisync、async
+ BinlogSyncWay *string `json:"BinlogSyncWay,omitnil,omitempty" name:"BinlogSyncWay"`
}
func (r *AddClusterSlaveZoneRequest) ToJsonString() string {
@@ -161,6 +183,7 @@ func (r *AddClusterSlaveZoneRequest) FromJsonString(s string) error {
}
delete(f, "ClusterId")
delete(f, "SlaveZone")
+ delete(f, "BinlogSyncWay")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddClusterSlaveZoneRequest has unknown keys!", "")
}
@@ -170,10 +193,10 @@ func (r *AddClusterSlaveZoneRequest) FromJsonString(s string) error {
// Predefined struct for user
type AddClusterSlaveZoneResponseParams struct {
// 异步FlowId
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type AddClusterSlaveZoneResponse struct {
@@ -195,106 +218,120 @@ func (r *AddClusterSlaveZoneResponse) FromJsonString(s string) error {
// Predefined struct for user
type AddInstancesRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存,单位为GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
- // 新增只读实例数,取值范围为[0,4]
- ReadOnlyCount *int64 `json:"ReadOnlyCount,omitempty" name:"ReadOnlyCount"`
+ // 新增只读实例数,取值范围为(0,15]
+ ReadOnlyCount *int64 `json:"ReadOnlyCount,omitnil,omitempty" name:"ReadOnlyCount"`
- // 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。当前版本已废弃。
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
+
+ // 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
+ //
+ // Deprecated: InstanceGrpId is deprecated.
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
// 所属VPC网络ID。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 所属子网ID,如果设置了VpcId,则SubnetId必填。
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 新增RO组时使用的Port,取值范围为[0,65535)
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 实例名称,字符串长度范围为[0,64),取值范围为大小写字母,0-9数字,'_','-','.'
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 数据库类型,取值范围:
//
MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 订单来源,字符串长度范围为[0,64)
- OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"`
+ OrderSource *string `json:"OrderSource,omitnil,omitempty" name:"OrderSource"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
- // 参数模版ID
- ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"`
+ // 参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
// 参数列表,ParamTemplateId 传入时InstanceParams才有效
- InstanceParams []*ModifyParamItem `json:"InstanceParams,omitempty" name:"InstanceParams"`
+ InstanceParams []*ModifyParamItem `json:"InstanceParams,omitnil,omitempty" name:"InstanceParams"`
// 安全组ID,新建只读实例时可以指定安全组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+
+ // proxy同步升级
+ UpgradeProxy *UpgradeProxy `json:"UpgradeProxy,omitnil,omitempty" name:"UpgradeProxy"`
}
type AddInstancesRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存,单位为GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 新增只读实例数,取值范围为(0,15]
+ ReadOnlyCount *int64 `json:"ReadOnlyCount,omitnil,omitempty" name:"ReadOnlyCount"`
- // 新增只读实例数,取值范围为[0,4]
- ReadOnlyCount *int64 `json:"ReadOnlyCount,omitempty" name:"ReadOnlyCount"`
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
- // 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。当前版本已废弃。
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ // 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
// 所属VPC网络ID。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 所属子网ID,如果设置了VpcId,则SubnetId必填。
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 新增RO组时使用的Port,取值范围为[0,65535)
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 实例名称,字符串长度范围为[0,64),取值范围为大小写字母,0-9数字,'_','-','.'
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 订单来源,字符串长度范围为[0,64)
- OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"`
+ OrderSource *string `json:"OrderSource,omitnil,omitempty" name:"OrderSource"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
- // 参数模版ID
- ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"`
+ // 参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
// 参数列表,ParamTemplateId 传入时InstanceParams才有效
- InstanceParams []*ModifyParamItem `json:"InstanceParams,omitempty" name:"InstanceParams"`
+ InstanceParams []*ModifyParamItem `json:"InstanceParams,omitnil,omitempty" name:"InstanceParams"`
// 安全组ID,新建只读实例时可以指定安全组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+
+ // proxy同步升级
+ UpgradeProxy *UpgradeProxy `json:"UpgradeProxy,omitnil,omitempty" name:"UpgradeProxy"`
}
func (r *AddInstancesRequest) ToJsonString() string {
@@ -313,6 +350,7 @@ func (r *AddInstancesRequest) FromJsonString(s string) error {
delete(f, "Cpu")
delete(f, "Memory")
delete(f, "ReadOnlyCount")
+ delete(f, "DeviceType")
delete(f, "InstanceGrpId")
delete(f, "VpcId")
delete(f, "SubnetId")
@@ -325,6 +363,7 @@ func (r *AddInstancesRequest) FromJsonString(s string) error {
delete(f, "ParamTemplateId")
delete(f, "InstanceParams")
delete(f, "SecurityGroupIds")
+ delete(f, "UpgradeProxy")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddInstancesRequest has unknown keys!", "")
}
@@ -335,22 +374,22 @@ func (r *AddInstancesRequest) FromJsonString(s string) error {
type AddInstancesResponseParams struct {
// 冻结流水,一次开通一个冻结流水。
// 注意:此字段可能返回 null,表示取不到有效值。
- TranId *string `json:"TranId,omitempty" name:"TranId"`
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
// 后付费订单号。
// 注意:此字段可能返回 null,表示取不到有效值。
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
// 发货资源id列表。
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// 大订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"`
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type AddInstancesResponse struct {
@@ -370,36 +409,38 @@ func (r *AddInstancesResponse) FromJsonString(s string) error {
}
type Addr struct {
- // IP
- IP *string `json:"IP,omitempty" name:"IP"`
+ // IP地址
+ IP *string `json:"IP,omitnil,omitempty" name:"IP"`
// 端口
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
}
// Predefined struct for user
type AssociateSecurityGroupsRequestParams struct {
- // 实例组ID数组
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ // 实例组 ID 数组,cynosdbmysql-grp-前缀开头或集群 ID。
+ // 说明:要获取集群的实例组 ID,可通过 [查询集群实例组](https://cloud.tencent.com/document/product/1003/103934) 进行。
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
type AssociateSecurityGroupsRequest struct {
*tchttp.BaseRequest
- // 实例组ID数组
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ // 实例组 ID 数组,cynosdbmysql-grp-前缀开头或集群 ID。
+ // 说明:要获取集群的实例组 ID,可通过 [查询集群实例组](https://cloud.tencent.com/document/product/1003/103934) 进行。
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
func (r *AssociateSecurityGroupsRequest) ToJsonString() string {
@@ -425,8 +466,8 @@ func (r *AssociateSecurityGroupsRequest) FromJsonString(s string) error {
// Predefined struct for user
type AssociateSecurityGroupsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type AssociateSecurityGroupsResponse struct {
@@ -445,209 +486,283 @@ func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type AuditInstanceFilters struct {
+ // 过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。
+ Name *string `json:"Name,omitnil,omitempty" name:"Name"`
+
+ // true表示精确查找,false表示模糊匹配。
+ ExactMatch *bool `json:"ExactMatch,omitnil,omitempty" name:"ExactMatch"`
+
+ // 筛选值
+ Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
+}
+
+type AuditInstanceInfo struct {
+ // 项目ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // 标签信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TagList []*Tag `json:"TagList,omitnil,omitempty" name:"TagList"`
+}
+
type AuditLog struct {
// 影响行数。
- AffectRows *int64 `json:"AffectRows,omitempty" name:"AffectRows"`
+ AffectRows *int64 `json:"AffectRows,omitnil,omitempty" name:"AffectRows"`
// 错误码。
- ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"`
+ ErrCode *int64 `json:"ErrCode,omitnil,omitempty" name:"ErrCode"`
// SQL类型。
- SqlType *string `json:"SqlType,omitempty" name:"SqlType"`
+ SqlType *string `json:"SqlType,omitnil,omitempty" name:"SqlType"`
// 表名称。
- TableName *string `json:"TableName,omitempty" name:"TableName"`
+ TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`
// 实例名称。
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 审计策略名称。
- PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
+ PolicyName *string `json:"PolicyName,omitnil,omitempty" name:"PolicyName"`
// 数据库名称。
- DBName *string `json:"DBName,omitempty" name:"DBName"`
+ DBName *string `json:"DBName,omitnil,omitempty" name:"DBName"`
// SQL语句。
- Sql *string `json:"Sql,omitempty" name:"Sql"`
+ Sql *string `json:"Sql,omitnil,omitempty" name:"Sql"`
// 客户端地址。
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 用户名。
- User *string `json:"User,omitempty" name:"User"`
+ User *string `json:"User,omitnil,omitempty" name:"User"`
- // 执行时间。
- ExecTime *int64 `json:"ExecTime,omitempty" name:"ExecTime"`
+ // 执行时间,微秒。
+ ExecTime *int64 `json:"ExecTime,omitnil,omitempty" name:"ExecTime"`
- // 时间戳。
- Timestamp *string `json:"Timestamp,omitempty" name:"Timestamp"`
+ // 时间。
+ Timestamp *string `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
- // 发送行数。
- SentRows *int64 `json:"SentRows,omitempty" name:"SentRows"`
+ // 返回行数。
+ SentRows *int64 `json:"SentRows,omitnil,omitempty" name:"SentRows"`
// 执行线程ID。
- ThreadId *int64 `json:"ThreadId,omitempty" name:"ThreadId"`
+ ThreadId *int64 `json:"ThreadId,omitnil,omitempty" name:"ThreadId"`
+
+ // 扫描行数。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CheckRows *int64 `json:"CheckRows,omitnil,omitempty" name:"CheckRows"`
+
+ // cpu执行时间,微秒。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CpuTime *float64 `json:"CpuTime,omitnil,omitempty" name:"CpuTime"`
+
+ // IO等待时间,微秒。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IoWaitTime *int64 `json:"IoWaitTime,omitnil,omitempty" name:"IoWaitTime"`
+
+ // 锁等待时间,微秒。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LockWaitTime *int64 `json:"LockWaitTime,omitnil,omitempty" name:"LockWaitTime"`
+
+ // 事物持续等待时间,微秒。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TrxLivingTime *int64 `json:"TrxLivingTime,omitnil,omitempty" name:"TrxLivingTime"`
+
+ // 开始时间,与timestamp构成一个精确到纳秒的时间。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NsTime *int64 `json:"NsTime,omitnil,omitempty" name:"NsTime"`
+
+ // 日志命中规则模板的基本信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TemplateInfo []*LogRuleTemplateInfo `json:"TemplateInfo,omitnil,omitempty" name:"TemplateInfo"`
+
+ // 事务ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TrxId *int64 `json:"TrxId,omitnil,omitempty" name:"TrxId"`
}
type AuditLogFile struct {
// 审计日志文件名称
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
// 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 文件状态值。可能返回的值为:
// "creating" - 生成中;
// "failed" - 创建失败;
// "success" - 已生成;
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 文件大小,单位为 KB。
// 注意:此字段可能返回 null,表示取不到有效值。
- FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"`
+ FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"`
// 审计日志下载地址。
// 注意:此字段可能返回 null,表示取不到有效值。
- DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`
+ DownloadUrl *string `json:"DownloadUrl,omitnil,omitempty" name:"DownloadUrl"`
// 错误信息。
// 注意:此字段可能返回 null,表示取不到有效值。
- ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
+ ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
}
type AuditLogFilter struct {
// 客户端地址。
- Host []*string `json:"Host,omitempty" name:"Host"`
+ Host []*string `json:"Host,omitnil,omitempty" name:"Host"`
// 用户名。
- User []*string `json:"User,omitempty" name:"User"`
+ User []*string `json:"User,omitnil,omitempty" name:"User"`
// 数据库名称。
- DBName []*string `json:"DBName,omitempty" name:"DBName"`
+ DBName []*string `json:"DBName,omitnil,omitempty" name:"DBName"`
// 表名称。
- TableName []*string `json:"TableName,omitempty" name:"TableName"`
+ TableName []*string `json:"TableName,omitnil,omitempty" name:"TableName"`
// 审计策略名称。
- PolicyName []*string `json:"PolicyName,omitempty" name:"PolicyName"`
+ PolicyName []*string `json:"PolicyName,omitnil,omitempty" name:"PolicyName"`
// SQL 语句。支持模糊匹配。
- Sql *string `json:"Sql,omitempty" name:"Sql"`
+ Sql *string `json:"Sql,omitnil,omitempty" name:"Sql"`
// SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
- SqlType *string `json:"SqlType,omitempty" name:"SqlType"`
+ SqlType *string `json:"SqlType,omitnil,omitempty" name:"SqlType"`
// 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
- ExecTime *int64 `json:"ExecTime,omitempty" name:"ExecTime"`
+ ExecTime *int64 `json:"ExecTime,omitnil,omitempty" name:"ExecTime"`
// 影响行数。表示筛选影响行数大于该值的审计日志。
- AffectRows *int64 `json:"AffectRows,omitempty" name:"AffectRows"`
+ AffectRows *int64 `json:"AffectRows,omitnil,omitempty" name:"AffectRows"`
// SQL 类型。支持多个类型同时查询。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
- SqlTypes []*string `json:"SqlTypes,omitempty" name:"SqlTypes"`
+ SqlTypes []*string `json:"SqlTypes,omitnil,omitempty" name:"SqlTypes"`
// SQL 语句。支持传递多个sql语句。
- Sqls []*string `json:"Sqls,omitempty" name:"Sqls"`
+ Sqls []*string `json:"Sqls,omitnil,omitempty" name:"Sqls"`
// 返回行数。
- SentRows *uint64 `json:"SentRows,omitempty" name:"SentRows"`
+ SentRows *uint64 `json:"SentRows,omitnil,omitempty" name:"SentRows"`
// 线程ID。
- ThreadId []*string `json:"ThreadId,omitempty" name:"ThreadId"`
+ ThreadId []*string `json:"ThreadId,omitnil,omitempty" name:"ThreadId"`
}
type AuditRuleFilters struct {
// 单条审计规则。
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
}
type AuditRuleTemplateInfo struct {
- // 规则模版ID。
- RuleTemplateId *string `json:"RuleTemplateId,omitempty" name:"RuleTemplateId"`
+ // 规则模板ID。
+ RuleTemplateId *string `json:"RuleTemplateId,omitnil,omitempty" name:"RuleTemplateId"`
+
+ // 规则模板名称。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
+
+ // 规则模板的过滤条件
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
+
+ // 规则模板描述。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
+
+ // 规则模板创建时间。
+ CreateAt *string `json:"CreateAt,omitnil,omitempty" name:"CreateAt"`
+
+ // 规则模板修改时间。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UpdateAt *string `json:"UpdateAt,omitnil,omitempty" name:"UpdateAt"`
- // 规则模版名称。
- RuleTemplateName *string `json:"RuleTemplateName,omitempty" name:"RuleTemplateName"`
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
- // 规则模版的过滤条件
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ // 告警策略。0-不告警,1-告警。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
- // 规则模版描述。
+ // 模板状态。0-无任务 ,1-修改中。
// 注意:此字段可能返回 null,表示取不到有效值。
- Description *string `json:"Description,omitempty" name:"Description"`
+ Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
- // 规则模版创建时间。
- CreateAt *string `json:"CreateAt,omitempty" name:"CreateAt"`
+ // 规则模板应用在哪些在实例。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AffectedInstances []*string `json:"AffectedInstances,omitnil,omitempty" name:"AffectedInstances"`
}
type BackupFileInfo struct {
// 快照文件ID,已废弃,请使用BackupId
- SnapshotId *uint64 `json:"SnapshotId,omitempty" name:"SnapshotId"`
+ SnapshotId *uint64 `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 备份文件名
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
// 备份文件大小
- FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`
+ FileSize *uint64 `json:"FileSize,omitnil,omitempty" name:"FileSize"`
// 备份开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 备份完成时间
- FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"`
+ FinishTime *string `json:"FinishTime,omitnil,omitempty" name:"FinishTime"`
// 备份类型:snapshot,快照备份;logic,逻辑备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
// 备份方式:auto,自动备份;manual,手动备份
- BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"`
+ BackupMethod *string `json:"BackupMethod,omitnil,omitempty" name:"BackupMethod"`
// 备份文件状态:success:备份成功;fail:备份失败;creating:备份文件创建中;deleting:备份文件删除中
- BackupStatus *string `json:"BackupStatus,omitempty" name:"BackupStatus"`
+ BackupStatus *string `json:"BackupStatus,omitnil,omitempty" name:"BackupStatus"`
// 备份文件时间
- SnapshotTime *string `json:"SnapshotTime,omitempty" name:"SnapshotTime"`
+ SnapshotTime *string `json:"SnapshotTime,omitnil,omitempty" name:"SnapshotTime"`
// 备份ID
// 注意:此字段可能返回 null,表示取不到有效值。
- BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"`
+ BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`
// 快照类型,可选值:full,全量;increment,增量
// 注意:此字段可能返回 null,表示取不到有效值。
- SnapShotType *string `json:"SnapShotType,omitempty" name:"SnapShotType"`
+ SnapShotType *string `json:"SnapShotType,omitnil,omitempty" name:"SnapShotType"`
// 备份文件备注
// 注意:此字段可能返回 null,表示取不到有效值。
- BackupName *string `json:"BackupName,omitempty" name:"BackupName"`
+ BackupName *string `json:"BackupName,omitnil,omitempty" name:"BackupName"`
}
type BillingResourceInfo struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 订单ID
- DealName *string `json:"DealName,omitempty" name:"DealName"`
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
}
// Predefined struct for user
type BindClusterResourcePackagesRequestParams struct {
// 资源包唯一ID
- PackageIds []*string `json:"PackageIds,omitempty" name:"PackageIds"`
+ PackageIds []*string `json:"PackageIds,omitnil,omitempty" name:"PackageIds"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type BindClusterResourcePackagesRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageIds []*string `json:"PackageIds,omitempty" name:"PackageIds"`
+ PackageIds []*string `json:"PackageIds,omitnil,omitempty" name:"PackageIds"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *BindClusterResourcePackagesRequest) ToJsonString() string {
@@ -672,8 +787,8 @@ func (r *BindClusterResourcePackagesRequest) FromJsonString(s string) error {
// Predefined struct for user
type BindClusterResourcePackagesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type BindClusterResourcePackagesResponse struct {
@@ -693,47 +808,245 @@ func (r *BindClusterResourcePackagesResponse) FromJsonString(s string) error {
}
type BindInstanceInfo struct {
- // 绑定的实例ID
+ // 绑定的集群ID
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 绑定的实例所在的地域
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceRegion *string `json:"InstanceRegion,omitempty" name:"InstanceRegion"`
+ InstanceRegion *string `json:"InstanceRegion,omitnil,omitempty" name:"InstanceRegion"`
// 绑定的实例类型
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
+
+ // 绑定集群下的实例ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ExtendIds []*string `json:"ExtendIds,omitnil,omitempty" name:"ExtendIds"`
+}
+
+type BinlogConfigInfo struct {
+ // binlog保留时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogSaveDays *int64 `json:"BinlogSaveDays,omitnil,omitempty" name:"BinlogSaveDays"`
+
+ // binlog异地地域备份是否开启
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogCrossRegionsEnable *string `json:"BinlogCrossRegionsEnable,omitnil,omitempty" name:"BinlogCrossRegionsEnable"`
+
+ // binlog异地地域
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogCrossRegions []*string `json:"BinlogCrossRegions,omitnil,omitempty" name:"BinlogCrossRegions"`
}
type BinlogItem struct {
// Binlog文件名称
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
// 文件大小,单位:字节
- FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"`
+ FileSize *int64 `json:"FileSize,omitnil,omitempty" name:"FileSize"`
// 事务最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 事务最晚时间
- FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"`
+ FinishTime *string `json:"FinishTime,omitnil,omitempty" name:"FinishTime"`
// Binlog文件ID
- BinlogId *int64 `json:"BinlogId,omitempty" name:"BinlogId"`
+ BinlogId *int64 `json:"BinlogId,omitnil,omitempty" name:"BinlogId"`
+}
+
+type BizTaskInfo struct {
+ // 任务id
+ ID *int64 `json:"ID,omitnil,omitempty" name:"ID"`
+
+ // 用户appid
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
+
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 地域
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // 任务创建时间
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // 延迟执行时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DelayTime *string `json:"DelayTime,omitnil,omitempty" name:"DelayTime"`
+
+ // 任务失败信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
+
+ // 异步任务流id
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
+
+ // 任务输入信息
+ Input *string `json:"Input,omitnil,omitempty" name:"Input"`
+
+ // 实例组id
+ //
+ // Deprecated: InstanceGrpId is deprecated.
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 任务操作对象id
+ ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"`
+
+ // 任务操作对象类型
+ ObjectType *string `json:"ObjectType,omitnil,omitempty" name:"ObjectType"`
+
+ // 操作者uin
+ Operator *string `json:"Operator,omitnil,omitempty" name:"Operator"`
+
+ // 任务输出信息
+ Output *string `json:"Output,omitnil,omitempty" name:"Output"`
+
+ // 任务状态
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // 任务类型
+ TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"`
+
+ // 触发本任务的父任务ID
+ TriggerTaskId *int64 `json:"TriggerTaskId,omitnil,omitempty" name:"TriggerTaskId"`
+
+ // 更新时间
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
+
+ // 任务开始时间
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
+
+ // 任务结束时间
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
+
+ // 集群名称
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
+
+ // 实例名称
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // 任务进度
+ Process *int64 `json:"Process,omitnil,omitempty" name:"Process"`
+
+ // 修改参数任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ //
+ // Deprecated: ModifyParamsData is deprecated.
+ ModifyParamsData []*ModifyParamsData `json:"ModifyParamsData,omitnil,omitempty" name:"ModifyParamsData"`
+
+ // 创建集群任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CreateClustersData *CreateClustersData `json:"CreateClustersData,omitnil,omitempty" name:"CreateClustersData"`
+
+ // 集群回档任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RollbackData *RollbackData `json:"RollbackData,omitnil,omitempty" name:"RollbackData"`
+
+ // 实例变配任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyInstanceData *ModifyInstanceData `json:"ModifyInstanceData,omitnil,omitempty" name:"ModifyInstanceData"`
+
+ // 手动备份任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ManualBackupData *ManualBackupData `json:"ManualBackupData,omitnil,omitempty" name:"ManualBackupData"`
+
+ // 修改内核版本任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyDbVersionData *ModifyDbVersionData `json:"ModifyDbVersionData,omitnil,omitempty" name:"ModifyDbVersionData"`
+
+ // 集群可用区信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterSlaveData *ClusterSlaveData `json:"ClusterSlaveData,omitnil,omitempty" name:"ClusterSlaveData"`
+
+ // 转换集群日志
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SwitchClusterLogBin *SwitchClusterLogBin `json:"SwitchClusterLogBin,omitnil,omitempty" name:"SwitchClusterLogBin"`
+
+ // 修改实例参数数据
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyInstanceParamsData *BizTaskModifyParamsData `json:"ModifyInstanceParamsData,omitnil,omitempty" name:"ModifyInstanceParamsData"`
+
+ // 维护时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TaskMaintainInfo *TaskMaintainInfo `json:"TaskMaintainInfo,omitnil,omitempty" name:"TaskMaintainInfo"`
+
+ // 实例日志投递信息
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceCLSDeliveryInfos []*InstanceCLSDeliveryInfo `json:"InstanceCLSDeliveryInfos,omitnil,omitempty" name:"InstanceCLSDeliveryInfos"`
+}
+
+type BizTaskModifyInstanceParam struct {
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例参数修改任务详情
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyInstanceParamList []*ModifyParamItem `json:"ModifyInstanceParamList,omitnil,omitempty" name:"ModifyInstanceParamList"`
+}
+
+type BizTaskModifyParamsData struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 集群参数修改数据
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterParamList []*ModifyParamItem `json:"ClusterParamList,omitnil,omitempty" name:"ClusterParamList"`
+
+ // 实例参数修改数据
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyInstanceParams []*BizTaskModifyInstanceParam `json:"ModifyInstanceParams,omitnil,omitempty" name:"ModifyInstanceParams"`
+}
+
+type CLSInfo struct {
+ // 日志主题操作:可选create,reuse。
+ // create:新增日志主题,使用TopicName创建日志主题。
+ // reuse:使用已有日志主题,使用TopicId指定日志主题。
+ // 不允许使用已有日志主题且新建日志集的组合。
+ TopicOperation *string `json:"TopicOperation,omitnil,omitempty" name:"TopicOperation"`
+
+ // 日志集操作:可选create,reuse。
+ // create:新增日志集,使用GroupName创建日志集。
+ // reuse:使用已有日志集,使用GroupId指定日志集。
+ // 不允许使用已有日志主题且新建日志集的组合。
+ GroupOperation *string `json:"GroupOperation,omitnil,omitempty" name:"GroupOperation"`
+
+ // 日志投递地域
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // 日志主题id
+ TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`
+
+ // 日志主题name
+ TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
+
+ // 日志集id
+ GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
+
+ // 日志集name
+ GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}
// Predefined struct for user
type CloseAuditServiceRequestParams struct {
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
type CloseAuditServiceRequest struct {
*tchttp.BaseRequest
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func (r *CloseAuditServiceRequest) ToJsonString() string {
@@ -757,8 +1070,8 @@ func (r *CloseAuditServiceRequest) FromJsonString(s string) error {
// Predefined struct for user
type CloseAuditServiceResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CloseAuditServiceResponse struct {
@@ -780,14 +1093,14 @@ func (r *CloseAuditServiceResponse) FromJsonString(s string) error {
// Predefined struct for user
type CloseClusterPasswordComplexityRequestParams struct {
// 集群ID数组
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
}
type CloseClusterPasswordComplexityRequest struct {
*tchttp.BaseRequest
// 集群ID数组
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
}
func (r *CloseClusterPasswordComplexityRequest) ToJsonString() string {
@@ -812,10 +1125,10 @@ func (r *CloseClusterPasswordComplexityRequest) FromJsonString(s string) error {
// Predefined struct for user
type CloseClusterPasswordComplexityResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CloseClusterPasswordComplexityResponse struct {
@@ -834,29 +1147,96 @@ func (r *CloseClusterPasswordComplexityResponse) FromJsonString(s string) error
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type CloseProxyEndPointRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 数据库代理组ID
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
+}
+
+type CloseProxyEndPointRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 数据库代理组ID
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
+}
+
+func (r *CloseProxyEndPointRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CloseProxyEndPointRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "ProxyGroupId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloseProxyEndPointRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CloseProxyEndPointResponseParams struct {
+ // 异步流程ID
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
+
+ // 异步任务ID
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CloseProxyEndPointResponse struct {
+ *tchttp.BaseResponse
+ Response *CloseProxyEndPointResponseParams `json:"Response"`
+}
+
+func (r *CloseProxyEndPointResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CloseProxyEndPointResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type CloseProxyRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 是否只关闭读写分离,取值:是 "true","false"
- OnlyCloseRW *bool `json:"OnlyCloseRW,omitempty" name:"OnlyCloseRW"`
+ OnlyCloseRW *bool `json:"OnlyCloseRW,omitnil,omitempty" name:"OnlyCloseRW"`
}
type CloseProxyRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 是否只关闭读写分离,取值:是 "true","false"
- OnlyCloseRW *bool `json:"OnlyCloseRW,omitempty" name:"OnlyCloseRW"`
+ OnlyCloseRW *bool `json:"OnlyCloseRW,omitnil,omitempty" name:"OnlyCloseRW"`
}
func (r *CloseProxyRequest) ToJsonString() string {
@@ -883,13 +1263,13 @@ func (r *CloseProxyRequest) FromJsonString(s string) error {
// Predefined struct for user
type CloseProxyResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CloseProxyResponse struct {
@@ -911,14 +1291,28 @@ func (r *CloseProxyResponse) FromJsonString(s string) error {
// Predefined struct for user
type CloseWanRequestParams struct {
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ //
+ // Deprecated: InstanceGrpId is deprecated.
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
type CloseWanRequest struct {
*tchttp.BaseRequest
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func (r *CloseWanRequest) ToJsonString() string {
@@ -934,6 +1328,8 @@ func (r *CloseWanRequest) FromJsonString(s string) error {
return err
}
delete(f, "InstanceGrpId")
+ delete(f, "InstanceGroupId")
+ delete(f, "InstanceId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloseWanRequest has unknown keys!", "")
}
@@ -943,10 +1339,10 @@ func (r *CloseWanRequest) FromJsonString(s string) error {
// Predefined struct for user
type CloseWanResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CloseWanResponse struct {
@@ -967,76 +1363,133 @@ func (r *CloseWanResponse) FromJsonString(s string) error {
type ClusterInstanceDetail struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例名称
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 引擎类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 实例状态
- InstanceStatus *string `json:"InstanceStatus,omitempty" name:"InstanceStatus"`
+ InstanceStatus *string `json:"InstanceStatus,omitnil,omitempty" name:"InstanceStatus"`
// 实例状态描述
- InstanceStatusDesc *string `json:"InstanceStatusDesc,omitempty" name:"InstanceStatusDesc"`
+ InstanceStatusDesc *string `json:"InstanceStatusDesc,omitnil,omitempty" name:"InstanceStatusDesc"`
// cpu核数
- InstanceCpu *int64 `json:"InstanceCpu,omitempty" name:"InstanceCpu"`
+ InstanceCpu *int64 `json:"InstanceCpu,omitnil,omitempty" name:"InstanceCpu"`
// 内存
- InstanceMemory *int64 `json:"InstanceMemory,omitempty" name:"InstanceMemory"`
+ InstanceMemory *int64 `json:"InstanceMemory,omitnil,omitempty" name:"InstanceMemory"`
// 硬盘
- InstanceStorage *int64 `json:"InstanceStorage,omitempty" name:"InstanceStorage"`
+ InstanceStorage *int64 `json:"InstanceStorage,omitnil,omitempty" name:"InstanceStorage"`
// 实例角色
- InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"`
+ InstanceRole *string `json:"InstanceRole,omitnil,omitempty" name:"InstanceRole"`
+
+ // 执行开始时间(距离0点的秒数)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainStartTime *int64 `json:"MaintainStartTime,omitnil,omitempty" name:"MaintainStartTime"`
+
+ // 持续的时间(单位:秒)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainDuration *int64 `json:"MaintainDuration,omitnil,omitempty" name:"MaintainDuration"`
+
+ // 可以执行的时间,枚举值:["Mon","Tue","Wed","Thu","Fri", "Sat", "Sun"]
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainWeekDays []*string `json:"MaintainWeekDays,omitnil,omitempty" name:"MaintainWeekDays"`
+
+ // serverless实例子状态
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ServerlessStatus *string `json:"ServerlessStatus,omitnil,omitempty" name:"ServerlessStatus"`
+
+ // 实例任务信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceTasks []*ObjectTask `json:"InstanceTasks,omitnil,omitempty" name:"InstanceTasks"`
+
+ // 实例机器类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceDeviceType *string `json:"InstanceDeviceType,omitnil,omitempty" name:"InstanceDeviceType"`
+
+ // 实例存储类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceStorageType *string `json:"InstanceStorageType,omitnil,omitempty" name:"InstanceStorageType"`
+
+ // 数据库类型
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
}
type ClusterParamModifyLog struct {
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 修改后的值
- UpdateValue *string `json:"UpdateValue,omitempty" name:"UpdateValue"`
+ UpdateValue *string `json:"UpdateValue,omitnil,omitempty" name:"UpdateValue"`
// 修改状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 创建时间
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 更新时间
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+}
+
+type ClusterSlaveData struct {
+ // 旧主可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldMasterZone *string `json:"OldMasterZone,omitnil,omitempty" name:"OldMasterZone"`
+
+ // 旧从可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldSlaveZone []*string `json:"OldSlaveZone,omitnil,omitempty" name:"OldSlaveZone"`
+
+ // 新主可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NewMasterZone *string `json:"NewMasterZone,omitnil,omitempty" name:"NewMasterZone"`
+
+ // 新从可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NewSlaveZone []*string `json:"NewSlaveZone,omitnil,omitempty" name:"NewSlaveZone"`
+
+ // 新从可用区属性
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NewSlaveZoneAttr []*SlaveZoneAttrItem `json:"NewSlaveZoneAttr,omitnil,omitempty" name:"NewSlaveZoneAttr"`
+
+ // 旧可用区属性
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldSlaveZoneAttr []*SlaveZoneAttrItem `json:"OldSlaveZoneAttr,omitnil,omitempty" name:"OldSlaveZoneAttr"`
}
// Predefined struct for user
type CopyClusterPasswordComplexityRequestParams struct {
- // 复制集群ID数组
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ // 复制集群ID数组,例如["cynosdbmysql-bzxxrmtq","cynosdbmysql-qwer"]
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
- // 集群id
- SourceClusterId *string `json:"SourceClusterId,omitempty" name:"SourceClusterId"`
+ // 集群id,例如"cynosdbmysql-bzxxrmtq"
+ SourceClusterId *string `json:"SourceClusterId,omitnil,omitempty" name:"SourceClusterId"`
}
type CopyClusterPasswordComplexityRequest struct {
*tchttp.BaseRequest
- // 复制集群ID数组
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ // 复制集群ID数组,例如["cynosdbmysql-bzxxrmtq","cynosdbmysql-qwer"]
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
- // 集群id
- SourceClusterId *string `json:"SourceClusterId,omitempty" name:"SourceClusterId"`
+ // 集群id,例如"cynosdbmysql-bzxxrmtq"
+ SourceClusterId *string `json:"SourceClusterId,omitnil,omitempty" name:"SourceClusterId"`
}
func (r *CopyClusterPasswordComplexityRequest) ToJsonString() string {
@@ -1062,10 +1515,10 @@ func (r *CopyClusterPasswordComplexityRequest) FromJsonString(s string) error {
// Predefined struct for user
type CopyClusterPasswordComplexityResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CopyClusterPasswordComplexityResponse struct {
@@ -1087,20 +1540,20 @@ func (r *CopyClusterPasswordComplexityResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateAccountsRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 新账户列表
- Accounts []*NewAccount `json:"Accounts,omitempty" name:"Accounts"`
+ Accounts []*NewAccount `json:"Accounts,omitnil,omitempty" name:"Accounts"`
}
type CreateAccountsRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 新账户列表
- Accounts []*NewAccount `json:"Accounts,omitempty" name:"Accounts"`
+ Accounts []*NewAccount `json:"Accounts,omitnil,omitempty" name:"Accounts"`
}
func (r *CreateAccountsRequest) ToJsonString() string {
@@ -1125,8 +1578,8 @@ func (r *CreateAccountsRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateAccountsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateAccountsResponse struct {
@@ -1148,50 +1601,56 @@ func (r *CreateAccountsResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateAuditLogFileRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 开始时间,格式为:"2017-07-12 10:29:20"。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间,格式为:"2017-07-12 10:29:20"。
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
- Order *string `json:"Order,omitempty" name:"Order"`
+ Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// 排序字段。支持值包括:
// "timestamp" - 时间戳;
// "affectRows" - 影响行数;
// "execTime" - 执行时间。
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 已废弃。
+ Filter *AuditLogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`
- // 过滤条件。可按设置的过滤条件过滤日志。
- Filter *AuditLogFilter `json:"Filter,omitempty" name:"Filter"`
+ // 审计日志过滤条件
+ LogFilter []*InstanceAuditLogFilter `json:"LogFilter,omitnil,omitempty" name:"LogFilter"`
}
type CreateAuditLogFileRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 开始时间,格式为:"2017-07-12 10:29:20"。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间,格式为:"2017-07-12 10:29:20"。
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
- Order *string `json:"Order,omitempty" name:"Order"`
+ Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// 排序字段。支持值包括:
// "timestamp" - 时间戳;
// "affectRows" - 影响行数;
// "execTime" - 执行时间。
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 过滤条件。可按设置的过滤条件过滤日志。
- Filter *AuditLogFilter `json:"Filter,omitempty" name:"Filter"`
+ // 已废弃。
+ Filter *AuditLogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`
+
+ // 审计日志过滤条件
+ LogFilter []*InstanceAuditLogFilter `json:"LogFilter,omitnil,omitempty" name:"LogFilter"`
}
func (r *CreateAuditLogFileRequest) ToJsonString() string {
@@ -1212,6 +1671,7 @@ func (r *CreateAuditLogFileRequest) FromJsonString(s string) error {
delete(f, "Order")
delete(f, "OrderBy")
delete(f, "Filter")
+ delete(f, "LogFilter")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAuditLogFileRequest has unknown keys!", "")
}
@@ -1221,10 +1681,10 @@ func (r *CreateAuditLogFileRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateAuditLogFileResponseParams struct {
// 审计日志文件名称。
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateAuditLogFileResponse struct {
@@ -1246,26 +1706,38 @@ func (r *CreateAuditLogFileResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateAuditRuleTemplateRequestParams struct {
// 审计规则。
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
+
+ // 规则模板名称。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
- // 规则模版名称。
- RuleTemplateName *string `json:"RuleTemplateName,omitempty" name:"RuleTemplateName"`
+ // 规则模板描述。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // 规则模版描述。
- Description *string `json:"Description,omitempty" name:"Description"`
+ // 告警等级。1-低风险,2-中风险,3-高风险
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
type CreateAuditRuleTemplateRequest struct {
*tchttp.BaseRequest
// 审计规则。
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
+
+ // 规则模板名称。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
- // 规则模版名称。
- RuleTemplateName *string `json:"RuleTemplateName,omitempty" name:"RuleTemplateName"`
+ // 规则模板描述。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // 规则模版描述。
- Description *string `json:"Description,omitempty" name:"Description"`
+ // 告警等级。1-低风险,2-中风险,3-高风险
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
func (r *CreateAuditRuleTemplateRequest) ToJsonString() string {
@@ -1283,6 +1755,8 @@ func (r *CreateAuditRuleTemplateRequest) FromJsonString(s string) error {
delete(f, "RuleFilters")
delete(f, "RuleTemplateName")
delete(f, "Description")
+ delete(f, "AlarmLevel")
+ delete(f, "AlarmPolicy")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAuditRuleTemplateRequest has unknown keys!", "")
}
@@ -1291,12 +1765,12 @@ func (r *CreateAuditRuleTemplateRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateAuditRuleTemplateResponseParams struct {
- // 生成的规则模版ID。
+ // 生成的规则模板ID。
// 注意:此字段可能返回 null,表示取不到有效值。
- RuleTemplateId *string `json:"RuleTemplateId,omitempty" name:"RuleTemplateId"`
+ RuleTemplateId *string `json:"RuleTemplateId,omitnil,omitempty" name:"RuleTemplateId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateAuditRuleTemplateResponse struct {
@@ -1318,38 +1792,38 @@ func (r *CreateAuditRuleTemplateResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateBackupRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份类型, 可选值:logic,逻辑备份;snapshot,物理备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
// 备份的库, 只在 BackupType 为 logic 时有效
- BackupDatabases []*string `json:"BackupDatabases,omitempty" name:"BackupDatabases"`
+ BackupDatabases []*string `json:"BackupDatabases,omitnil,omitempty" name:"BackupDatabases"`
// 备份的表, 只在 BackupType 为 logic 时有效
- BackupTables []*DatabaseTables `json:"BackupTables,omitempty" name:"BackupTables"`
+ BackupTables []*DatabaseTables `json:"BackupTables,omitnil,omitempty" name:"BackupTables"`
// 备注名
- BackupName *string `json:"BackupName,omitempty" name:"BackupName"`
+ BackupName *string `json:"BackupName,omitnil,omitempty" name:"BackupName"`
}
type CreateBackupRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份类型, 可选值:logic,逻辑备份;snapshot,物理备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
// 备份的库, 只在 BackupType 为 logic 时有效
- BackupDatabases []*string `json:"BackupDatabases,omitempty" name:"BackupDatabases"`
+ BackupDatabases []*string `json:"BackupDatabases,omitnil,omitempty" name:"BackupDatabases"`
// 备份的表, 只在 BackupType 为 logic 时有效
- BackupTables []*DatabaseTables `json:"BackupTables,omitempty" name:"BackupTables"`
+ BackupTables []*DatabaseTables `json:"BackupTables,omitnil,omitempty" name:"BackupTables"`
// 备注名
- BackupName *string `json:"BackupName,omitempty" name:"BackupName"`
+ BackupName *string `json:"BackupName,omitnil,omitempty" name:"BackupName"`
}
func (r *CreateBackupRequest) ToJsonString() string {
@@ -1378,10 +1852,10 @@ func (r *CreateBackupRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateBackupResponseParams struct {
// 异步任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateBackupResponse struct {
@@ -1401,46 +1875,124 @@ func (r *CreateBackupResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type CreateClusterDatabaseRequestParams struct {
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 数据库名
- DbName *string `json:"DbName,omitempty" name:"DbName"`
-
- // 字符集类型
- CharacterSet *string `json:"CharacterSet,omitempty" name:"CharacterSet"`
+type CreateCLSDeliveryRequestParams struct {
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // 排序规则
- CollateRule *string `json:"CollateRule,omitempty" name:"CollateRule"`
+ // 日志投递配置
+ CLSInfoList []*CLSInfo `json:"CLSInfoList,omitnil,omitempty" name:"CLSInfoList"`
- // 授权用户主机权限
- UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitempty" name:"UserHostPrivileges"`
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
- // 备注
- Description *string `json:"Description,omitempty" name:"Description"`
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
-type CreateClusterDatabaseRequest struct {
+type CreateCLSDeliveryRequest struct {
*tchttp.BaseRequest
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志投递配置
+ CLSInfoList []*CLSInfo `json:"CLSInfoList,omitnil,omitempty" name:"CLSInfoList"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+func (r *CreateCLSDeliveryRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateCLSDeliveryRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "CLSInfoList")
+ delete(f, "LogType")
+ delete(f, "IsInMaintainPeriod")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCLSDeliveryRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateCLSDeliveryResponseParams struct {
+ // 异步任务id
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateCLSDeliveryResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateCLSDeliveryResponseParams `json:"Response"`
+}
+
+func (r *CreateCLSDeliveryResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateCLSDeliveryResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateClusterDatabaseRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 数据库名
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
+
+ // 字符集类型
+ CharacterSet *string `json:"CharacterSet,omitnil,omitempty" name:"CharacterSet"`
+
+ // 排序规则
+ CollateRule *string `json:"CollateRule,omitnil,omitempty" name:"CollateRule"`
+
+ // 授权用户主机权限
+ UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitnil,omitempty" name:"UserHostPrivileges"`
+
+ // 备注
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
+}
+
+type CreateClusterDatabaseRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
// 字符集类型
- CharacterSet *string `json:"CharacterSet,omitempty" name:"CharacterSet"`
+ CharacterSet *string `json:"CharacterSet,omitnil,omitempty" name:"CharacterSet"`
// 排序规则
- CollateRule *string `json:"CollateRule,omitempty" name:"CollateRule"`
+ CollateRule *string `json:"CollateRule,omitnil,omitempty" name:"CollateRule"`
// 授权用户主机权限
- UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitempty" name:"UserHostPrivileges"`
+ UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitnil,omitempty" name:"UserHostPrivileges"`
// 备注
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
func (r *CreateClusterDatabaseRequest) ToJsonString() string {
@@ -1469,8 +2021,8 @@ func (r *CreateClusterDatabaseRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateClusterDatabaseResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateClusterDatabaseResponse struct {
@@ -1489,299 +2041,312 @@ func (r *CreateClusterDatabaseResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type CreateClustersData struct {
+ // 实例CPU
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 实例内存
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 集群存储上限
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+}
+
// Predefined struct for user
type CreateClustersRequestParams struct {
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 所属VPC网络ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 所属子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 数据库版本,取值范围:
// MYSQL可选值:5.7,8.0
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// 所属项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 当DbMode为NORMAL或不填时必选
// 普通实例Cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 当DbMode为NORMAL或不填时必选
- // 普通实例内存,单位G
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ // 普通实例内存,单位GB
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 该参数无实际意义,已废弃。
- // 存储大小,单位G。
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ // 存储大小,单位GB。
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 账号密码(8-64个字符,包含大小写英文字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种)
- AdminPassword *string `json:"AdminPassword,omitempty" name:"AdminPassword"`
+ AdminPassword *string `json:"AdminPassword,omitnil,omitempty" name:"AdminPassword"`
// 端口,默认3306,取值范围[0, 65535)
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 计费模式,按量计费:0,包年包月:1。默认按量计费。
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 购买集群数,可选值范围[1,50],默认为1
- Count *int64 `json:"Count,omitempty" name:"Count"`
+ Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// 回档类型:
// noneRollback:不回档;
// snapRollback,快照回档;
// timeRollback,时间点回档
- RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"`
+ RollbackStrategy *string `json:"RollbackStrategy,omitnil,omitempty" name:"RollbackStrategy"`
// 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
- RollbackId *uint64 `json:"RollbackId,omitempty" name:"RollbackId"`
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
// 回档时,传入源集群ID,用于查找源poolId
- OriginalClusterId *string `json:"OriginalClusterId,omitempty" name:"OriginalClusterId"`
+ OriginalClusterId *string `json:"OriginalClusterId,omitnil,omitempty" name:"OriginalClusterId"`
// 时间点回档,指定时间;快照回档,快照时间
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
// 该参数无实际意义,已废弃。
// 时间点回档,指定时间允许范围
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+ ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitnil,omitempty" name:"ExpectTimeThresh"`
// 普通实例存储上限,单位GB
// 当DbType为MYSQL,且存储计费模式为预付费时,该参数需不大于cpu与memory对应存储规格上限
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 实例数量,数量范围为(0,16]
- InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
+ InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
// 包年包月购买时长
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 包年包月购买时长单位,['s','d','m','y']
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
- // 包年包月购买是否自动续费,默认为0
- AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
+ // 包年包月购买是否自动续费,默认为0。
+ // 0标识默认续费方式,1表示自动续费,2表示不自动续费。
+ AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 实例数量(该参数已不再使用,只做存量兼容处理)
- HaCount *int64 `json:"HaCount,omitempty" name:"HaCount"`
+ HaCount *int64 `json:"HaCount,omitnil,omitempty" name:"HaCount"`
// 订单来源
- OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"`
+ OrderSource *string `json:"OrderSource,omitnil,omitempty" name:"OrderSource"`
// 集群创建需要绑定的tag数组信息
- ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"`
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
// Db类型
// 当DbType为MYSQL时可选(默认NORMAL):
// NORMAL
// SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
- // 当DbMode为SEVERLESS时必填
+ // 当DbMode为SERVERLESS时必填
// cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
- MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"`
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
- // 当DbMode为SEVERLESS时必填:
+ // 当DbMode为SERVERLESS时必填:
// cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
- MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"`
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
- // 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
+ // 当DbMode为SERVERLESS时,指定集群是否自动暂停,可选范围
// yes
// no
// 默认值:yes
- AutoPause *string `json:"AutoPause,omitempty" name:"AutoPause"`
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
- // 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
+ // 当DbMode为SERVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
// 默认值:600
- AutoPauseDelay *int64 `json:"AutoPauseDelay,omitempty" name:"AutoPauseDelay"`
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
// 集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
// 当DbType为MYSQL时,在集群计算计费模式为后付费(包括DbMode为SERVERLESS)时,存储计费模式仅可为按量计费
// 回档与克隆均不支持包年包月存储
- StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *int64 `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
// 安全组id数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 告警策略Id数组
- AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitempty" name:"AlarmPolicyIds"`
+ AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitnil,omitempty" name:"AlarmPolicyIds"`
// 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
- ClusterParams []*ParamItem `json:"ClusterParams,omitempty" name:"ClusterParams"`
+ ClusterParams []*ParamItem `json:"ClusterParams,omitnil,omitempty" name:"ClusterParams"`
// 交易模式,0-下单且支付,1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
- // 参数模版ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
- ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"`
+ // 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
// 多可用区地址
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
// 实例初始化配置信息,主要用于购买集群时选不同规格实例
- InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitempty" name:"InstanceInitInfos"`
+ InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitnil,omitempty" name:"InstanceInitInfos"`
}
type CreateClustersRequest struct {
*tchttp.BaseRequest
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 所属VPC网络ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 所属子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 数据库版本,取值范围:
// MYSQL可选值:5.7,8.0
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// 所属项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 当DbMode为NORMAL或不填时必选
// 普通实例Cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 当DbMode为NORMAL或不填时必选
- // 普通实例内存,单位G
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ // 普通实例内存,单位GB
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 该参数无实际意义,已废弃。
- // 存储大小,单位G。
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ // 存储大小,单位GB。
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 账号密码(8-64个字符,包含大小写英文字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种)
- AdminPassword *string `json:"AdminPassword,omitempty" name:"AdminPassword"`
+ AdminPassword *string `json:"AdminPassword,omitnil,omitempty" name:"AdminPassword"`
// 端口,默认3306,取值范围[0, 65535)
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 计费模式,按量计费:0,包年包月:1。默认按量计费。
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 购买集群数,可选值范围[1,50],默认为1
- Count *int64 `json:"Count,omitempty" name:"Count"`
+ Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
// 回档类型:
// noneRollback:不回档;
// snapRollback,快照回档;
// timeRollback,时间点回档
- RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"`
+ RollbackStrategy *string `json:"RollbackStrategy,omitnil,omitempty" name:"RollbackStrategy"`
// 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
- RollbackId *uint64 `json:"RollbackId,omitempty" name:"RollbackId"`
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
// 回档时,传入源集群ID,用于查找源poolId
- OriginalClusterId *string `json:"OriginalClusterId,omitempty" name:"OriginalClusterId"`
+ OriginalClusterId *string `json:"OriginalClusterId,omitnil,omitempty" name:"OriginalClusterId"`
// 时间点回档,指定时间;快照回档,快照时间
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
// 该参数无实际意义,已废弃。
// 时间点回档,指定时间允许范围
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+ ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitnil,omitempty" name:"ExpectTimeThresh"`
// 普通实例存储上限,单位GB
// 当DbType为MYSQL,且存储计费模式为预付费时,该参数需不大于cpu与memory对应存储规格上限
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 实例数量,数量范围为(0,16]
- InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
+ InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
// 包年包月购买时长
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 包年包月购买时长单位,['s','d','m','y']
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
- // 包年包月购买是否自动续费,默认为0
- AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
+ // 包年包月购买是否自动续费,默认为0。
+ // 0标识默认续费方式,1表示自动续费,2表示不自动续费。
+ AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 实例数量(该参数已不再使用,只做存量兼容处理)
- HaCount *int64 `json:"HaCount,omitempty" name:"HaCount"`
+ HaCount *int64 `json:"HaCount,omitnil,omitempty" name:"HaCount"`
// 订单来源
- OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"`
+ OrderSource *string `json:"OrderSource,omitnil,omitempty" name:"OrderSource"`
// 集群创建需要绑定的tag数组信息
- ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"`
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
// Db类型
// 当DbType为MYSQL时可选(默认NORMAL):
// NORMAL
// SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
- // 当DbMode为SEVERLESS时必填
+ // 当DbMode为SERVERLESS时必填
// cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
- MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"`
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
- // 当DbMode为SEVERLESS时必填:
+ // 当DbMode为SERVERLESS时必填:
// cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
- MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"`
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
- // 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
+ // 当DbMode为SERVERLESS时,指定集群是否自动暂停,可选范围
// yes
// no
// 默认值:yes
- AutoPause *string `json:"AutoPause,omitempty" name:"AutoPause"`
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
- // 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
+ // 当DbMode为SERVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
// 默认值:600
- AutoPauseDelay *int64 `json:"AutoPauseDelay,omitempty" name:"AutoPauseDelay"`
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
// 集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
// 当DbType为MYSQL时,在集群计算计费模式为后付费(包括DbMode为SERVERLESS)时,存储计费模式仅可为按量计费
// 回档与克隆均不支持包年包月存储
- StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *int64 `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
// 安全组id数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 告警策略Id数组
- AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitempty" name:"AlarmPolicyIds"`
+ AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitnil,omitempty" name:"AlarmPolicyIds"`
// 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
- ClusterParams []*ParamItem `json:"ClusterParams,omitempty" name:"ClusterParams"`
+ ClusterParams []*ParamItem `json:"ClusterParams,omitnil,omitempty" name:"ClusterParams"`
// 交易模式,0-下单且支付,1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
- // 参数模版ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
- ParamTemplateId *int64 `json:"ParamTemplateId,omitempty" name:"ParamTemplateId"`
+ // 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
// 多可用区地址
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
// 实例初始化配置信息,主要用于购买集群时选不同规格实例
- InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitempty" name:"InstanceInitInfos"`
+ InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitnil,omitempty" name:"InstanceInitInfos"`
}
func (r *CreateClustersRequest) ToJsonString() string {
@@ -1847,26 +2412,26 @@ func (r *CreateClustersRequest) FromJsonString(s string) error {
type CreateClustersResponseParams struct {
// 冻结流水ID
// 注意:此字段可能返回 null,表示取不到有效值。
- TranId *string `json:"TranId,omitempty" name:"TranId"`
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
// 订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
// 资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// 集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
// 注意:此字段可能返回 null,表示取不到有效值。
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// 大订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"`
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateClustersResponse struct {
@@ -1887,45 +2452,45 @@ func (r *CreateClustersResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateParamTemplateRequestParams struct {
- // 模版名称
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+ // 模板名称
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
// mysql版本号
- EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"`
+ EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`
- // 模版描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ // 模板描述
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
- // 可选参数,需要复制的模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 可选参数,需要复制的模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
// 数据库类型,可选值:NORMAL(默认值),SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 参数列表
- ParamList []*ParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
}
type CreateParamTemplateRequest struct {
*tchttp.BaseRequest
- // 模版名称
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+ // 模板名称
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
// mysql版本号
- EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"`
+ EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`
- // 模版描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ // 模板描述
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
- // 可选参数,需要复制的模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 可选参数,需要复制的模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
// 数据库类型,可选值:NORMAL(默认值),SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 参数列表
- ParamList []*ParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
}
func (r *CreateParamTemplateRequest) ToJsonString() string {
@@ -1954,11 +2519,11 @@ func (r *CreateParamTemplateRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateParamTemplateResponseParams struct {
- // 模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateParamTemplateResponse struct {
@@ -1980,124 +2545,130 @@ func (r *CreateParamTemplateResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateProxyEndPointRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 私有网络ID,默认与集群私有网络ID保持一致
- UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"`
+ UniqueVpcId *string `json:"UniqueVpcId,omitnil,omitempty" name:"UniqueVpcId"`
// 私有网络子网ID,默认与集群子网ID保持一致
- UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"`
+ UniqueSubnetId *string `json:"UniqueSubnetId,omitnil,omitempty" name:"UniqueSubnetId"`
// 连接池类型:SessionConnectionPool(会话级别连接池 )
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
// 是否开启连接池,yes-开启,no-不开启
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
- // 连接池阀值:单位(秒)
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池阈值:单位(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
- // 安全组ID数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ // 绑定的安全组ID数组
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 描述说明
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // vip信息
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ // 想要绑定的vip信息,需与UniqueVpcId对应。
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 权重模式:
// system-系统分配,custom-自定义
- WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"`
+ WeightMode *string `json:"WeightMode,omitnil,omitempty" name:"WeightMode"`
// 是否自动添加只读实例,yes-是,no-不自动添加
- AutoAddRo *string `json:"AutoAddRo,omitempty" name:"AutoAddRo"`
+ AutoAddRo *string `json:"AutoAddRo,omitnil,omitempty" name:"AutoAddRo"`
- // 是否开启故障转移
- FailOver *string `json:"FailOver,omitempty" name:"FailOver"`
+ // 是否开启故障转移。
+ // yes:开启
+ // no:不开启。
+ // 数据库代理出现故障时,链接地址将会路由到主实例
+ FailOver *string `json:"FailOver,omitnil,omitempty" name:"FailOver"`
// 一致性类型:
// eventual,global,session
- ConsistencyType *string `json:"ConsistencyType,omitempty" name:"ConsistencyType"`
+ ConsistencyType *string `json:"ConsistencyType,omitnil,omitempty" name:"ConsistencyType"`
// 读写属性:
// READWRITE,READONLY
- RwType *string `json:"RwType,omitempty" name:"RwType"`
+ RwType *string `json:"RwType,omitnil,omitempty" name:"RwType"`
- // 一致性超时时间
- ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitempty" name:"ConsistencyTimeOut"`
+ // 一致性超时时间。取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待
+ ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitnil,omitempty" name:"ConsistencyTimeOut"`
- // 事务拆分
- TransSplit *bool `json:"TransSplit,omitempty" name:"TransSplit"`
+ // 是否开启事务拆分。在一个事务中拆分读和写到不同的实例上去执行
+ TransSplit *bool `json:"TransSplit,omitnil,omitempty" name:"TransSplit"`
// 连接模式:
// nearby,balance
- AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"`
+ AccessMode *string `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
// 实例权重
- InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitempty" name:"InstanceWeights"`
+ InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitnil,omitempty" name:"InstanceWeights"`
}
type CreateProxyEndPointRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 私有网络ID,默认与集群私有网络ID保持一致
- UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"`
+ UniqueVpcId *string `json:"UniqueVpcId,omitnil,omitempty" name:"UniqueVpcId"`
// 私有网络子网ID,默认与集群子网ID保持一致
- UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"`
+ UniqueSubnetId *string `json:"UniqueSubnetId,omitnil,omitempty" name:"UniqueSubnetId"`
// 连接池类型:SessionConnectionPool(会话级别连接池 )
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
// 是否开启连接池,yes-开启,no-不开启
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
- // 连接池阀值:单位(秒)
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池阈值:单位(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
- // 安全组ID数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ // 绑定的安全组ID数组
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 描述说明
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // vip信息
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ // 想要绑定的vip信息,需与UniqueVpcId对应。
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 权重模式:
// system-系统分配,custom-自定义
- WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"`
+ WeightMode *string `json:"WeightMode,omitnil,omitempty" name:"WeightMode"`
// 是否自动添加只读实例,yes-是,no-不自动添加
- AutoAddRo *string `json:"AutoAddRo,omitempty" name:"AutoAddRo"`
+ AutoAddRo *string `json:"AutoAddRo,omitnil,omitempty" name:"AutoAddRo"`
- // 是否开启故障转移
- FailOver *string `json:"FailOver,omitempty" name:"FailOver"`
+ // 是否开启故障转移。
+ // yes:开启
+ // no:不开启。
+ // 数据库代理出现故障时,链接地址将会路由到主实例
+ FailOver *string `json:"FailOver,omitnil,omitempty" name:"FailOver"`
// 一致性类型:
// eventual,global,session
- ConsistencyType *string `json:"ConsistencyType,omitempty" name:"ConsistencyType"`
+ ConsistencyType *string `json:"ConsistencyType,omitnil,omitempty" name:"ConsistencyType"`
// 读写属性:
// READWRITE,READONLY
- RwType *string `json:"RwType,omitempty" name:"RwType"`
+ RwType *string `json:"RwType,omitnil,omitempty" name:"RwType"`
- // 一致性超时时间
- ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitempty" name:"ConsistencyTimeOut"`
+ // 一致性超时时间。取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待
+ ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitnil,omitempty" name:"ConsistencyTimeOut"`
- // 事务拆分
- TransSplit *bool `json:"TransSplit,omitempty" name:"TransSplit"`
+ // 是否开启事务拆分。在一个事务中拆分读和写到不同的实例上去执行
+ TransSplit *bool `json:"TransSplit,omitnil,omitempty" name:"TransSplit"`
// 连接模式:
// nearby,balance
- AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"`
+ AccessMode *string `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
// 实例权重
- InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitempty" name:"InstanceWeights"`
+ InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitnil,omitempty" name:"InstanceWeights"`
}
func (r *CreateProxyEndPointRequest) ToJsonString() string {
@@ -2139,16 +2710,16 @@ func (r *CreateProxyEndPointRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateProxyEndPointResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateProxyEndPointResponse struct {
@@ -2170,80 +2741,80 @@ func (r *CreateProxyEndPointResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateProxyRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
// 私有网络ID,默认与集群私有网络ID保持一致
- UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"`
+ UniqueVpcId *string `json:"UniqueVpcId,omitnil,omitempty" name:"UniqueVpcId"`
// 私有网络子网ID,默认与集群子网ID保持一致
- UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"`
+ UniqueSubnetId *string `json:"UniqueSubnetId,omitnil,omitempty" name:"UniqueSubnetId"`
- // 数据库代理组节点个数
- ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"`
+ // 数据库代理组节点个数(该参数不再建议使用,建议使用ProxyZones)
+ ProxyCount *int64 `json:"ProxyCount,omitnil,omitempty" name:"ProxyCount"`
// 连接池类型:SessionConnectionPool(会话级别连接池 )
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
// 是否开启连接池,yes-开启,no-不开启
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
- // 连接池阀值:单位(秒)
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池阈值:单位(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
// 安全组ID数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 描述说明
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // 数据库节点信息
- ProxyZones []*ProxyZone `json:"ProxyZones,omitempty" name:"ProxyZones"`
+ // 数据库节点信息(该参数与ProxyCount需要任选一个输入)
+ ProxyZones []*ProxyZone `json:"ProxyZones,omitnil,omitempty" name:"ProxyZones"`
}
type CreateProxyRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
// 私有网络ID,默认与集群私有网络ID保持一致
- UniqueVpcId *string `json:"UniqueVpcId,omitempty" name:"UniqueVpcId"`
+ UniqueVpcId *string `json:"UniqueVpcId,omitnil,omitempty" name:"UniqueVpcId"`
// 私有网络子网ID,默认与集群子网ID保持一致
- UniqueSubnetId *string `json:"UniqueSubnetId,omitempty" name:"UniqueSubnetId"`
+ UniqueSubnetId *string `json:"UniqueSubnetId,omitnil,omitempty" name:"UniqueSubnetId"`
- // 数据库代理组节点个数
- ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"`
+ // 数据库代理组节点个数(该参数不再建议使用,建议使用ProxyZones)
+ ProxyCount *int64 `json:"ProxyCount,omitnil,omitempty" name:"ProxyCount"`
// 连接池类型:SessionConnectionPool(会话级别连接池 )
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
// 是否开启连接池,yes-开启,no-不开启
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
- // 连接池阀值:单位(秒)
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池阈值:单位(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
// 安全组ID数组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 描述说明
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // 数据库节点信息
- ProxyZones []*ProxyZone `json:"ProxyZones,omitempty" name:"ProxyZones"`
+ // 数据库节点信息(该参数与ProxyCount需要任选一个输入)
+ ProxyZones []*ProxyZone `json:"ProxyZones,omitnil,omitempty" name:"ProxyZones"`
}
func (r *CreateProxyRequest) ToJsonString() string {
@@ -2279,16 +2850,16 @@ func (r *CreateProxyRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateProxyResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateProxyResponse struct {
@@ -2309,61 +2880,59 @@ func (r *CreateProxyResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateResourcePackageRequestParams struct {
- // 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ // 实例类型,目前固定传cynosdb-serverless
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
- // 资源包使用地域
- // china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ // 资源包使用地域chineseMainland-中国内地通用,overseas-港澳台及海外通用
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包类型:CCU-计算资源包,DISK-存储资源包
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包版本
// base-基础版本,common-通用版本,enterprise-企业版本
- PackageVersion *string `json:"PackageVersion,omitempty" name:"PackageVersion"`
+ PackageVersion *string `json:"PackageVersion,omitnil,omitempty" name:"PackageVersion"`
// 资源包大小,计算资源单位:万个;存储资源:GB
- PackageSpec *float64 `json:"PackageSpec,omitempty" name:"PackageSpec"`
+ PackageSpec *float64 `json:"PackageSpec,omitnil,omitempty" name:"PackageSpec"`
// 资源包有效期,单位:天
- ExpireDay *int64 `json:"ExpireDay,omitempty" name:"ExpireDay"`
+ ExpireDay *int64 `json:"ExpireDay,omitnil,omitempty" name:"ExpireDay"`
// 购买资源包个数
- PackageCount *int64 `json:"PackageCount,omitempty" name:"PackageCount"`
+ PackageCount *int64 `json:"PackageCount,omitnil,omitempty" name:"PackageCount"`
// 资源包名称
- PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName *string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
}
type CreateResourcePackageRequest struct {
*tchttp.BaseRequest
- // 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ // 实例类型,目前固定传cynosdb-serverless
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
- // 资源包使用地域
- // china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ // 资源包使用地域chineseMainland-中国内地通用,overseas-港澳台及海外通用
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包类型:CCU-计算资源包,DISK-存储资源包
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包版本
// base-基础版本,common-通用版本,enterprise-企业版本
- PackageVersion *string `json:"PackageVersion,omitempty" name:"PackageVersion"`
+ PackageVersion *string `json:"PackageVersion,omitnil,omitempty" name:"PackageVersion"`
// 资源包大小,计算资源单位:万个;存储资源:GB
- PackageSpec *float64 `json:"PackageSpec,omitempty" name:"PackageSpec"`
+ PackageSpec *float64 `json:"PackageSpec,omitnil,omitempty" name:"PackageSpec"`
// 资源包有效期,单位:天
- ExpireDay *int64 `json:"ExpireDay,omitempty" name:"ExpireDay"`
+ ExpireDay *int64 `json:"ExpireDay,omitnil,omitempty" name:"ExpireDay"`
// 购买资源包个数
- PackageCount *int64 `json:"PackageCount,omitempty" name:"PackageCount"`
+ PackageCount *int64 `json:"PackageCount,omitnil,omitempty" name:"PackageCount"`
// 资源包名称
- PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName *string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
}
func (r *CreateResourcePackageRequest) ToJsonString() string {
@@ -2395,13 +2964,13 @@ func (r *CreateResourcePackageRequest) FromJsonString(s string) error {
// Predefined struct for user
type CreateResourcePackageResponseParams struct {
// 付费总订单号
- BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"`
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
// 每个物品对应一个dealName,业务需要根据dealName保证发货接口幂等
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateResourcePackageResponse struct {
@@ -2420,6 +2989,20 @@ func (r *CreateResourcePackageResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type CrossRegionBackupItem struct {
+ // 备份的目标地域
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CrossRegion *string `json:"CrossRegion,omitnil,omitempty" name:"CrossRegion"`
+
+ // 目标地域的备份任务ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BackupId *string `json:"BackupId,omitnil,omitempty" name:"BackupId"`
+
+ // 目标地域的备份状态
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BackupStatus *string `json:"BackupStatus,omitnil,omitempty" name:"BackupStatus"`
+}
+
type CynosdbCluster struct {
// 集群状态, 可选值如下:
// creating: 创建中
@@ -2431,792 +3014,890 @@ type CynosdbCluster struct {
// offlined:已下线
// deleting:删除中
// deleted:已删除
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 更新时间
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 数据库版本
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例数
- InstanceNum *int64 `json:"InstanceNum,omitempty" name:"InstanceNum"`
+ InstanceNum *int64 `json:"InstanceNum,omitnil,omitempty" name:"InstanceNum"`
// 用户uin
// 注意:此字段可能返回 null,表示取不到有效值。
- Uin *string `json:"Uin,omitempty" name:"Uin"`
+ Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"`
// 引擎类型
// 注意:此字段可能返回 null,表示取不到有效值。
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 用户appid
// 注意:此字段可能返回 null,表示取不到有效值。
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 集群状态描述
// 注意:此字段可能返回 null,表示取不到有效值。
- StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
+ StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`
// 集群创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 付费模式。0-按量计费,1-包年包月
// 注意:此字段可能返回 null,表示取不到有效值。
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 截止时间
// 注意:此字段可能返回 null,表示取不到有效值。
- PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
+ PeriodEndTime *string `json:"PeriodEndTime,omitnil,omitempty" name:"PeriodEndTime"`
// 集群读写vip
// 注意:此字段可能返回 null,表示取不到有效值。
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 集群读写vport
// 注意:此字段可能返回 null,表示取不到有效值。
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 项目id
// 注意:此字段可能返回 null,表示取不到有效值。
- ProjectID *int64 `json:"ProjectID,omitempty" name:"ProjectID"`
+ ProjectID *int64 `json:"ProjectID,omitnil,omitempty" name:"ProjectID"`
// 私有网络ID
// 注意:此字段可能返回 null,表示取不到有效值。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 子网ID
// 注意:此字段可能返回 null,表示取不到有效值。
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// cynos内核版本
// 注意:此字段可能返回 null,表示取不到有效值。
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 存储容量
// 注意:此字段可能返回 null,表示取不到有效值。
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 续费标志
// 注意:此字段可能返回 null,表示取不到有效值。
- RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"`
+ RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// 正在处理的任务
// 注意:此字段可能返回 null,表示取不到有效值。
- ProcessingTask *string `json:"ProcessingTask,omitempty" name:"ProcessingTask"`
+ ProcessingTask *string `json:"ProcessingTask,omitnil,omitempty" name:"ProcessingTask"`
// 集群的任务数组
// 注意:此字段可能返回 null,表示取不到有效值。
- Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"`
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
// 集群绑定的tag数组
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"`
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
// Db类型(NORMAL, SERVERLESS)
// 注意:此字段可能返回 null,表示取不到有效值。
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 当Db类型为SERVERLESS时,serverless集群状态,可选值:
// resume
// pause
// 注意:此字段可能返回 null,表示取不到有效值。
- ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"`
+ ServerlessStatus *string `json:"ServerlessStatus,omitnil,omitempty" name:"ServerlessStatus"`
// 集群预付费存储值大小
// 注意:此字段可能返回 null,表示取不到有效值。
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 集群存储为预付费时的存储ID,用于预付费存储变配
// 注意:此字段可能返回 null,表示取不到有效值。
- StorageId *string `json:"StorageId,omitempty" name:"StorageId"`
+ StorageId *string `json:"StorageId,omitnil,omitempty" name:"StorageId"`
// 集群存储付费模式。0-按量计费,1-包年包月
// 注意:此字段可能返回 null,表示取不到有效值。
- StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *int64 `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
// 集群计算规格对应的最小存储值
// 注意:此字段可能返回 null,表示取不到有效值。
- MinStorageSize *int64 `json:"MinStorageSize,omitempty" name:"MinStorageSize"`
+ MinStorageSize *int64 `json:"MinStorageSize,omitnil,omitempty" name:"MinStorageSize"`
// 集群计算规格对应的最大存储值
// 注意:此字段可能返回 null,表示取不到有效值。
- MaxStorageSize *int64 `json:"MaxStorageSize,omitempty" name:"MaxStorageSize"`
+ MaxStorageSize *int64 `json:"MaxStorageSize,omitnil,omitempty" name:"MaxStorageSize"`
// 集群网络信息
// 注意:此字段可能返回 null,表示取不到有效值。
- NetAddrs []*NetAddr `json:"NetAddrs,omitempty" name:"NetAddrs"`
+ NetAddrs []*NetAddr `json:"NetAddrs,omitnil,omitempty" name:"NetAddrs"`
// 物理可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- PhysicalZone *string `json:"PhysicalZone,omitempty" name:"PhysicalZone"`
+ PhysicalZone *string `json:"PhysicalZone,omitnil,omitempty" name:"PhysicalZone"`
// 主可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- MasterZone *string `json:"MasterZone,omitempty" name:"MasterZone"`
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// 是否有从可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- HasSlaveZone *string `json:"HasSlaveZone,omitempty" name:"HasSlaveZone"`
+ HasSlaveZone *string `json:"HasSlaveZone,omitnil,omitempty" name:"HasSlaveZone"`
// 从可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- SlaveZones []*string `json:"SlaveZones,omitempty" name:"SlaveZones"`
+ SlaveZones []*string `json:"SlaveZones,omitnil,omitempty" name:"SlaveZones"`
// 商业类型
// 注意:此字段可能返回 null,表示取不到有效值。
- BusinessType *string `json:"BusinessType,omitempty" name:"BusinessType"`
+ BusinessType *string `json:"BusinessType,omitnil,omitempty" name:"BusinessType"`
// 是否冻结
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFreeze *string `json:"IsFreeze,omitempty" name:"IsFreeze"`
+ IsFreeze *string `json:"IsFreeze,omitnil,omitempty" name:"IsFreeze"`
// 订单来源
// 注意:此字段可能返回 null,表示取不到有效值。
- OrderSource *string `json:"OrderSource,omitempty" name:"OrderSource"`
+ OrderSource *string `json:"OrderSource,omitnil,omitempty" name:"OrderSource"`
// 能力
// 注意:此字段可能返回 null,表示取不到有效值。
- Ability *Ability `json:"Ability,omitempty" name:"Ability"`
+ Ability *Ability `json:"Ability,omitnil,omitempty" name:"Ability"`
// 实例绑定资源包信息(此处只返回存储资源包,即packageType=DISK)
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitempty" name:"ResourcePackages"`
+ ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitnil,omitempty" name:"ResourcePackages"`
}
type CynosdbClusterDetail struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 物理可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- PhysicalZone *string `json:"PhysicalZone,omitempty" name:"PhysicalZone"`
+ PhysicalZone *string `json:"PhysicalZone,omitnil,omitempty" name:"PhysicalZone"`
// 状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 状态描述
- StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
+ StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`
// 当Db类型为SERVERLESS时,serverless集群状态,可选值:
// resume
// resuming
// pause
// pausing
- ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"`
+ ServerlessStatus *string `json:"ServerlessStatus,omitnil,omitempty" name:"ServerlessStatus"`
// 存储Id
// 注意:此字段可能返回 null,表示取不到有效值。
- StorageId *string `json:"StorageId,omitempty" name:"StorageId"`
+ StorageId *string `json:"StorageId,omitnil,omitempty" name:"StorageId"`
// 存储大小,单位为G
// 注意:此字段可能返回 null,表示取不到有效值。
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 最大存储规格,单位为G
// 注意:此字段可能返回 null,表示取不到有效值。
- MaxStorageSize *int64 `json:"MaxStorageSize,omitempty" name:"MaxStorageSize"`
+ MaxStorageSize *int64 `json:"MaxStorageSize,omitnil,omitempty" name:"MaxStorageSize"`
// 最小存储规格,单位为G
// 注意:此字段可能返回 null,表示取不到有效值。
- MinStorageSize *int64 `json:"MinStorageSize,omitempty" name:"MinStorageSize"`
+ MinStorageSize *int64 `json:"MinStorageSize,omitnil,omitempty" name:"MinStorageSize"`
// 存储付费类型,1为包年包月,0为按量计费
// 注意:此字段可能返回 null,表示取不到有效值。
- StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *int64 `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
// VPC名称
- VpcName *string `json:"VpcName,omitempty" name:"VpcName"`
+ VpcName *string `json:"VpcName,omitnil,omitempty" name:"VpcName"`
// vpc唯一id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 子网名称
- SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"`
+ SubnetName *string `json:"SubnetName,omitnil,omitempty" name:"SubnetName"`
// 子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 字符集
- Charset *string `json:"Charset,omitempty" name:"Charset"`
+ Charset *string `json:"Charset,omitnil,omitempty" name:"Charset"`
// 创建时间
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 数据库类型
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
- // 数据库类型,normal,serverless
+ // Db类型:NORMALSERVERLESS
// 注意:此字段可能返回 null,表示取不到有效值。
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 数据库版本
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// 存储空间上限
// 注意:此字段可能返回 null,表示取不到有效值。
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 使用容量
- UsedStorage *int64 `json:"UsedStorage,omitempty" name:"UsedStorage"`
+ UsedStorage *int64 `json:"UsedStorage,omitnil,omitempty" name:"UsedStorage"`
// vip地址
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// vport端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
- // 读写分离Vport
- RoAddr []*Addr `json:"RoAddr,omitempty" name:"RoAddr"`
+ // 集群只读实例的vip地址和vport端口
+ RoAddr []*Addr `json:"RoAddr,omitnil,omitempty" name:"RoAddr"`
// 集群支持的功能
// 注意:此字段可能返回 null,表示取不到有效值。
- Ability *Ability `json:"Ability,omitempty" name:"Ability"`
+ Ability *Ability `json:"Ability,omitnil,omitempty" name:"Ability"`
// cynos版本
// 注意:此字段可能返回 null,表示取不到有效值。
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 商业类型
// 注意:此字段可能返回 null,表示取不到有效值。
- BusinessType *string `json:"BusinessType,omitempty" name:"BusinessType"`
+ BusinessType *string `json:"BusinessType,omitnil,omitempty" name:"BusinessType"`
// 是否有从可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- HasSlaveZone *string `json:"HasSlaveZone,omitempty" name:"HasSlaveZone"`
+ HasSlaveZone *string `json:"HasSlaveZone,omitnil,omitempty" name:"HasSlaveZone"`
// 是否冻结
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFreeze *string `json:"IsFreeze,omitempty" name:"IsFreeze"`
+ IsFreeze *string `json:"IsFreeze,omitnil,omitempty" name:"IsFreeze"`
// 任务列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"`
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
// 主可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- MasterZone *string `json:"MasterZone,omitempty" name:"MasterZone"`
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// 从可用区列表
// 注意:此字段可能返回 null,表示取不到有效值。
- SlaveZones []*string `json:"SlaveZones,omitempty" name:"SlaveZones"`
+ SlaveZones []*string `json:"SlaveZones,omitnil,omitempty" name:"SlaveZones"`
// 实例信息
- InstanceSet []*ClusterInstanceDetail `json:"InstanceSet,omitempty" name:"InstanceSet"`
+ InstanceSet []*ClusterInstanceDetail `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`
// 付费模式
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 到期时间
- PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
+ PeriodEndTime *string `json:"PeriodEndTime,omitnil,omitempty" name:"PeriodEndTime"`
// 项目id
- ProjectID *int64 `json:"ProjectID,omitempty" name:"ProjectID"`
+ ProjectID *int64 `json:"ProjectID,omitnil,omitempty" name:"ProjectID"`
// 实例绑定的tag数组信息
- ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"`
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
// Proxy状态
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyStatus *string `json:"ProxyStatus,omitempty" name:"ProxyStatus"`
+ ProxyStatus *string `json:"ProxyStatus,omitnil,omitempty" name:"ProxyStatus"`
// binlog开关,可选值:ON, OFF
// 注意:此字段可能返回 null,表示取不到有效值。
- LogBin *string `json:"LogBin,omitempty" name:"LogBin"`
+ LogBin *string `json:"LogBin,omitnil,omitempty" name:"LogBin"`
// 是否跳过交易
// 注意:此字段可能返回 null,表示取不到有效值。
- IsSkipTrade *string `json:"IsSkipTrade,omitempty" name:"IsSkipTrade"`
+ IsSkipTrade *string `json:"IsSkipTrade,omitnil,omitempty" name:"IsSkipTrade"`
// pitr类型,可选值:normal, redo_pitr
// 注意:此字段可能返回 null,表示取不到有效值。
- PitrType *string `json:"PitrType,omitempty" name:"PitrType"`
+ PitrType *string `json:"PitrType,omitnil,omitempty" name:"PitrType"`
// 是否打开密码复杂度
// 注意:此字段可能返回 null,表示取不到有效值。
- IsOpenPasswordComplexity *string `json:"IsOpenPasswordComplexity,omitempty" name:"IsOpenPasswordComplexity"`
+ IsOpenPasswordComplexity *string `json:"IsOpenPasswordComplexity,omitnil,omitempty" name:"IsOpenPasswordComplexity"`
// 网络类型
// 注意:此字段可能返回 null,表示取不到有效值。
- NetworkStatus *string `json:"NetworkStatus,omitempty" name:"NetworkStatus"`
+ NetworkStatus *string `json:"NetworkStatus,omitnil,omitempty" name:"NetworkStatus"`
// 集群绑定的资源包信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitempty" name:"ResourcePackages"`
+ ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitnil,omitempty" name:"ResourcePackages"`
// 自动续费标识,1为自动续费,0为到期不续
// 注意:此字段可能返回 null,表示取不到有效值。
- RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"`
+ RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
+
+ // 节点网络类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NetworkType *string `json:"NetworkType,omitnil,omitempty" name:"NetworkType"`
+
+ // 备可用区属性
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SlaveZoneAttr []*SlaveZoneAttrItem `json:"SlaveZoneAttr,omitnil,omitempty" name:"SlaveZoneAttr"`
}
type CynosdbErrorLogItem struct {
// 日志时间戳
// 注意:此字段可能返回 null,表示取不到有效值。
- Timestamp *int64 `json:"Timestamp,omitempty" name:"Timestamp"`
+ Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
// 日志等级
// 注意:此字段可能返回 null,表示取不到有效值。
- Level *string `json:"Level,omitempty" name:"Level"`
+ Level *string `json:"Level,omitnil,omitempty" name:"Level"`
// 日志内容
// 注意:此字段可能返回 null,表示取不到有效值。
- Content *string `json:"Content,omitempty" name:"Content"`
+ Content *string `json:"Content,omitnil,omitempty" name:"Content"`
}
type CynosdbInstance struct {
// 用户Uin
- Uin *string `json:"Uin,omitempty" name:"Uin"`
+ Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"`
// 用户AppId
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例名称
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 实例状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 实例状态中文描述
- StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
+ StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`
// 实例形态,是否为serverless实例
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 数据库类型
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 数据库版本
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// Cpu,单位:核
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存,单位:GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 存储量,单位:GB
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 实例当前角色
- InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"`
+ InstanceRole *string `json:"InstanceRole,omitnil,omitempty" name:"InstanceRole"`
// 更新时间
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 创建时间
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// VPC网络ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 实例内网IP
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 实例内网端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 付费模式
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 实例过期时间
- PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
+ PeriodEndTime *string `json:"PeriodEndTime,omitnil,omitempty" name:"PeriodEndTime"`
// 销毁期限
- DestroyDeadlineText *string `json:"DestroyDeadlineText,omitempty" name:"DestroyDeadlineText"`
+ DestroyDeadlineText *string `json:"DestroyDeadlineText,omitnil,omitempty" name:"DestroyDeadlineText"`
// 隔离时间
- IsolateTime *string `json:"IsolateTime,omitempty" name:"IsolateTime"`
+ IsolateTime *string `json:"IsolateTime,omitnil,omitempty" name:"IsolateTime"`
// 网络类型
- NetType *int64 `json:"NetType,omitempty" name:"NetType"`
+ NetType *int64 `json:"NetType,omitnil,omitempty" name:"NetType"`
// 外网域名
- WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
// 外网IP
- WanIP *string `json:"WanIP,omitempty" name:"WanIP"`
+ WanIP *string `json:"WanIP,omitnil,omitempty" name:"WanIP"`
// 外网端口
- WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"`
+ WanPort *int64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`
// 外网状态
- WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"`
+ WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
// 实例销毁时间
- DestroyTime *string `json:"DestroyTime,omitempty" name:"DestroyTime"`
+ DestroyTime *string `json:"DestroyTime,omitnil,omitempty" name:"DestroyTime"`
// Cynos内核版本
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 正在处理的任务
- ProcessingTask *string `json:"ProcessingTask,omitempty" name:"ProcessingTask"`
+ ProcessingTask *string `json:"ProcessingTask,omitnil,omitempty" name:"ProcessingTask"`
// 续费标志
- RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"`
+ RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// serverless实例cpu下限
- MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"`
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
// serverless实例cpu上限
- MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"`
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
// serverless实例状态, 可选值:
// resume
// pause
- ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"`
+ ServerlessStatus *string `json:"ServerlessStatus,omitnil,omitempty" name:"ServerlessStatus"`
// 预付费存储Id
// 注意:此字段可能返回 null,表示取不到有效值。
- StorageId *string `json:"StorageId,omitempty" name:"StorageId"`
+ StorageId *string `json:"StorageId,omitnil,omitempty" name:"StorageId"`
// 存储付费类型
- StoragePayMode *int64 `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *int64 `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
// 物理区
- PhysicalZone *string `json:"PhysicalZone,omitempty" name:"PhysicalZone"`
+ PhysicalZone *string `json:"PhysicalZone,omitnil,omitempty" name:"PhysicalZone"`
// 商业类型
// 注意:此字段可能返回 null,表示取不到有效值。
- BusinessType *string `json:"BusinessType,omitempty" name:"BusinessType"`
+ BusinessType *string `json:"BusinessType,omitnil,omitempty" name:"BusinessType"`
// 任务
// 注意:此字段可能返回 null,表示取不到有效值。
- Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"`
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
// 是否冻结
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFreeze *string `json:"IsFreeze,omitempty" name:"IsFreeze"`
+ IsFreeze *string `json:"IsFreeze,omitnil,omitempty" name:"IsFreeze"`
// 资源标签
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourceTags []*Tag `json:"ResourceTags,omitempty" name:"ResourceTags"`
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
// 主可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- MasterZone *string `json:"MasterZone,omitempty" name:"MasterZone"`
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// 备可用区
// 注意:此字段可能返回 null,表示取不到有效值。
- SlaveZones []*string `json:"SlaveZones,omitempty" name:"SlaveZones"`
+ SlaveZones []*string `json:"SlaveZones,omitnil,omitempty" name:"SlaveZones"`
// 实例网络信息
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceNetInfo []*InstanceNetInfo `json:"InstanceNetInfo,omitempty" name:"InstanceNetInfo"`
+ InstanceNetInfo []*InstanceNetInfo `json:"InstanceNetInfo,omitnil,omitempty" name:"InstanceNetInfo"`
// 实例绑定资源包信息(此处只返回计算资源包,即packageType=CCU)
// 注意:此字段可能返回 null,表示取不到有效值。
- ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitempty" name:"ResourcePackages"`
+ ResourcePackages []*ResourcePackage `json:"ResourcePackages,omitnil,omitempty" name:"ResourcePackages"`
+
+ // 实例索引形态,可选值【mixedRowColumn(行列混存),onlyRowIndex(仅行存)】
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceIndexMode *string `json:"InstanceIndexMode,omitnil,omitempty" name:"InstanceIndexMode"`
+
+ // 当前实例支持的能力
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceAbility *InstanceAbility `json:"InstanceAbility,omitnil,omitempty" name:"InstanceAbility"`
+
+ // 实例机器类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
+
+ // 实例存储类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceStorageType *string `json:"InstanceStorageType,omitnil,omitempty" name:"InstanceStorageType"`
}
type CynosdbInstanceDetail struct {
// 用户Uin
- Uin *string `json:"Uin,omitempty" name:"Uin"`
+ Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"`
// 用户AppId
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例名称
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 实例状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 实例状态中文描述
- StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
+ StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`
+
+ // serverless实例状态, 可能值:
+ // resume
+ // pause
+ ServerlessStatus *string `json:"ServerlessStatus,omitnil,omitempty" name:"ServerlessStatus"`
// 数据库类型
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 数据库版本
- DbVersion *string `json:"DbVersion,omitempty" name:"DbVersion"`
+ DbVersion *string `json:"DbVersion,omitnil,omitempty" name:"DbVersion"`
// Cpu,单位:核
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存,单位:GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 存储量,单位:GB
- Storage *int64 `json:"Storage,omitempty" name:"Storage"`
+ Storage *int64 `json:"Storage,omitnil,omitempty" name:"Storage"`
// 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 实例当前角色
- InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"`
+ InstanceRole *string `json:"InstanceRole,omitnil,omitempty" name:"InstanceRole"`
// 更新时间
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 创建时间
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 付费模式
- PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
// 实例过期时间
- PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"`
+ PeriodEndTime *string `json:"PeriodEndTime,omitnil,omitempty" name:"PeriodEndTime"`
// 网络类型
- NetType *int64 `json:"NetType,omitempty" name:"NetType"`
+ NetType *int64 `json:"NetType,omitnil,omitempty" name:"NetType"`
// VPC网络ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 实例内网IP
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 实例内网端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 实例外网域名
- WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
// 字符集
- Charset *string `json:"Charset,omitempty" name:"Charset"`
+ Charset *string `json:"Charset,omitnil,omitempty" name:"Charset"`
// Cynos内核版本
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 续费标志
- RenewFlag *int64 `json:"RenewFlag,omitempty" name:"RenewFlag"`
+ RenewFlag *int64 `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// serverless实例cpu下限
- MinCpu *float64 `json:"MinCpu,omitempty" name:"MinCpu"`
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
// serverless实例cpu上限
- MaxCpu *float64 `json:"MaxCpu,omitempty" name:"MaxCpu"`
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
- // serverless实例状态, 可能值:
- // resume
- // pause
- ServerlessStatus *string `json:"ServerlessStatus,omitempty" name:"ServerlessStatus"`
+ // Db类型:NORMALSERVERLESS
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
+}
+
+type CynosdbInstanceGroup struct {
+ // 用户appId
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 创建时间
+ CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"`
+
+ // 删除时间
+ DeletedTime *string `json:"DeletedTime,omitnil,omitempty" name:"DeletedTime"`
+
+ // 实例组ID
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
+
+ // 状态
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // 实例组类型。ha-ha组;ro-只读组
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // 更新时间
+ UpdatedTime *string `json:"UpdatedTime,omitnil,omitempty" name:"UpdatedTime"`
+
+ // 内网IP
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // 内网端口
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
+
+ // 外网域名
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
+
+ // 外网ip
+ WanIP *string `json:"WanIP,omitnil,omitempty" name:"WanIP"`
+
+ // 外网端口
+ WanPort *int64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`
+
+ // 外网状态
+ WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
+
+ // 实例组包含实例信息
+ InstanceSet []*CynosdbInstance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`
+
+ // VPC的ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // 子网ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
+
+ // 正在回收IP信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldAddrInfo *OldAddrInfo `json:"OldAddrInfo,omitnil,omitempty" name:"OldAddrInfo"`
+
+ // 正在进行的任务
+ ProcessingTasks []*string `json:"ProcessingTasks,omitnil,omitempty" name:"ProcessingTasks"`
+
+ // 任务列表
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
+
+ // biz_net_service表id
+ NetServiceId *int64 `json:"NetServiceId,omitnil,omitempty" name:"NetServiceId"`
}
type CynosdbInstanceGrp struct {
// 用户appId
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 创建时间
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
+ CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"`
// 删除时间
- DeletedTime *string `json:"DeletedTime,omitempty" name:"DeletedTime"`
+ DeletedTime *string `json:"DeletedTime,omitnil,omitempty" name:"DeletedTime"`
// 实例组ID
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
// 状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 实例组类型。ha-ha组;ro-只读组
- Type *string `json:"Type,omitempty" name:"Type"`
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// 更新时间
- UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"`
+ UpdatedTime *string `json:"UpdatedTime,omitnil,omitempty" name:"UpdatedTime"`
// 内网IP
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 内网端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 外网域名
- WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
// 外网ip
- WanIP *string `json:"WanIP,omitempty" name:"WanIP"`
+ WanIP *string `json:"WanIP,omitnil,omitempty" name:"WanIP"`
// 外网端口
- WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"`
+ WanPort *int64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`
// 外网状态
- WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"`
+ WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
// 实例组包含实例信息
- InstanceSet []*CynosdbInstance `json:"InstanceSet,omitempty" name:"InstanceSet"`
+ InstanceSet []*CynosdbInstance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`
// VPC的ID
// 注意:此字段可能返回 null,表示取不到有效值。
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 子网ID
// 注意:此字段可能返回 null,表示取不到有效值。
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 正在回收IP信息
// 注意:此字段可能返回 null,表示取不到有效值。
- OldAddrInfo *OldAddrInfo `json:"OldAddrInfo,omitempty" name:"OldAddrInfo"`
+ OldAddrInfo *OldAddrInfo `json:"OldAddrInfo,omitnil,omitempty" name:"OldAddrInfo"`
// 正在进行的任务
- ProcessingTasks []*string `json:"ProcessingTasks,omitempty" name:"ProcessingTasks"`
+ ProcessingTasks []*string `json:"ProcessingTasks,omitnil,omitempty" name:"ProcessingTasks"`
// 任务列表
- Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"`
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
// biz_net_service表id
- NetServiceId *int64 `json:"NetServiceId,omitempty" name:"NetServiceId"`
+ NetServiceId *int64 `json:"NetServiceId,omitnil,omitempty" name:"NetServiceId"`
}
type DatabasePrivileges struct {
// 数据库
- Db *string `json:"Db,omitempty" name:"Db"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Db *string `json:"Db,omitnil,omitempty" name:"Db"`
// 权限列表
- Privileges []*string `json:"Privileges,omitempty" name:"Privileges"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Privileges []*string `json:"Privileges,omitnil,omitempty" name:"Privileges"`
}
type DatabaseTables struct {
// 数据库名
// 注意:此字段可能返回 null,表示取不到有效值。
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 表名称列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Tables []*string `json:"Tables,omitempty" name:"Tables"`
+ Tables []*string `json:"Tables,omitnil,omitempty" name:"Tables"`
}
type DbInfo struct {
// 数据库名称
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
// 字符集类型
- CharacterSet *string `json:"CharacterSet,omitempty" name:"CharacterSet"`
+ CharacterSet *string `json:"CharacterSet,omitnil,omitempty" name:"CharacterSet"`
// 数据库状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 排序规则
- CollateRule *string `json:"CollateRule,omitempty" name:"CollateRule"`
+ CollateRule *string `json:"CollateRule,omitnil,omitempty" name:"CollateRule"`
// 数据库备注
// 注意:此字段可能返回 null,表示取不到有效值。
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 用户权限
// 注意:此字段可能返回 null,表示取不到有效值。
- UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitempty" name:"UserHostPrivileges"`
+ UserHostPrivileges []*UserHostPrivilege `json:"UserHostPrivileges,omitnil,omitempty" name:"UserHostPrivileges"`
// 数据库ID
// 注意:此字段可能返回 null,表示取不到有效值。
- DbId *int64 `json:"DbId,omitempty" name:"DbId"`
+ DbId *int64 `json:"DbId,omitnil,omitempty" name:"DbId"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
+ UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
// 用户appid
// 注意:此字段可能返回 null,表示取不到有效值。
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 用户Uin
// 注意:此字段可能返回 null,表示取不到有效值。
- Uin *string `json:"Uin,omitempty" name:"Uin"`
+ Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"`
// 集群Id
// 注意:此字段可能返回 null,表示取不到有效值。
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DbTable struct {
// 数据库名称
- Db *string `json:"Db,omitempty" name:"Db"`
+ Db *string `json:"Db,omitnil,omitempty" name:"Db"`
// 数据库表名称
- TableName *string `json:"TableName,omitempty" name:"TableName"`
+ TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`
}
// Predefined struct for user
type DeleteAccountsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号数组,包含account和host
- Accounts []*InputAccount `json:"Accounts,omitempty" name:"Accounts"`
+ Accounts []*InputAccount `json:"Accounts,omitnil,omitempty" name:"Accounts"`
}
type DeleteAccountsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号数组,包含account和host
- Accounts []*InputAccount `json:"Accounts,omitempty" name:"Accounts"`
+ Accounts []*InputAccount `json:"Accounts,omitnil,omitempty" name:"Accounts"`
}
func (r *DeleteAccountsRequest) ToJsonString() string {
@@ -3241,8 +3922,8 @@ func (r *DeleteAccountsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteAccountsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteAccountsResponse struct {
@@ -3264,20 +3945,20 @@ func (r *DeleteAccountsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteAuditLogFileRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 审计日志文件名称。
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
}
type DeleteAuditLogFileRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 审计日志文件名称。
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
}
func (r *DeleteAuditLogFileRequest) ToJsonString() string {
@@ -3302,8 +3983,8 @@ func (r *DeleteAuditLogFileRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteAuditLogFileResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteAuditLogFileResponse struct {
@@ -3324,15 +4005,15 @@ func (r *DeleteAuditLogFileResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteAuditRuleTemplatesRequestParams struct {
- // 审计规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 审计规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
}
type DeleteAuditRuleTemplatesRequest struct {
*tchttp.BaseRequest
- // 审计规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 审计规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
}
func (r *DeleteAuditRuleTemplatesRequest) ToJsonString() string {
@@ -3356,8 +4037,8 @@ func (r *DeleteAuditRuleTemplatesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteAuditRuleTemplatesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteAuditRuleTemplatesResponse struct {
@@ -3379,26 +4060,26 @@ func (r *DeleteAuditRuleTemplatesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteBackupRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份文件ID,旧版本使用的字段,不推荐使用
- SnapshotIdList []*int64 `json:"SnapshotIdList,omitempty" name:"SnapshotIdList"`
+ SnapshotIdList []*int64 `json:"SnapshotIdList,omitnil,omitempty" name:"SnapshotIdList"`
// 备份文件ID,推荐使用
- BackupIds []*int64 `json:"BackupIds,omitempty" name:"BackupIds"`
+ BackupIds []*int64 `json:"BackupIds,omitnil,omitempty" name:"BackupIds"`
}
type DeleteBackupRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份文件ID,旧版本使用的字段,不推荐使用
- SnapshotIdList []*int64 `json:"SnapshotIdList,omitempty" name:"SnapshotIdList"`
+ SnapshotIdList []*int64 `json:"SnapshotIdList,omitnil,omitempty" name:"SnapshotIdList"`
// 备份文件ID,推荐使用
- BackupIds []*int64 `json:"BackupIds,omitempty" name:"BackupIds"`
+ BackupIds []*int64 `json:"BackupIds,omitnil,omitempty" name:"BackupIds"`
}
func (r *DeleteBackupRequest) ToJsonString() string {
@@ -3424,8 +4105,8 @@ func (r *DeleteBackupRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteBackupResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteBackupResponse struct {
@@ -3444,23 +4125,101 @@ func (r *DeleteBackupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DeleteCLSDeliveryRequestParams struct {
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+type DeleteCLSDeliveryRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+func (r *DeleteCLSDeliveryRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteCLSDeliveryRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "CLSTopicIds")
+ delete(f, "LogType")
+ delete(f, "IsInMaintainPeriod")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCLSDeliveryRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteCLSDeliveryResponseParams struct {
+ // 异步任务id
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteCLSDeliveryResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteCLSDeliveryResponseParams `json:"Response"`
+}
+
+func (r *DeleteCLSDeliveryResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteCLSDeliveryResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DeleteClusterDatabaseRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- DbNames []*string `json:"DbNames,omitempty" name:"DbNames"`
+ DbNames []*string `json:"DbNames,omitnil,omitempty" name:"DbNames"`
}
type DeleteClusterDatabaseRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- DbNames []*string `json:"DbNames,omitempty" name:"DbNames"`
+ DbNames []*string `json:"DbNames,omitnil,omitempty" name:"DbNames"`
}
func (r *DeleteClusterDatabaseRequest) ToJsonString() string {
@@ -3485,8 +4244,8 @@ func (r *DeleteClusterDatabaseRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteClusterDatabaseResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteClusterDatabaseResponse struct {
@@ -3507,15 +4266,15 @@ func (r *DeleteClusterDatabaseResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteParamTemplateRequestParams struct {
- // 参数模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 参数模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
}
type DeleteParamTemplateRequest struct {
*tchttp.BaseRequest
- // 参数模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 参数模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
}
func (r *DeleteParamTemplateRequest) ToJsonString() string {
@@ -3539,8 +4298,8 @@ func (r *DeleteParamTemplateRequest) FromJsonString(s string) error {
// Predefined struct for user
type DeleteParamTemplateResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteParamTemplateResponse struct {
@@ -3559,23 +4318,33 @@ func (r *DeleteParamTemplateResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type DeliverSummary struct {
+ // 投递类型,store(存储类),mq(消息通道)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeliverType *string `json:"DeliverType,omitnil,omitempty" name:"DeliverType"`
+
+ // 投递子类型:cls,ckafka。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeliverSubType *string `json:"DeliverSubType,omitnil,omitempty" name:"DeliverSubType"`
+}
+
// Predefined struct for user
type DescribeAccountAllGrantPrivilegesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
}
type DescribeAccountAllGrantPrivilegesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
}
func (r *DescribeAccountAllGrantPrivilegesRequest) ToJsonString() string {
@@ -3602,22 +4371,22 @@ func (r *DescribeAccountAllGrantPrivilegesRequest) FromJsonString(s string) erro
type DescribeAccountAllGrantPrivilegesResponseParams struct {
// 权限语句
// 注意:此字段可能返回 null,表示取不到有效值。
- PrivilegeStatements []*string `json:"PrivilegeStatements,omitempty" name:"PrivilegeStatements"`
+ PrivilegeStatements []*string `json:"PrivilegeStatements,omitnil,omitempty" name:"PrivilegeStatements"`
// 全局权限
// 注意:此字段可能返回 null,表示取不到有效值。
- GlobalPrivileges []*string `json:"GlobalPrivileges,omitempty" name:"GlobalPrivileges"`
+ GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil,omitempty" name:"GlobalPrivileges"`
// 数据库权限
// 注意:此字段可能返回 null,表示取不到有效值。
- DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitempty" name:"DatabasePrivileges"`
+ DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitnil,omitempty" name:"DatabasePrivileges"`
// 数据库表权限
// 注意:此字段可能返回 null,表示取不到有效值。
- TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitempty" name:"TablePrivileges"`
+ TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitnil,omitempty" name:"TablePrivileges"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAccountAllGrantPrivilegesResponse struct {
@@ -3639,44 +4408,44 @@ func (r *DescribeAccountAllGrantPrivilegesResponse) FromJsonString(s string) err
// Predefined struct for user
type DescribeAccountPrivilegesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账户名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 主机
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名,为*时,忽略Type/TableName, 表示修改用户全局权限;
- Db *string `json:"Db,omitempty" name:"Db"`
+ Db *string `json:"Db,omitnil,omitempty" name:"Db"`
// 指定数据库下的对象类型,可选"table","*"
- Type *string `json:"Type,omitempty" name:"Type"`
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// 当Type="table"时,用来指定表名
- TableName *string `json:"TableName,omitempty" name:"TableName"`
+ TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`
}
type DescribeAccountPrivilegesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账户名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 主机
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名,为*时,忽略Type/TableName, 表示修改用户全局权限;
- Db *string `json:"Db,omitempty" name:"Db"`
+ Db *string `json:"Db,omitnil,omitempty" name:"Db"`
// 指定数据库下的对象类型,可选"table","*"
- Type *string `json:"Type,omitempty" name:"Type"`
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// 当Type="table"时,用来指定表名
- TableName *string `json:"TableName,omitempty" name:"TableName"`
+ TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`
}
func (r *DescribeAccountPrivilegesRequest) ToJsonString() string {
@@ -3705,11 +4474,11 @@ func (r *DescribeAccountPrivilegesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAccountPrivilegesResponseParams struct {
- // 权限列表,示例值为:["select","update","delete","create","drop","references","index","alter","show_db","create_tmp_table","lock_tables","execute","create_view","show_view","create_routine","alter_routine","event","trigger"]
- Privileges []*string `json:"Privileges,omitempty" name:"Privileges"`
+ // 权限列表,示例值为:["","select","update","delete","create","drop","references","index","alter","show_db","create_tmp_table","lock_tables","execute","create_view","show_view","create_routine","alter_routine","event","trigger"]
+ Privileges []*string `json:"Privileges,omitnil,omitempty" name:"Privileges"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAccountPrivilegesResponse struct {
@@ -3731,48 +4500,54 @@ func (r *DescribeAccountPrivilegesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAccountsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 需要过滤的账户列表
- AccountNames []*string `json:"AccountNames,omitempty" name:"AccountNames"`
+ AccountNames []*string `json:"AccountNames,omitnil,omitempty" name:"AccountNames"`
// 数据库类型,取值范围:
// MYSQL
// 该参数已废用
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 需要过滤的账户列表
- Hosts []*string `json:"Hosts,omitempty" name:"Hosts"`
+ Hosts []*string `json:"Hosts,omitnil,omitempty" name:"Hosts"`
// 限制量
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 模糊匹配关键字(同时匹配AccountName和AccountHost,返回并集结果,支持正则)
+ AccountRegular *string `json:"AccountRegular,omitnil,omitempty" name:"AccountRegular"`
}
type DescribeAccountsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 需要过滤的账户列表
- AccountNames []*string `json:"AccountNames,omitempty" name:"AccountNames"`
+ AccountNames []*string `json:"AccountNames,omitnil,omitempty" name:"AccountNames"`
// 数据库类型,取值范围:
// MYSQL
// 该参数已废用
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 需要过滤的账户列表
- Hosts []*string `json:"Hosts,omitempty" name:"Hosts"`
+ Hosts []*string `json:"Hosts,omitnil,omitempty" name:"Hosts"`
// 限制量
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 模糊匹配关键字(同时匹配AccountName和AccountHost,返回并集结果,支持正则)
+ AccountRegular *string `json:"AccountRegular,omitnil,omitempty" name:"AccountRegular"`
}
func (r *DescribeAccountsRequest) ToJsonString() string {
@@ -3793,6 +4568,7 @@ func (r *DescribeAccountsRequest) FromJsonString(s string) error {
delete(f, "Hosts")
delete(f, "Limit")
delete(f, "Offset")
+ delete(f, "AccountRegular")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountsRequest has unknown keys!", "")
}
@@ -3803,13 +4579,13 @@ func (r *DescribeAccountsRequest) FromJsonString(s string) error {
type DescribeAccountsResponseParams struct {
// 数据库账号列表
// 注意:此字段可能返回 null,表示取不到有效值。
- AccountSet []*Account `json:"AccountSet,omitempty" name:"AccountSet"`
+ AccountSet []*Account `json:"AccountSet,omitnil,omitempty" name:"AccountSet"`
// 账号总数量
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAccountsResponse struct {
@@ -3829,145 +4605,240 @@ func (r *DescribeAccountsResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type DescribeAuditLogFilesRequestParams struct {
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+type DescribeAuditInstanceListRequestParams struct {
+ // 实例审计开启的状态。1-已开启审计;0-未开启审计。
+ AuditSwitch *int64 `json:"AuditSwitch,omitnil,omitempty" name:"AuditSwitch"`
- // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 查询实例列表的过滤条件。
+ Filters []*AuditInstanceFilters `json:"Filters,omitnil,omitempty" name:"Filters"`
- // 分页偏移量。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ // 实例的审计规则模式。1-规则审计;0-全审计。
+ AuditMode *int64 `json:"AuditMode,omitnil,omitempty" name:"AuditMode"`
- // 审计日志文件名。
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ // 单次请求返回的数量。默认值为30,最大值为 100。
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 偏移量,默认值为 0。
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
-type DescribeAuditLogFilesRequest struct {
+type DescribeAuditInstanceListRequest struct {
*tchttp.BaseRequest
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ // 实例审计开启的状态。1-已开启审计;0-未开启审计。
+ AuditSwitch *int64 `json:"AuditSwitch,omitnil,omitempty" name:"AuditSwitch"`
- // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 查询实例列表的过滤条件。
+ Filters []*AuditInstanceFilters `json:"Filters,omitnil,omitempty" name:"Filters"`
- // 分页偏移量。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ // 实例的审计规则模式。1-规则审计;0-全审计。
+ AuditMode *int64 `json:"AuditMode,omitnil,omitempty" name:"AuditMode"`
- // 审计日志文件名。
- FileName *string `json:"FileName,omitempty" name:"FileName"`
+ // 单次请求返回的数量。默认值为30,最大值为 100。
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 偏移量,默认值为 0。
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
-func (r *DescribeAuditLogFilesRequest) ToJsonString() string {
+func (r *DescribeAuditInstanceListRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeAuditLogFilesRequest) FromJsonString(s string) error {
+func (r *DescribeAuditInstanceListRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
- delete(f, "InstanceId")
+ delete(f, "AuditSwitch")
+ delete(f, "Filters")
+ delete(f, "AuditMode")
delete(f, "Limit")
delete(f, "Offset")
- delete(f, "FileName")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditLogFilesRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditInstanceListRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeAuditLogFilesResponseParams struct {
- // 符合条件的审计日志文件个数。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+type DescribeAuditInstanceListResponseParams struct {
+ // 符合查询条件的实例总数。
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 审计日志文件详情。
- Items []*AuditLogFile `json:"Items,omitempty" name:"Items"`
+ // 审计实例详细信息列表。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Items []*InstanceAuditStatus `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
-type DescribeAuditLogFilesResponse struct {
+type DescribeAuditInstanceListResponse struct {
*tchttp.BaseResponse
- Response *DescribeAuditLogFilesResponseParams `json:"Response"`
+ Response *DescribeAuditInstanceListResponseParams `json:"Response"`
}
-func (r *DescribeAuditLogFilesResponse) ToJsonString() string {
+func (r *DescribeAuditInstanceListResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeAuditLogFilesResponse) FromJsonString(s string) error {
+func (r *DescribeAuditInstanceListResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeAuditLogsRequestParams struct {
+type DescribeAuditLogFilesRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // 开始时间,格式为:"2017-07-12 10:29:20"。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 结束时间,格式为:"2017-07-12 10:29:20"。
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ // 分页偏移量。
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 审计日志文件名。
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
+}
+
+type DescribeAuditLogFilesRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 分页偏移量。
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 审计日志文件名。
+ FileName *string `json:"FileName,omitnil,omitempty" name:"FileName"`
+}
+
+func (r *DescribeAuditLogFilesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeAuditLogFilesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "FileName")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditLogFilesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeAuditLogFilesResponseParams struct {
+ // 符合条件的审计日志文件个数。
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 审计日志文件详情。
+ Items []*AuditLogFile `json:"Items,omitnil,omitempty" name:"Items"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeAuditLogFilesResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeAuditLogFilesResponseParams `json:"Response"`
+}
+
+func (r *DescribeAuditLogFilesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeAuditLogFilesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeAuditLogsRequestParams struct {
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 开始时间,格式为:"2017-07-12 10:29:20"。
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
+
+ // 结束时间,格式为:"2017-07-12 10:29:20"。
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
- Order *string `json:"Order,omitempty" name:"Order"`
+ Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// 排序字段。支持值包括:
// "timestamp" - 时间戳;
// "affectRows" - 影响行数;
// "execTime" - 执行时间。
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 过滤条件。可按设置的过滤条件过滤日志。
- Filter *AuditLogFilter `json:"Filter,omitempty" name:"Filter"`
+ // 已废弃。
+ Filter *AuditLogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`
// 分页参数,单次返回的数据条数。默认值为100,最大值为100。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 分页偏移量。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 过滤条件。多个值之前是且的关系。
+ LogFilter []*InstanceAuditLogFilter `json:"LogFilter,omitnil,omitempty" name:"LogFilter"`
}
type DescribeAuditLogsRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 开始时间,格式为:"2017-07-12 10:29:20"。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间,格式为:"2017-07-12 10:29:20"。
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
- Order *string `json:"Order,omitempty" name:"Order"`
+ Order *string `json:"Order,omitnil,omitempty" name:"Order"`
// 排序字段。支持值包括:
// "timestamp" - 时间戳;
// "affectRows" - 影响行数;
// "execTime" - 执行时间。
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 过滤条件。可按设置的过滤条件过滤日志。
- Filter *AuditLogFilter `json:"Filter,omitempty" name:"Filter"`
+ // 已废弃。
+ Filter *AuditLogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`
// 分页参数,单次返回的数据条数。默认值为100,最大值为100。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 分页偏移量。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 过滤条件。多个值之前是且的关系。
+ LogFilter []*InstanceAuditLogFilter `json:"LogFilter,omitnil,omitempty" name:"LogFilter"`
}
func (r *DescribeAuditLogsRequest) ToJsonString() string {
@@ -3990,6 +4861,7 @@ func (r *DescribeAuditLogsRequest) FromJsonString(s string) error {
delete(f, "Filter")
delete(f, "Limit")
delete(f, "Offset")
+ delete(f, "LogFilter")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditLogsRequest has unknown keys!", "")
}
@@ -3999,14 +4871,14 @@ func (r *DescribeAuditLogsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAuditLogsResponseParams struct {
// 符合条件的审计日志条数。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 审计日志详情。
// 注意:此字段可能返回 null,表示取不到有效值。
- Items []*AuditLog `json:"Items,omitempty" name:"Items"`
+ Items []*AuditLog `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAuditLogsResponse struct {
@@ -4027,33 +4899,45 @@ func (r *DescribeAuditLogsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAuditRuleTemplatesRequestParams struct {
- // 规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
- // 规则模版名称
- RuleTemplateNames []*string `json:"RuleTemplateNames,omitempty" name:"RuleTemplateNames"`
+ // 规则模板名称
+ RuleTemplateNames []*string `json:"RuleTemplateNames,omitnil,omitempty" name:"RuleTemplateNames"`
// 单次请求返回的数量。默认值20。
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量,默认值为 0。
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
type DescribeAuditRuleTemplatesRequest struct {
*tchttp.BaseRequest
- // 规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
- // 规则模版名称
- RuleTemplateNames []*string `json:"RuleTemplateNames,omitempty" name:"RuleTemplateNames"`
+ // 规则模板名称
+ RuleTemplateNames []*string `json:"RuleTemplateNames,omitnil,omitempty" name:"RuleTemplateNames"`
// 单次请求返回的数量。默认值20。
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量,默认值为 0。
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
func (r *DescribeAuditRuleTemplatesRequest) ToJsonString() string {
@@ -4072,6 +4956,8 @@ func (r *DescribeAuditRuleTemplatesRequest) FromJsonString(s string) error {
delete(f, "RuleTemplateNames")
delete(f, "Limit")
delete(f, "Offset")
+ delete(f, "AlarmLevel")
+ delete(f, "AlarmPolicy")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditRuleTemplatesRequest has unknown keys!", "")
}
@@ -4081,14 +4967,14 @@ func (r *DescribeAuditRuleTemplatesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAuditRuleTemplatesResponseParams struct {
// 符合查询条件的实例总数。
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 规则模版详细信息列表。
+ // 规则模板详细信息列表。
// 注意:此字段可能返回 null,表示取不到有效值。
- Items []*AuditRuleTemplateInfo `json:"Items,omitempty" name:"Items"`
+ Items []*AuditRuleTemplateInfo `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAuditRuleTemplatesResponse struct {
@@ -4110,14 +4996,14 @@ func (r *DescribeAuditRuleTemplatesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeAuditRuleWithInstanceIdsRequestParams struct {
// 实例ID。目前仅支持单个实例的查询。
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
type DescribeAuditRuleWithInstanceIdsRequest struct {
*tchttp.BaseRequest
// 实例ID。目前仅支持单个实例的查询。
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
func (r *DescribeAuditRuleWithInstanceIdsRequest) ToJsonString() string {
@@ -4142,14 +5028,14 @@ func (r *DescribeAuditRuleWithInstanceIdsRequest) FromJsonString(s string) error
// Predefined struct for user
type DescribeAuditRuleWithInstanceIdsResponseParams struct {
// 无
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 实例审计规则信息。
// 注意:此字段可能返回 null,表示取不到有效值。
- Items []*InstanceAuditRule `json:"Items,omitempty" name:"Items"`
+ Items []*InstanceAuditRule `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAuditRuleWithInstanceIdsResponse struct {
@@ -4171,14 +5057,14 @@ func (r *DescribeAuditRuleWithInstanceIdsResponse) FromJsonString(s string) erro
// Predefined struct for user
type DescribeBackupConfigRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeBackupConfigRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeBackupConfigRequest) ToJsonString() string {
@@ -4203,24 +5089,28 @@ func (r *DescribeBackupConfigRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBackupConfigResponseParams struct {
// 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitempty" name:"BackupTimeBeg"`
+ BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitnil,omitempty" name:"BackupTimeBeg"`
// 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitempty" name:"BackupTimeEnd"`
+ BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitnil,omitempty" name:"BackupTimeEnd"`
// 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
- ReserveDuration *uint64 `json:"ReserveDuration,omitempty" name:"ReserveDuration"`
+ ReserveDuration *uint64 `json:"ReserveDuration,omitnil,omitempty" name:"ReserveDuration"`
// 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
// 注意:此字段可能返回 null,表示取不到有效值。
- BackupFreq []*string `json:"BackupFreq,omitempty" name:"BackupFreq"`
+ BackupFreq []*string `json:"BackupFreq,omitnil,omitempty" name:"BackupFreq"`
// 备份方式,logic-逻辑备份,snapshot-快照备份
// 注意:此字段可能返回 null,表示取不到有效值。
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 跨地域逻辑备份配置修改时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicCrossRegionsConfigUpdateTime *string `json:"LogicCrossRegionsConfigUpdateTime,omitnil,omitempty" name:"LogicCrossRegionsConfigUpdateTime"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBackupConfigResponse struct {
@@ -4242,20 +5132,20 @@ func (r *DescribeBackupConfigResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBackupDownloadUrlRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份ID
- BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"`
+ BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`
}
type DescribeBackupDownloadUrlRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份ID
- BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"`
+ BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`
}
func (r *DescribeBackupDownloadUrlRequest) ToJsonString() string {
@@ -4281,10 +5171,10 @@ func (r *DescribeBackupDownloadUrlRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBackupDownloadUrlResponseParams struct {
// 备份下载地址
- DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`
+ DownloadUrl *string `json:"DownloadUrl,omitnil,omitempty" name:"DownloadUrl"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBackupDownloadUrlResponse struct {
@@ -4306,88 +5196,100 @@ func (r *DescribeBackupDownloadUrlResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBackupListRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 备份文件列表大小,取值范围(0,100]
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 返回数量,取值范围(0,100]
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 备份文件列表偏移,取值范围[0,INF)
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ // 记录偏移量,取值范围[0,INF)
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 备份ID
- BackupIds []*int64 `json:"BackupIds,omitempty" name:"BackupIds"`
+ BackupIds []*int64 `json:"BackupIds,omitnil,omitempty" name:"BackupIds"`
// 备份类型,可选值:snapshot,快照备份; logic,逻辑备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
- // 备份方式,可选值:auto,自动备份;manual,手动备
- BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"`
+ // 备份方式,可选值:auto,自动备份;manual,手动备份
+ BackupMethod *string `json:"BackupMethod,omitnil,omitempty" name:"BackupMethod"`
// 快照类型,可选值:full,全量;increment,增量
- SnapShotType *string `json:"SnapShotType,omitempty" name:"SnapShotType"`
+ SnapShotType *string `json:"SnapShotType,omitnil,omitempty" name:"SnapShotType"`
// 备份开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 备份结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 备份文件名,模糊查询
- FileNames []*string `json:"FileNames,omitempty" name:"FileNames"`
+ FileNames []*string `json:"FileNames,omitnil,omitempty" name:"FileNames"`
// 备份备注名,模糊查询
- BackupNames []*string `json:"BackupNames,omitempty" name:"BackupNames"`
+ BackupNames []*string `json:"BackupNames,omitnil,omitempty" name:"BackupNames"`
// 快照备份Id列表
- SnapshotIdList []*int64 `json:"SnapshotIdList,omitempty" name:"SnapshotIdList"`
+ SnapshotIdList []*int64 `json:"SnapshotIdList,omitnil,omitempty" name:"SnapshotIdList"`
+
+ // 备份地域
+ BackupRegion *string `json:"BackupRegion,omitnil,omitempty" name:"BackupRegion"`
+
+ // 是否跨地域备份
+ IsCrossRegionsBackup *string `json:"IsCrossRegionsBackup,omitnil,omitempty" name:"IsCrossRegionsBackup"`
}
type DescribeBackupListRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 备份文件列表大小,取值范围(0,100]
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 返回数量,取值范围(0,100]
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 备份文件列表偏移,取值范围[0,INF)
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ // 记录偏移量,取值范围[0,INF)
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 备份ID
- BackupIds []*int64 `json:"BackupIds,omitempty" name:"BackupIds"`
+ BackupIds []*int64 `json:"BackupIds,omitnil,omitempty" name:"BackupIds"`
// 备份类型,可选值:snapshot,快照备份; logic,逻辑备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
- // 备份方式,可选值:auto,自动备份;manual,手动备
- BackupMethod *string `json:"BackupMethod,omitempty" name:"BackupMethod"`
+ // 备份方式,可选值:auto,自动备份;manual,手动备份
+ BackupMethod *string `json:"BackupMethod,omitnil,omitempty" name:"BackupMethod"`
// 快照类型,可选值:full,全量;increment,增量
- SnapShotType *string `json:"SnapShotType,omitempty" name:"SnapShotType"`
+ SnapShotType *string `json:"SnapShotType,omitnil,omitempty" name:"SnapShotType"`
// 备份开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 备份结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 备份文件名,模糊查询
- FileNames []*string `json:"FileNames,omitempty" name:"FileNames"`
+ FileNames []*string `json:"FileNames,omitnil,omitempty" name:"FileNames"`
// 备份备注名,模糊查询
- BackupNames []*string `json:"BackupNames,omitempty" name:"BackupNames"`
+ BackupNames []*string `json:"BackupNames,omitnil,omitempty" name:"BackupNames"`
// 快照备份Id列表
- SnapshotIdList []*int64 `json:"SnapshotIdList,omitempty" name:"SnapshotIdList"`
+ SnapshotIdList []*int64 `json:"SnapshotIdList,omitnil,omitempty" name:"SnapshotIdList"`
+
+ // 备份地域
+ BackupRegion *string `json:"BackupRegion,omitnil,omitempty" name:"BackupRegion"`
+
+ // 是否跨地域备份
+ IsCrossRegionsBackup *string `json:"IsCrossRegionsBackup,omitnil,omitempty" name:"IsCrossRegionsBackup"`
}
func (r *DescribeBackupListRequest) ToJsonString() string {
@@ -4415,6 +5317,8 @@ func (r *DescribeBackupListRequest) FromJsonString(s string) error {
delete(f, "FileNames")
delete(f, "BackupNames")
delete(f, "SnapshotIdList")
+ delete(f, "BackupRegion")
+ delete(f, "IsCrossRegionsBackup")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBackupListRequest has unknown keys!", "")
}
@@ -4424,13 +5328,13 @@ func (r *DescribeBackupListRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBackupListResponseParams struct {
// 总共备份文件个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 备份文件列表
- BackupList []*BackupFileInfo `json:"BackupList,omitempty" name:"BackupList"`
+ BackupList []*BackupFileInfo `json:"BackupList,omitnil,omitempty" name:"BackupList"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBackupListResponse struct {
@@ -4449,23 +5353,85 @@ func (r *DescribeBackupListResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeBinlogConfigRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
+
+type DescribeBinlogConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
+
+func (r *DescribeBinlogConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBinlogConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBinlogConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeBinlogConfigResponseParams struct {
+ // Binlog跨地域配置更新时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogCrossRegionsConfigUpdateTime *string `json:"BinlogCrossRegionsConfigUpdateTime,omitnil,omitempty" name:"BinlogCrossRegionsConfigUpdateTime"`
+
+ // Binlog配置信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogConfig *BinlogConfigInfo `json:"BinlogConfig,omitnil,omitempty" name:"BinlogConfig"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeBinlogConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeBinlogConfigResponseParams `json:"Response"`
+}
+
+func (r *DescribeBinlogConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBinlogConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeBinlogDownloadUrlRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Binlog文件ID
- BinlogId *int64 `json:"BinlogId,omitempty" name:"BinlogId"`
+ BinlogId *int64 `json:"BinlogId,omitnil,omitempty" name:"BinlogId"`
}
type DescribeBinlogDownloadUrlRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Binlog文件ID
- BinlogId *int64 `json:"BinlogId,omitempty" name:"BinlogId"`
+ BinlogId *int64 `json:"BinlogId,omitnil,omitempty" name:"BinlogId"`
}
func (r *DescribeBinlogDownloadUrlRequest) ToJsonString() string {
@@ -4491,10 +5457,10 @@ func (r *DescribeBinlogDownloadUrlRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBinlogDownloadUrlResponseParams struct {
// 下载地址
- DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`
+ DownloadUrl *string `json:"DownloadUrl,omitnil,omitempty" name:"DownloadUrl"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBinlogDownloadUrlResponse struct {
@@ -4516,14 +5482,14 @@ func (r *DescribeBinlogDownloadUrlResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBinlogSaveDaysRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeBinlogSaveDaysRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeBinlogSaveDaysRequest) ToJsonString() string {
@@ -4548,10 +5514,10 @@ func (r *DescribeBinlogSaveDaysRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBinlogSaveDaysResponseParams struct {
// Binlog保留天数
- BinlogSaveDays *int64 `json:"BinlogSaveDays,omitempty" name:"BinlogSaveDays"`
+ BinlogSaveDays *int64 `json:"BinlogSaveDays,omitnil,omitempty" name:"BinlogSaveDays"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBinlogSaveDaysResponse struct {
@@ -4573,38 +5539,38 @@ func (r *DescribeBinlogSaveDaysResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBinlogsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
type DescribeBinlogsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
func (r *DescribeBinlogsRequest) ToJsonString() string {
@@ -4633,14 +5599,14 @@ func (r *DescribeBinlogsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeBinlogsResponseParams struct {
// 记录总条数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Binlog列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Binlogs []*BinlogItem `json:"Binlogs,omitempty" name:"Binlogs"`
+ Binlogs []*BinlogItem `json:"Binlogs,omitnil,omitempty" name:"Binlogs"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeBinlogsResponse struct {
@@ -4659,35 +5625,190 @@ func (r *DescribeBinlogsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeChangedParamsAfterUpgradeRequestParams struct {
+ // 集群ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 变配后的CPU
+ DstCpu *int64 `json:"DstCpu,omitnil,omitempty" name:"DstCpu"`
+
+ // 变配后的MEM,单位G
+ DstMem *int64 `json:"DstMem,omitnil,omitempty" name:"DstMem"`
+}
+
+type DescribeChangedParamsAfterUpgradeRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 变配后的CPU
+ DstCpu *int64 `json:"DstCpu,omitnil,omitempty" name:"DstCpu"`
+
+ // 变配后的MEM,单位G
+ DstMem *int64 `json:"DstMem,omitnil,omitempty" name:"DstMem"`
+}
+
+func (r *DescribeChangedParamsAfterUpgradeRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeChangedParamsAfterUpgradeRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "DstCpu")
+ delete(f, "DstMem")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeChangedParamsAfterUpgradeRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeChangedParamsAfterUpgradeResponseParams struct {
+ // 参数个数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 实例参数列表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Items []*ParamItemInfo `json:"Items,omitnil,omitempty" name:"Items"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeChangedParamsAfterUpgradeResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeChangedParamsAfterUpgradeResponseParams `json:"Response"`
+}
+
+func (r *DescribeChangedParamsAfterUpgradeResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeChangedParamsAfterUpgradeResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClusterDatabasesRequestParams struct {
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 分页偏移
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 分页限制数量
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+type DescribeClusterDatabasesRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 分页偏移
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 分页限制数量
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+func (r *DescribeClusterDatabasesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterDatabasesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterDatabasesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClusterDatabasesResponseParams struct {
+ // 总条数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 分页偏移
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 数据库列表
+ Databases []*string `json:"Databases,omitnil,omitempty" name:"Databases"`
+
+ // 分页限制数
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClusterDatabasesResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClusterDatabasesResponseParams `json:"Response"`
+}
+
+func (r *DescribeClusterDatabasesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterDatabasesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeClusterDetailDatabasesRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 偏移量,默认0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 返回数量,默认20,最大100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 数据库名称
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
}
type DescribeClusterDetailDatabasesRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 偏移量,默认0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 返回数量,默认20,最大100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 数据库名称
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
}
func (r *DescribeClusterDetailDatabasesRequest) ToJsonString() string {
@@ -4716,13 +5837,13 @@ func (r *DescribeClusterDetailDatabasesRequest) FromJsonString(s string) error {
type DescribeClusterDetailDatabasesResponseParams struct {
// 数据库信息
// 注意:此字段可能返回 null,表示取不到有效值。
- DbInfos []*DbInfo `json:"DbInfos,omitempty" name:"DbInfos"`
+ DbInfos []*DbInfo `json:"DbInfos,omitnil,omitempty" name:"DbInfos"`
// 总数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClusterDetailDatabasesResponse struct {
@@ -4744,14 +5865,14 @@ func (r *DescribeClusterDetailDatabasesResponse) FromJsonString(s string) error
// Predefined struct for user
type DescribeClusterDetailRequestParams struct {
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeClusterDetailRequest struct {
*tchttp.BaseRequest
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeClusterDetailRequest) ToJsonString() string {
@@ -4776,10 +5897,10 @@ func (r *DescribeClusterDetailRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClusterDetailResponseParams struct {
// 集群详细信息
- Detail *CynosdbClusterDetail `json:"Detail,omitempty" name:"Detail"`
+ Detail *CynosdbClusterDetail `json:"Detail,omitnil,omitempty" name:"Detail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClusterDetailResponse struct {
@@ -4799,106 +5920,171 @@ func (r *DescribeClusterDetailResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type DescribeClusterInstanceGrpsRequestParams struct {
+type DescribeClusterInstanceGroupsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
-type DescribeClusterInstanceGrpsRequest struct {
+type DescribeClusterInstanceGroupsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
-func (r *DescribeClusterInstanceGrpsRequest) ToJsonString() string {
+func (r *DescribeClusterInstanceGroupsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeClusterInstanceGrpsRequest) FromJsonString(s string) error {
+func (r *DescribeClusterInstanceGroupsRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClusterId")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterInstanceGrpsRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterInstanceGroupsRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeClusterInstanceGrpsResponseParams struct {
+type DescribeClusterInstanceGroupsResponseParams struct {
// 实例组个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 实例组列表
- InstanceGrpInfoList []*CynosdbInstanceGrp `json:"InstanceGrpInfoList,omitempty" name:"InstanceGrpInfoList"`
+ InstanceGroupInfoList []*CynosdbInstanceGroup `json:"InstanceGroupInfoList,omitnil,omitempty" name:"InstanceGroupInfoList"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
-type DescribeClusterInstanceGrpsResponse struct {
+type DescribeClusterInstanceGroupsResponse struct {
*tchttp.BaseResponse
- Response *DescribeClusterInstanceGrpsResponseParams `json:"Response"`
+ Response *DescribeClusterInstanceGroupsResponseParams `json:"Response"`
}
-func (r *DescribeClusterInstanceGrpsResponse) ToJsonString() string {
+func (r *DescribeClusterInstanceGroupsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeClusterInstanceGrpsResponse) FromJsonString(s string) error {
+func (r *DescribeClusterInstanceGroupsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeClusterParamLogsRequestParams struct {
+type DescribeClusterInstanceGrpsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 实例ID列表,用来记录具体操作哪些实例
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 排序字段,定义在回返结果的基于哪个字段进行排序
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
-
- // 定义具体的排序规则,限定为desc,asc,DESC,ASC其中之一
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
-
- // 返回数量,默认为 20,取值范围为(0,100]
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
-
- // 记录偏移量,默认值为0,取值范围为[0,INF)
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
-type DescribeClusterParamLogsRequest struct {
+type DescribeClusterInstanceGrpsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 实例ID列表,用来记录具体操作哪些实例
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 排序字段,定义在回返结果的基于哪个字段进行排序
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
+
+func (r *DescribeClusterInstanceGrpsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterInstanceGrpsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterInstanceGrpsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClusterInstanceGrpsResponseParams struct {
+ // 实例组个数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 实例组列表
+ //
+ // Deprecated: InstanceGrpInfoList is deprecated.
+ InstanceGrpInfoList []*CynosdbInstanceGrp `json:"InstanceGrpInfoList,omitnil,omitempty" name:"InstanceGrpInfoList"`
+
+ // 实例组列表
+ InstanceGroupInfoList []*CynosdbInstanceGroup `json:"InstanceGroupInfoList,omitnil,omitempty" name:"InstanceGroupInfoList"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClusterInstanceGrpsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClusterInstanceGrpsResponseParams `json:"Response"`
+}
+
+func (r *DescribeClusterInstanceGrpsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterInstanceGrpsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClusterParamLogsRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 实例ID列表,用来记录具体操作哪些实例
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // 排序字段,定义在回返结果的基于哪个字段进行排序
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 定义具体的排序规则,限定为desc,asc,DESC,ASC其中之一
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
+
+ // 返回数量,默认为 20,取值范围为(0,100]
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 记录偏移量,默认值为0,取值范围为[0,INF)
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+}
+
+type DescribeClusterParamLogsRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 实例ID列表,用来记录具体操作哪些实例
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // 排序字段,定义在回返结果的基于哪个字段进行排序
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 定义具体的排序规则,限定为desc,asc,DESC,ASC其中之一
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 返回数量,默认为 20,取值范围为(0,100]
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0,取值范围为[0,INF)
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
func (r *DescribeClusterParamLogsRequest) ToJsonString() string {
@@ -4928,14 +6114,14 @@ func (r *DescribeClusterParamLogsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClusterParamLogsResponseParams struct {
// 记录总数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 参数修改记录
// 注意:此字段可能返回 null,表示取不到有效值。
- ClusterParamLogs []*ClusterParamModifyLog `json:"ClusterParamLogs,omitempty" name:"ClusterParamLogs"`
+ ClusterParamLogs []*ClusterParamModifyLog `json:"ClusterParamLogs,omitnil,omitempty" name:"ClusterParamLogs"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClusterParamLogsResponse struct {
@@ -4957,20 +6143,26 @@ func (r *DescribeClusterParamLogsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClusterParamsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 参数名字
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
+
+ // 是否为全局参数
+ IsGlobal *string `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
}
type DescribeClusterParamsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 参数名字
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
+
+ // 是否为全局参数
+ IsGlobal *string `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
}
func (r *DescribeClusterParamsRequest) ToJsonString() string {
@@ -4987,6 +6179,7 @@ func (r *DescribeClusterParamsRequest) FromJsonString(s string) error {
}
delete(f, "ClusterId")
delete(f, "ParamName")
+ delete(f, "IsGlobal")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterParamsRequest has unknown keys!", "")
}
@@ -4996,14 +6189,14 @@ func (r *DescribeClusterParamsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClusterParamsResponseParams struct {
// 参数个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 实例参数列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Items []*ParamInfo `json:"Items,omitempty" name:"Items"`
+ Items []*ParamInfo `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClusterParamsResponse struct {
@@ -5025,14 +6218,14 @@ func (r *DescribeClusterParamsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClusterPasswordComplexityRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeClusterPasswordComplexityRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeClusterPasswordComplexityRequest) ToJsonString() string {
@@ -5058,30 +6251,30 @@ func (r *DescribeClusterPasswordComplexityRequest) FromJsonString(s string) erro
type DescribeClusterPasswordComplexityResponseParams struct {
// 数据字典参数
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordDictionary *ParamInfo `json:"ValidatePasswordDictionary,omitempty" name:"ValidatePasswordDictionary"`
+ ValidatePasswordDictionary *ParamInfo `json:"ValidatePasswordDictionary,omitnil,omitempty" name:"ValidatePasswordDictionary"`
// 密码长度
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordLength *ParamInfo `json:"ValidatePasswordLength,omitempty" name:"ValidatePasswordLength"`
+ ValidatePasswordLength *ParamInfo `json:"ValidatePasswordLength,omitnil,omitempty" name:"ValidatePasswordLength"`
// 大小写敏感字符个数
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordMixedCaseCount *ParamInfo `json:"ValidatePasswordMixedCaseCount,omitempty" name:"ValidatePasswordMixedCaseCount"`
+ ValidatePasswordMixedCaseCount *ParamInfo `json:"ValidatePasswordMixedCaseCount,omitnil,omitempty" name:"ValidatePasswordMixedCaseCount"`
// 数字个数
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordNumberCount *ParamInfo `json:"ValidatePasswordNumberCount,omitempty" name:"ValidatePasswordNumberCount"`
+ ValidatePasswordNumberCount *ParamInfo `json:"ValidatePasswordNumberCount,omitnil,omitempty" name:"ValidatePasswordNumberCount"`
// 密码等级
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordPolicy *ParamInfo `json:"ValidatePasswordPolicy,omitempty" name:"ValidatePasswordPolicy"`
+ ValidatePasswordPolicy *ParamInfo `json:"ValidatePasswordPolicy,omitnil,omitempty" name:"ValidatePasswordPolicy"`
// 特殊字符个数
// 注意:此字段可能返回 null,表示取不到有效值。
- ValidatePasswordSpecialCharCount *ParamInfo `json:"ValidatePasswordSpecialCharCount,omitempty" name:"ValidatePasswordSpecialCharCount"`
+ ValidatePasswordSpecialCharCount *ParamInfo `json:"ValidatePasswordSpecialCharCount,omitnil,omitempty" name:"ValidatePasswordSpecialCharCount"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClusterPasswordComplexityResponse struct {
@@ -5100,55 +6293,115 @@ func (r *DescribeClusterPasswordComplexityResponse) FromJsonString(s string) err
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeClusterTransparentEncryptInfoRequestParams struct {
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
+
+type DescribeClusterTransparentEncryptInfoRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
+
+func (r *DescribeClusterTransparentEncryptInfoRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterTransparentEncryptInfoRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterTransparentEncryptInfoRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClusterTransparentEncryptInfoResponseParams struct {
+ // 加密秘钥id
+ KeyId *string `json:"KeyId,omitnil,omitempty" name:"KeyId"`
+
+ // 加密秘钥地域
+ KeyRegion *string `json:"KeyRegion,omitnil,omitempty" name:"KeyRegion"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClusterTransparentEncryptInfoResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClusterTransparentEncryptInfoResponseParams `json:"Response"`
+}
+
+func (r *DescribeClusterTransparentEncryptInfoResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClusterTransparentEncryptInfoResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeClustersRequestParams struct {
// 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
type DescribeClustersRequest struct {
*tchttp.BaseRequest
// 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func (r *DescribeClustersRequest) ToJsonString() string {
@@ -5178,13 +6431,13 @@ func (r *DescribeClustersRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClustersResponseParams struct {
// 集群数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 集群列表
- ClusterSet []*CynosdbCluster `json:"ClusterSet,omitempty" name:"ClusterSet"`
+ ClusterSet []*CynosdbCluster `json:"ClusterSet,omitnil,omitempty" name:"ClusterSet"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeClustersResponse struct {
@@ -5205,15 +6458,23 @@ func (r *DescribeClustersResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeDBSecurityGroupsRequestParams struct {
+ // 实例ID
+ //
+ // Deprecated: InstanceId is deprecated.
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
// 实例组ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
}
type DescribeDBSecurityGroupsRequest struct {
*tchttp.BaseRequest
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
// 实例组ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
}
func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string {
@@ -5229,6 +6490,7 @@ func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error {
return err
}
delete(f, "InstanceId")
+ delete(f, "InstanceGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDBSecurityGroupsRequest has unknown keys!", "")
}
@@ -5238,10 +6500,10 @@ func (r *DescribeDBSecurityGroupsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeDBSecurityGroupsResponseParams struct {
// 安全组信息
- Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"`
+ Groups []*SecurityGroup `json:"Groups,omitnil,omitempty" name:"Groups"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeDBSecurityGroupsResponse struct {
@@ -5263,14 +6525,14 @@ func (r *DescribeDBSecurityGroupsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeFlowRequestParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
}
type DescribeFlowRequest struct {
*tchttp.BaseRequest
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
}
func (r *DescribeFlowRequest) ToJsonString() string {
@@ -5295,10 +6557,10 @@ func (r *DescribeFlowRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeFlowResponseParams struct {
// 任务流状态。0-成功,1-失败,2-处理中
- Status *int64 `json:"Status,omitempty" name:"Status"`
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeFlowResponse struct {
@@ -5317,17 +6579,84 @@ func (r *DescribeFlowResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeInstanceCLSLogDeliveryRequestParams struct {
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+}
+
+type DescribeInstanceCLSLogDeliveryRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+}
+
+func (r *DescribeInstanceCLSLogDeliveryRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeInstanceCLSLogDeliveryRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "LogType")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceCLSLogDeliveryRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeInstanceCLSLogDeliveryResponseParams struct {
+ // 总数量
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 实例投递信息
+ InstanceCLSDeliveryInfos []*InstanceCLSDeliveryInfo `json:"InstanceCLSDeliveryInfos,omitnil,omitempty" name:"InstanceCLSDeliveryInfos"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeInstanceCLSLogDeliveryResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeInstanceCLSLogDeliveryResponseParams `json:"Response"`
+}
+
+func (r *DescribeInstanceCLSLogDeliveryResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeInstanceCLSLogDeliveryResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeInstanceDetailRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
type DescribeInstanceDetailRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func (r *DescribeInstanceDetailRequest) ToJsonString() string {
@@ -5352,10 +6681,10 @@ func (r *DescribeInstanceDetailRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceDetailResponseParams struct {
// 实例详情
- Detail *CynosdbInstanceDetail `json:"Detail,omitempty" name:"Detail"`
+ Detail *CynosdbInstanceDetail `json:"Detail,omitnil,omitempty" name:"Detail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstanceDetailResponse struct {
@@ -5377,62 +6706,62 @@ func (r *DescribeInstanceDetailResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceErrorLogsRequestParams struct {
// 实例Id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志条数限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 日志条数偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序字段,有Timestamp枚举值
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,有ASC,DESC枚举值
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 日志等级,有error、warning、note三种,支持多个等级同时搜索
- LogLevels []*string `json:"LogLevels,omitempty" name:"LogLevels"`
+ LogLevels []*string `json:"LogLevels,omitnil,omitempty" name:"LogLevels"`
// 关键字,支持模糊搜索
- KeyWords []*string `json:"KeyWords,omitempty" name:"KeyWords"`
+ KeyWords []*string `json:"KeyWords,omitnil,omitempty" name:"KeyWords"`
}
type DescribeInstanceErrorLogsRequest struct {
*tchttp.BaseRequest
// 实例Id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志条数限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 日志条数偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 排序字段,有Timestamp枚举值
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,有ASC,DESC枚举值
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 日志等级,有error、warning、note三种,支持多个等级同时搜索
- LogLevels []*string `json:"LogLevels,omitempty" name:"LogLevels"`
+ LogLevels []*string `json:"LogLevels,omitnil,omitempty" name:"LogLevels"`
// 关键字,支持模糊搜索
- KeyWords []*string `json:"KeyWords,omitempty" name:"KeyWords"`
+ KeyWords []*string `json:"KeyWords,omitnil,omitempty" name:"KeyWords"`
}
func (r *DescribeInstanceErrorLogsRequest) ToJsonString() string {
@@ -5466,14 +6795,14 @@ func (r *DescribeInstanceErrorLogsRequest) FromJsonString(s string) error {
type DescribeInstanceErrorLogsResponseParams struct {
// 日志条数
// 注意:此字段可能返回 null,表示取不到有效值。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 错误日志列表
// 注意:此字段可能返回 null,表示取不到有效值。
- ErrorLogs []*CynosdbErrorLogItem `json:"ErrorLogs,omitempty" name:"ErrorLogs"`
+ ErrorLogs []*CynosdbErrorLogItem `json:"ErrorLogs,omitnil,omitempty" name:"ErrorLogs"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstanceErrorLogsResponse struct {
@@ -5495,26 +6824,32 @@ func (r *DescribeInstanceErrorLogsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceParamsRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID,支持批量查询
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 参数名搜索条件,支持模糊匹配
- ParamKeyword *string `json:"ParamKeyword,omitempty" name:"ParamKeyword"`
+ ParamKeyword *string `json:"ParamKeyword,omitnil,omitempty" name:"ParamKeyword"`
+
+ // 是否为全局参数
+ IsGlobal *string `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
}
type DescribeInstanceParamsRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID,支持批量查询
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 参数名搜索条件,支持模糊匹配
- ParamKeyword *string `json:"ParamKeyword,omitempty" name:"ParamKeyword"`
+ ParamKeyword *string `json:"ParamKeyword,omitnil,omitempty" name:"ParamKeyword"`
+
+ // 是否为全局参数
+ IsGlobal *string `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
}
func (r *DescribeInstanceParamsRequest) ToJsonString() string {
@@ -5532,6 +6867,7 @@ func (r *DescribeInstanceParamsRequest) FromJsonString(s string) error {
delete(f, "ClusterId")
delete(f, "InstanceIds")
delete(f, "ParamKeyword")
+ delete(f, "IsGlobal")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceParamsRequest has unknown keys!", "")
}
@@ -5541,10 +6877,10 @@ func (r *DescribeInstanceParamsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceParamsResponseParams struct {
// 实例参数列表
- Items []*InstanceParamItem `json:"Items,omitempty" name:"Items"`
+ Items []*InstanceParamItem `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstanceParamsResponse struct {
@@ -5566,68 +6902,68 @@ func (r *DescribeInstanceParamsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceSlowQueriesRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 事务开始最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 事务开始最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 用户名
- Username *string `json:"Username,omitempty" name:"Username"`
+ Username *string `json:"Username,omitnil,omitempty" name:"Username"`
// 客户端host
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,可选值:asc,desc
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
type DescribeInstanceSlowQueriesRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 事务开始最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 事务开始最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 用户名
- Username *string `json:"Username,omitempty" name:"Username"`
+ Username *string `json:"Username,omitnil,omitempty" name:"Username"`
// 客户端host
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,可选值:asc,desc
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
func (r *DescribeInstanceSlowQueriesRequest) ToJsonString() string {
@@ -5661,13 +6997,13 @@ func (r *DescribeInstanceSlowQueriesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceSlowQueriesResponseParams struct {
// 总条数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 慢查询记录
- SlowQueries []*SlowQueriesItem `json:"SlowQueries,omitempty" name:"SlowQueries"`
+ SlowQueries []*SlowQueriesItem `json:"SlowQueries,omitnil,omitempty" name:"SlowQueries"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstanceSlowQueriesResponse struct {
@@ -5690,10 +7026,13 @@ func (r *DescribeInstanceSlowQueriesResponse) FromJsonString(s string) error {
type DescribeInstanceSpecsRequestParams struct {
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 是否需要返回可用区信息
- IncludeZoneStocks *bool `json:"IncludeZoneStocks,omitempty" name:"IncludeZoneStocks"`
+ IncludeZoneStocks *bool `json:"IncludeZoneStocks,omitnil,omitempty" name:"IncludeZoneStocks"`
+
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
}
type DescribeInstanceSpecsRequest struct {
@@ -5701,10 +7040,13 @@ type DescribeInstanceSpecsRequest struct {
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 是否需要返回可用区信息
- IncludeZoneStocks *bool `json:"IncludeZoneStocks,omitempty" name:"IncludeZoneStocks"`
+ IncludeZoneStocks *bool `json:"IncludeZoneStocks,omitnil,omitempty" name:"IncludeZoneStocks"`
+
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
}
func (r *DescribeInstanceSpecsRequest) ToJsonString() string {
@@ -5721,6 +7063,7 @@ func (r *DescribeInstanceSpecsRequest) FromJsonString(s string) error {
}
delete(f, "DbType")
delete(f, "IncludeZoneStocks")
+ delete(f, "DeviceType")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceSpecsRequest has unknown keys!", "")
}
@@ -5730,10 +7073,10 @@ func (r *DescribeInstanceSpecsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstanceSpecsResponseParams struct {
// 规格信息
- InstanceSpecSet []*InstanceSpec `json:"InstanceSpecSet,omitempty" name:"InstanceSpecSet"`
+ InstanceSpecSet []*InstanceSpec `json:"InstanceSpecSet,omitnil,omitempty" name:"InstanceSpecSet"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstanceSpecsResponse struct {
@@ -5754,27 +7097,27 @@ func (r *DescribeInstanceSpecsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstancesRequestParams struct {
- // 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 返回数量,默认为 20,取值范围为(0,100]
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
- // 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ // 引擎类型:目前支持“MYSQL”
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 实例状态, 可选值:
// creating 创建中
@@ -5784,36 +7127,36 @@ type DescribeInstancesRequestParams struct {
// activating 恢复中
// offlining 下线中
// offlined 已下线
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 实例id列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
type DescribeInstancesRequest struct {
*tchttp.BaseRequest
- // 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ // 返回数量,默认为 20,取值范围为(0,100]
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
- // 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ // 引擎类型:目前支持“MYSQL”
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 实例状态, 可选值:
// creating 创建中
@@ -5823,10 +7166,10 @@ type DescribeInstancesRequest struct {
// activating 恢复中
// offlining 下线中
// offlined 已下线
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 实例id列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
func (r *DescribeInstancesRequest) ToJsonString() string {
@@ -5858,13 +7201,13 @@ func (r *DescribeInstancesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeInstancesResponseParams struct {
// 实例个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 实例列表
- InstanceSet []*CynosdbInstance `json:"InstanceSet,omitempty" name:"InstanceSet"`
+ InstanceSet []*CynosdbInstance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeInstancesResponse struct {
@@ -5884,125 +7227,295 @@ func (r *DescribeInstancesResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type DescribeMaintainPeriodRequestParams struct {
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+type DescribeInstancesWithinSameClusterRequestParams struct {
+ // vpcId
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // vip
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
}
-type DescribeMaintainPeriodRequest struct {
+type DescribeInstancesWithinSameClusterRequest struct {
*tchttp.BaseRequest
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ // vpcId
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // vip
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
}
-func (r *DescribeMaintainPeriodRequest) ToJsonString() string {
+func (r *DescribeInstancesWithinSameClusterRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeMaintainPeriodRequest) FromJsonString(s string) error {
+func (r *DescribeInstancesWithinSameClusterRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
- delete(f, "InstanceId")
+ delete(f, "UniqVpcId")
+ delete(f, "Vip")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeMaintainPeriodRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstancesWithinSameClusterRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeMaintainPeriodResponseParams struct {
- // 维护week days
- MaintainWeekDays []*string `json:"MaintainWeekDays,omitempty" name:"MaintainWeekDays"`
-
- // 维护开始时间,单位秒
- MaintainStartTime *int64 `json:"MaintainStartTime,omitempty" name:"MaintainStartTime"`
+type DescribeInstancesWithinSameClusterResponseParams struct {
+ // 实例个数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 维护时长,单位秒
- MaintainDuration *int64 `json:"MaintainDuration,omitempty" name:"MaintainDuration"`
+ // 实例ID列表
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
-type DescribeMaintainPeriodResponse struct {
+type DescribeInstancesWithinSameClusterResponse struct {
*tchttp.BaseResponse
- Response *DescribeMaintainPeriodResponseParams `json:"Response"`
+ Response *DescribeInstancesWithinSameClusterResponseParams `json:"Response"`
}
-func (r *DescribeMaintainPeriodResponse) ToJsonString() string {
+func (r *DescribeInstancesWithinSameClusterResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeMaintainPeriodResponse) FromJsonString(s string) error {
+func (r *DescribeInstancesWithinSameClusterResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeParamTemplateDetailRequestParams struct {
- // 参数模板ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+type DescribeIsolatedInstancesRequestParams struct {
+ // 返回数量,默认为 20,最大值为 100
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 记录偏移量,默认值为0
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 排序字段,取值范围:
+ // CREATETIME:创建时间
+ // PERIODENDTIME:过期时间
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 排序类型,取值范围:
+ // ASC:升序排序
+ // DESC:降序排序
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
+
+ // 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
}
-type DescribeParamTemplateDetailRequest struct {
+type DescribeIsolatedInstancesRequest struct {
*tchttp.BaseRequest
- // 参数模板ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 返回数量,默认为 20,最大值为 100
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 记录偏移量,默认值为0
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 排序字段,取值范围:
+ // CREATETIME:创建时间
+ // PERIODENDTIME:过期时间
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 排序类型,取值范围:
+ // ASC:升序排序
+ // DESC:降序排序
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
+
+ // 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
}
-func (r *DescribeParamTemplateDetailRequest) ToJsonString() string {
+func (r *DescribeIsolatedInstancesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeParamTemplateDetailRequest) FromJsonString(s string) error {
+func (r *DescribeIsolatedInstancesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
- delete(f, "TemplateId")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "OrderBy")
+ delete(f, "OrderByType")
+ delete(f, "Filters")
+ delete(f, "DbType")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeParamTemplateDetailRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeIsolatedInstancesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeParamTemplateDetailResponseParams struct {
- // 参数模板ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 参数模板名称
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+type DescribeIsolatedInstancesResponseParams struct {
+ // 实例个数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
- // 参数模板描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ // 实例列表
+ InstanceSet []*CynosdbInstance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`
- // 引擎版本
- EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
- // 参数总条数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+type DescribeIsolatedInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeIsolatedInstancesResponseParams `json:"Response"`
+}
- // 参数列表
- Items []*ParamDetail `json:"Items,omitempty" name:"Items"`
+func (r *DescribeIsolatedInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeIsolatedInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeMaintainPeriodRequestParams struct {
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+}
+
+type DescribeMaintainPeriodRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+}
+
+func (r *DescribeMaintainPeriodRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeMaintainPeriodRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeMaintainPeriodRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeMaintainPeriodResponseParams struct {
+ // 维护week days
+ MaintainWeekDays []*string `json:"MaintainWeekDays,omitnil,omitempty" name:"MaintainWeekDays"`
+
+ // 维护开始时间,单位秒
+ MaintainStartTime *int64 `json:"MaintainStartTime,omitnil,omitempty" name:"MaintainStartTime"`
+
+ // 维护时长,单位秒
+ MaintainDuration *int64 `json:"MaintainDuration,omitnil,omitempty" name:"MaintainDuration"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeMaintainPeriodResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeMaintainPeriodResponseParams `json:"Response"`
+}
+
+func (r *DescribeMaintainPeriodResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeMaintainPeriodResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeParamTemplateDetailRequestParams struct {
+ // 参数模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
+}
+
+type DescribeParamTemplateDetailRequest struct {
+ *tchttp.BaseRequest
+
+ // 参数模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
+}
+
+func (r *DescribeParamTemplateDetailRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeParamTemplateDetailRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TemplateId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeParamTemplateDetailRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeParamTemplateDetailResponseParams struct {
+ // 参数模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
+
+ // 参数模板名称
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
+
+ // 参数模板描述
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
+
+ // 引擎版本
+ EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`
+
+ // 参数总条数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 参数列表
+ Items []*ParamDetail `json:"Items,omitnil,omitempty" name:"Items"`
// 数据库类型,可选值:NORMAL,SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeParamTemplateDetailResponse struct {
@@ -6024,74 +7537,74 @@ func (r *DescribeParamTemplateDetailResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeParamTemplatesRequestParams struct {
// 数据库引擎版本号
- EngineVersions []*string `json:"EngineVersions,omitempty" name:"EngineVersions"`
+ EngineVersions []*string `json:"EngineVersions,omitnil,omitempty" name:"EngineVersions"`
- // 模版名称
- TemplateNames []*string `json:"TemplateNames,omitempty" name:"TemplateNames"`
+ // 模板名称
+ TemplateNames []*string `json:"TemplateNames,omitnil,omitempty" name:"TemplateNames"`
- // 模版ID
- TemplateIds []*int64 `json:"TemplateIds,omitempty" name:"TemplateIds"`
+ // 模板ID
+ TemplateIds []*int64 `json:"TemplateIds,omitnil,omitempty" name:"TemplateIds"`
// 数据库类型,可选值:NORMAL,SERVERLESS
- DbModes []*string `json:"DbModes,omitempty" name:"DbModes"`
+ DbModes []*string `json:"DbModes,omitnil,omitempty" name:"DbModes"`
// 查询偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 查询限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 查询的模板对应的产品类型
- Products []*string `json:"Products,omitempty" name:"Products"`
+ Products []*string `json:"Products,omitnil,omitempty" name:"Products"`
- // 模版类型
- TemplateTypes []*string `json:"TemplateTypes,omitempty" name:"TemplateTypes"`
+ // 模板类型
+ TemplateTypes []*string `json:"TemplateTypes,omitnil,omitempty" name:"TemplateTypes"`
// 版本类型
- EngineTypes []*string `json:"EngineTypes,omitempty" name:"EngineTypes"`
+ EngineTypes []*string `json:"EngineTypes,omitnil,omitempty" name:"EngineTypes"`
// 返回结果的排序字段
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序方式(asc、desc)
- OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
+ OrderDirection *string `json:"OrderDirection,omitnil,omitempty" name:"OrderDirection"`
}
type DescribeParamTemplatesRequest struct {
*tchttp.BaseRequest
// 数据库引擎版本号
- EngineVersions []*string `json:"EngineVersions,omitempty" name:"EngineVersions"`
+ EngineVersions []*string `json:"EngineVersions,omitnil,omitempty" name:"EngineVersions"`
- // 模版名称
- TemplateNames []*string `json:"TemplateNames,omitempty" name:"TemplateNames"`
+ // 模板名称
+ TemplateNames []*string `json:"TemplateNames,omitnil,omitempty" name:"TemplateNames"`
- // 模版ID
- TemplateIds []*int64 `json:"TemplateIds,omitempty" name:"TemplateIds"`
+ // 模板ID
+ TemplateIds []*int64 `json:"TemplateIds,omitnil,omitempty" name:"TemplateIds"`
// 数据库类型,可选值:NORMAL,SERVERLESS
- DbModes []*string `json:"DbModes,omitempty" name:"DbModes"`
+ DbModes []*string `json:"DbModes,omitnil,omitempty" name:"DbModes"`
// 查询偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 查询限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 查询的模板对应的产品类型
- Products []*string `json:"Products,omitempty" name:"Products"`
+ Products []*string `json:"Products,omitnil,omitempty" name:"Products"`
- // 模版类型
- TemplateTypes []*string `json:"TemplateTypes,omitempty" name:"TemplateTypes"`
+ // 模板类型
+ TemplateTypes []*string `json:"TemplateTypes,omitnil,omitempty" name:"TemplateTypes"`
// 版本类型
- EngineTypes []*string `json:"EngineTypes,omitempty" name:"EngineTypes"`
+ EngineTypes []*string `json:"EngineTypes,omitnil,omitempty" name:"EngineTypes"`
// 返回结果的排序字段
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序方式(asc、desc)
- OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
+ OrderDirection *string `json:"OrderDirection,omitnil,omitempty" name:"OrderDirection"`
}
func (r *DescribeParamTemplatesRequest) ToJsonString() string {
@@ -6126,13 +7639,13 @@ func (r *DescribeParamTemplatesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeParamTemplatesResponseParams struct {
// 参数模板数量
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 参数模板信息
- Items []*ParamTemplateListInfo `json:"Items,omitempty" name:"Items"`
+ Items []*ParamTemplateListInfo `json:"Items,omitnil,omitempty" name:"Items"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeParamTemplatesResponse struct {
@@ -6154,32 +7667,32 @@ func (r *DescribeParamTemplatesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProjectSecurityGroupsRequestParams struct {
// 项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 限制量
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 搜索关键字
- SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
+ SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}
type DescribeProjectSecurityGroupsRequest struct {
*tchttp.BaseRequest
// 项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 限制量
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 搜索关键字
- SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
+ SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}
func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string {
@@ -6207,13 +7720,13 @@ func (r *DescribeProjectSecurityGroupsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProjectSecurityGroupsResponseParams struct {
// 安全组详情
- Groups []*SecurityGroup `json:"Groups,omitempty" name:"Groups"`
+ Groups []*SecurityGroup `json:"Groups,omitnil,omitempty" name:"Groups"`
// 总数量
- Total *int64 `json:"Total,omitempty" name:"Total"`
+ Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeProjectSecurityGroupsResponse struct {
@@ -6234,53 +7747,53 @@ func (r *DescribeProjectSecurityGroupsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxiesRequestParams struct {
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 集群ID(该参数必传,例如cynosdbmysql-xxxxxx)
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryParamFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryParamFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
type DescribeProxiesRequest struct {
*tchttp.BaseRequest
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 集群ID(该参数必传,例如cynosdbmysql-xxxxxx)
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryParamFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryParamFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func (r *DescribeProxiesRequest) ToJsonString() string {
@@ -6310,18 +7823,18 @@ func (r *DescribeProxiesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxiesResponseParams struct {
// 数据库代理组数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 数据库代理组列表
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyGroupInfos []*ProxyGroupInfo `json:"ProxyGroupInfos,omitempty" name:"ProxyGroupInfos"`
+ ProxyGroupInfos []*ProxyGroupInfo `json:"ProxyGroupInfos,omitnil,omitempty" name:"ProxyGroupInfos"`
// 数据库代理节点
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyNodeInfos []*ProxyNodeInfo `json:"ProxyNodeInfos,omitempty" name:"ProxyNodeInfos"`
+ ProxyNodeInfos []*ProxyNodeInfo `json:"ProxyNodeInfos,omitnil,omitempty" name:"ProxyNodeInfos"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeProxiesResponse struct {
@@ -6343,46 +7856,46 @@ func (r *DescribeProxiesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxyNodesRequestParams struct {
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
type DescribeProxyNodesRequest struct {
*tchttp.BaseRequest
// 返回数量,默认为 20,最大值为 100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 记录偏移量,默认值为0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 排序字段,取值范围:
// CREATETIME:创建时间
// PERIODENDTIME:过期时间
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序类型,取值范围:
// ASC:升序排序
// DESC:降序排序
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
// 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
- Filters []*QueryFilter `json:"Filters,omitempty" name:"Filters"`
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func (r *DescribeProxyNodesRequest) ToJsonString() string {
@@ -6411,13 +7924,13 @@ func (r *DescribeProxyNodesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxyNodesResponseParams struct {
// 数据库代理节点总数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 数据库代理节点列表
- ProxyNodeInfos []*ProxyNodeInfo `json:"ProxyNodeInfos,omitempty" name:"ProxyNodeInfos"`
+ ProxyNodeInfos []*ProxyNodeInfo `json:"ProxyNodeInfos,omitnil,omitempty" name:"ProxyNodeInfos"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeProxyNodesResponse struct {
@@ -6438,12 +7951,15 @@ func (r *DescribeProxyNodesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxySpecsRequestParams struct {
-
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeProxySpecsRequest struct {
*tchttp.BaseRequest
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeProxySpecsRequest) ToJsonString() string {
@@ -6458,7 +7974,7 @@ func (r *DescribeProxySpecsRequest) FromJsonString(s string) error {
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
-
+ delete(f, "ClusterId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProxySpecsRequest has unknown keys!", "")
}
@@ -6468,10 +7984,10 @@ func (r *DescribeProxySpecsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeProxySpecsResponseParams struct {
// 数据库代理规格列表
- ProxySpecs []*ProxySpec `json:"ProxySpecs,omitempty" name:"ProxySpecs"`
+ ProxySpecs []*ProxySpec `json:"ProxySpecs,omitnil,omitempty" name:"ProxySpecs"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeProxySpecsResponse struct {
@@ -6493,44 +8009,50 @@ func (r *DescribeProxySpecsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcePackageDetailRequestParams struct {
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
- // 实例ID
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ // 集群ID
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 偏移量
- Offset *string `json:"Offset,omitempty" name:"Offset"`
+ Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *string `json:"Limit,omitempty" name:"Limit"`
+ Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 实例D
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
type DescribeResourcePackageDetailRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
- // 实例ID
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
+ // 集群ID
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 偏移量
- Offset *string `json:"Offset,omitempty" name:"Offset"`
+ Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *string `json:"Limit,omitempty" name:"Limit"`
+ Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 实例D
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
func (r *DescribeResourcePackageDetailRequest) ToJsonString() string {
@@ -6551,6 +8073,7 @@ func (r *DescribeResourcePackageDetailRequest) FromJsonString(s string) error {
delete(f, "EndTime")
delete(f, "Offset")
delete(f, "Limit")
+ delete(f, "InstanceIds")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeResourcePackageDetailRequest has unknown keys!", "")
}
@@ -6559,14 +8082,14 @@ func (r *DescribeResourcePackageDetailRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcePackageDetailResponseParams struct {
- // 总使用明细数
- Total *int64 `json:"Total,omitempty" name:"Total"`
+ // 资源包抵扣总数
+ Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
// 资源包明细说明
- Detail []*PackageDetail `json:"Detail,omitempty" name:"Detail"`
+ Detail []*PackageDetail `json:"Detail,omitnil,omitempty" name:"Detail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeResourcePackageDetailResponse struct {
@@ -6588,18 +8111,18 @@ func (r *DescribeResourcePackageDetailResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcePackageListRequestParams struct {
// 资源包唯一ID
- PackageId []*string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId []*string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 资源包名称
- PackageName []*string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName []*string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
// 资源包类型
// CCU-计算资源包,DISK-存储资源包
- PackageType []*string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType []*string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包使用地域
// china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion []*string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion []*string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包状态
// creating-创建中;
@@ -6608,39 +8131,39 @@ type DescribeResourcePackageListRequestParams struct {
// normal_finish-使用完;
// apply_refund-申请退费中;
// refund-已退费。
- Status []*string `json:"Status,omitempty" name:"Status"`
+ Status []*string `json:"Status,omitnil,omitempty" name:"Status"`
// 排序条件,支持排序条件:startTime-生效时间,
// expireTime-过期时间,packageUsedSpec-使用容量,packageTotalSpec-总存储量。
// 按照数组顺序排列;
- OrderBy []*string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy []*string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序方式,DESC-降序,ASC-升序
- OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
+ OrderDirection *string `json:"OrderDirection,omitnil,omitempty" name:"OrderDirection"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
type DescribeResourcePackageListRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageId []*string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId []*string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 资源包名称
- PackageName []*string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName []*string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
// 资源包类型
// CCU-计算资源包,DISK-存储资源包
- PackageType []*string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType []*string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包使用地域
// china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion []*string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion []*string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包状态
// creating-创建中;
@@ -6649,21 +8172,21 @@ type DescribeResourcePackageListRequest struct {
// normal_finish-使用完;
// apply_refund-申请退费中;
// refund-已退费。
- Status []*string `json:"Status,omitempty" name:"Status"`
+ Status []*string `json:"Status,omitnil,omitempty" name:"Status"`
// 排序条件,支持排序条件:startTime-生效时间,
// expireTime-过期时间,packageUsedSpec-使用容量,packageTotalSpec-总存储量。
// 按照数组顺序排列;
- OrderBy []*string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy []*string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 排序方式,DESC-降序,ASC-升序
- OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
+ OrderDirection *string `json:"OrderDirection,omitnil,omitempty" name:"OrderDirection"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
func (r *DescribeResourcePackageListRequest) ToJsonString() string {
@@ -6695,15 +8218,15 @@ func (r *DescribeResourcePackageListRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcePackageListResponseParams struct {
- // 总配置数
- Total *int64 `json:"Total,omitempty" name:"Total"`
+ // 资源包总数
+ Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
// 资源包明细
// 注意:此字段可能返回 null,表示取不到有效值。
- Detail []*Package `json:"Detail,omitempty" name:"Detail"`
+ Detail []*Package `json:"Detail,omitnil,omitempty" name:"Detail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeResourcePackageListResponse struct {
@@ -6725,44 +8248,44 @@ func (r *DescribeResourcePackageListResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcePackageSaleSpecRequestParams struct {
// 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 资源包使用地域
// china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包类型
// CCU-计算资源包
// DISK-存储资源包
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
type DescribeResourcePackageSaleSpecRequest struct {
*tchttp.BaseRequest
// 实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 资源包使用地域
// china-中国内地通用,overseas-港澳台及海外通用
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包类型
// CCU-计算资源包
// DISK-存储资源包
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 限制
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
func (r *DescribeResourcePackageSaleSpecRequest) ToJsonString() string {
@@ -6791,14 +8314,14 @@ func (r *DescribeResourcePackageSaleSpecRequest) FromJsonString(s string) error
// Predefined struct for user
type DescribeResourcePackageSaleSpecResponseParams struct {
// 可售卖资源包规格总数
- Total *int64 `json:"Total,omitempty" name:"Total"`
+ Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
// 资源包明细说明
// 注意:此字段可能返回 null,表示取不到有效值。
- Detail []*SalePackageSpec `json:"Detail,omitempty" name:"Detail"`
+ Detail []*SalePackageSpec `json:"Detail,omitnil,omitempty" name:"Detail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeResourcePackageSaleSpecResponse struct {
@@ -6819,21 +8342,25 @@ func (r *DescribeResourcePackageSaleSpecResponse) FromJsonString(s string) error
// Predefined struct for user
type DescribeResourcesByDealNameRequestParams struct {
- // 计费订单ID(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
- DealName *string `json:"DealName,omitempty" name:"DealName"`
+ // 计费订单ID(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)。
+ // DealName与DealNames至少应输入一项,两者都传时以DealName为准。
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
- // 计费订单ID列表,可以一次查询若干条订单ID对应资源信息(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ // 计费订单ID列表,可以一次查询若干条订单ID对应资源信息(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)。
+ // DealName与DealNames至少应输入一项,两者都传时以DealName为准。
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
}
type DescribeResourcesByDealNameRequest struct {
*tchttp.BaseRequest
- // 计费订单ID(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
- DealName *string `json:"DealName,omitempty" name:"DealName"`
+ // 计费订单ID(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)。
+ // DealName与DealNames至少应输入一项,两者都传时以DealName为准。
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
- // 计费订单ID列表,可以一次查询若干条订单ID对应资源信息(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ // 计费订单ID列表,可以一次查询若干条订单ID对应资源信息(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)。
+ // DealName与DealNames至少应输入一项,两者都传时以DealName为准。
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
}
func (r *DescribeResourcesByDealNameRequest) ToJsonString() string {
@@ -6859,10 +8386,10 @@ func (r *DescribeResourcesByDealNameRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeResourcesByDealNameResponseParams struct {
// 计费资源id信息数组
- BillingResourceInfos []*BillingResourceInfo `json:"BillingResourceInfos,omitempty" name:"BillingResourceInfos"`
+ BillingResourceInfos []*BillingResourceInfo `json:"BillingResourceInfos,omitnil,omitempty" name:"BillingResourceInfos"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeResourcesByDealNameResponse struct {
@@ -6884,14 +8411,14 @@ func (r *DescribeResourcesByDealNameResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeRollbackTimeRangeRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type DescribeRollbackTimeRangeRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *DescribeRollbackTimeRangeRequest) ToJsonString() string {
@@ -6917,17 +8444,17 @@ func (r *DescribeRollbackTimeRangeRequest) FromJsonString(s string) error {
type DescribeRollbackTimeRangeResponseParams struct {
// 有效回归时间范围开始时间点(已废弃)
// 注意:此字段可能返回 null,表示取不到有效值。
- TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"`
+ TimeRangeStart *string `json:"TimeRangeStart,omitnil,omitempty" name:"TimeRangeStart"`
// 有效回归时间范围结束时间点(已废弃)
// 注意:此字段可能返回 null,表示取不到有效值。
- TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"`
+ TimeRangeEnd *string `json:"TimeRangeEnd,omitnil,omitempty" name:"TimeRangeEnd"`
// 可回档时间范围
- RollbackTimeRanges []*RollbackTimeRange `json:"RollbackTimeRanges,omitempty" name:"RollbackTimeRanges"`
+ RollbackTimeRanges []*RollbackTimeRange `json:"RollbackTimeRanges,omitnil,omitempty" name:"RollbackTimeRanges"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeRollbackTimeRangeResponse struct {
@@ -6947,102 +8474,153 @@ func (r *DescribeRollbackTimeRangeResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type DescribeRollbackTimeValidityRequestParams struct {
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 期望回滚的时间点
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
-
- // 回滚时间点的允许误差范围
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+type DescribeServerlessInstanceSpecsRequestParams struct {
+ // 可用区
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
-type DescribeRollbackTimeValidityRequest struct {
+type DescribeServerlessInstanceSpecsRequest struct {
*tchttp.BaseRequest
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 可用区
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+}
+
+func (r *DescribeServerlessInstanceSpecsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeServerlessInstanceSpecsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Zone")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeServerlessInstanceSpecsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeServerlessInstanceSpecsResponseParams struct {
+ // Serverless实例可选规格
+ Specs []*ServerlessSpec `json:"Specs,omitnil,omitempty" name:"Specs"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeServerlessInstanceSpecsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeServerlessInstanceSpecsResponseParams `json:"Response"`
+}
+
+func (r *DescribeServerlessInstanceSpecsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeServerlessInstanceSpecsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
- // 期望回滚的时间点
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
+// Predefined struct for user
+type DescribeServerlessStrategyRequestParams struct {
+ // serverless集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+}
- // 回滚时间点的允许误差范围
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+type DescribeServerlessStrategyRequest struct {
+ *tchttp.BaseRequest
+
+ // serverless集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
-func (r *DescribeRollbackTimeValidityRequest) ToJsonString() string {
+func (r *DescribeServerlessStrategyRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeRollbackTimeValidityRequest) FromJsonString(s string) error {
+func (r *DescribeServerlessStrategyRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClusterId")
- delete(f, "ExpectTime")
- delete(f, "ExpectTimeThresh")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRollbackTimeValidityRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeServerlessStrategyRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type DescribeRollbackTimeValidityResponseParams struct {
- // 存储poolID
- PoolId *uint64 `json:"PoolId,omitempty" name:"PoolId"`
+type DescribeServerlessStrategyResponseParams struct {
+ // cpu负载为 0 时持续多久(秒)发起自动暂停
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
+
+ // cpu负载超过当前规格核数时,持续多久(秒)发起自动扩容
+ AutoScaleUpDelay *int64 `json:"AutoScaleUpDelay,omitnil,omitempty" name:"AutoScaleUpDelay"`
- // 回滚任务ID,后续按该时间点回滚时,需要传入
- QueryId *uint64 `json:"QueryId,omitempty" name:"QueryId"`
+ // cpu 负载低于低一级规格核数时,持续多久(秒)发起自动缩容
+ AutoScaleDownDelay *int64 `json:"AutoScaleDownDelay,omitnil,omitempty" name:"AutoScaleDownDelay"`
- // 时间点是否有效:pass,检测通过;fail,检测失败
- Status *string `json:"Status,omitempty" name:"Status"`
+ // 是否自动暂停,可能值:
+ // yes
+ // no
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
- // 建议时间点,在Status为fail时,该值才有效
- SuggestTime *string `json:"SuggestTime,omitempty" name:"SuggestTime"`
+ // 集群是否允许向上扩容,可选范围yesno
+ AutoScaleUp *string `json:"AutoScaleUp,omitnil,omitempty" name:"AutoScaleUp"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 集群是否允许向下缩容,可选范围yesno
+ AutoScaleDown *string `json:"AutoScaleDown,omitnil,omitempty" name:"AutoScaleDown"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
-type DescribeRollbackTimeValidityResponse struct {
+type DescribeServerlessStrategyResponse struct {
*tchttp.BaseResponse
- Response *DescribeRollbackTimeValidityResponseParams `json:"Response"`
+ Response *DescribeServerlessStrategyResponseParams `json:"Response"`
}
-func (r *DescribeRollbackTimeValidityResponse) ToJsonString() string {
+func (r *DescribeServerlessStrategyResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *DescribeRollbackTimeValidityResponse) FromJsonString(s string) error {
+func (r *DescribeServerlessStrategyResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeSupportProxyVersionRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
type DescribeSupportProxyVersionRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
func (r *DescribeSupportProxyVersionRequest) ToJsonString() string {
@@ -7069,14 +8647,17 @@ func (r *DescribeSupportProxyVersionRequest) FromJsonString(s string) error {
type DescribeSupportProxyVersionResponseParams struct {
// 支持的数据库代理版本集合
// 注意:此字段可能返回 null,表示取不到有效值。
- SupportProxyVersions []*string `json:"SupportProxyVersions,omitempty" name:"SupportProxyVersions"`
+ SupportProxyVersions []*string `json:"SupportProxyVersions,omitnil,omitempty" name:"SupportProxyVersions"`
// 当前proxy版本号
// 注意:此字段可能返回 null,表示取不到有效值。
- CurrentProxyVersion *string `json:"CurrentProxyVersion,omitempty" name:"CurrentProxyVersion"`
+ CurrentProxyVersion *string `json:"CurrentProxyVersion,omitnil,omitempty" name:"CurrentProxyVersion"`
+
+ // 代理版本详情
+ SupportProxyVersionDetail []*ProxyVersionInfo `json:"SupportProxyVersionDetail,omitnil,omitempty" name:"SupportProxyVersionDetail"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeSupportProxyVersionResponse struct {
@@ -7095,23 +8676,111 @@ func (r *DescribeSupportProxyVersionResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeTasksRequestParams struct {
+ // 任务开始时间起始值
+ StartTimeBegin *string `json:"StartTimeBegin,omitnil,omitempty" name:"StartTimeBegin"`
+
+ // 任务开始时间结束值
+ StartTimeEnd *string `json:"StartTimeEnd,omitnil,omitempty" name:"StartTimeEnd"`
+
+ // 过滤条件
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // 查询列表长度
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 查询列表偏移量
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+}
+
+type DescribeTasksRequest struct {
+ *tchttp.BaseRequest
+
+ // 任务开始时间起始值
+ StartTimeBegin *string `json:"StartTimeBegin,omitnil,omitempty" name:"StartTimeBegin"`
+
+ // 任务开始时间结束值
+ StartTimeEnd *string `json:"StartTimeEnd,omitnil,omitempty" name:"StartTimeEnd"`
+
+ // 过滤条件
+ Filters []*QueryFilter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // 查询列表长度
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 查询列表偏移量
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+}
+
+func (r *DescribeTasksRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTasksRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "StartTimeBegin")
+ delete(f, "StartTimeEnd")
+ delete(f, "Filters")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTasksRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTasksResponseParams struct {
+ // 任务列表总条数
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // 任务列表
+ TaskList []*BizTaskInfo `json:"TaskList,omitnil,omitempty" name:"TaskList"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTasksResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTasksResponseParams `json:"Response"`
+}
+
+func (r *DescribeTasksResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTasksResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeZonesRequestParams struct {
// 是否包含虚拟区
- IncludeVirtualZones *bool `json:"IncludeVirtualZones,omitempty" name:"IncludeVirtualZones"`
+ IncludeVirtualZones *bool `json:"IncludeVirtualZones,omitnil,omitempty" name:"IncludeVirtualZones"`
// 是否展示地域下所有可用区,并显示用户每个可用区权限
- ShowPermission *bool `json:"ShowPermission,omitempty" name:"ShowPermission"`
+ ShowPermission *bool `json:"ShowPermission,omitnil,omitempty" name:"ShowPermission"`
}
type DescribeZonesRequest struct {
*tchttp.BaseRequest
// 是否包含虚拟区
- IncludeVirtualZones *bool `json:"IncludeVirtualZones,omitempty" name:"IncludeVirtualZones"`
+ IncludeVirtualZones *bool `json:"IncludeVirtualZones,omitnil,omitempty" name:"IncludeVirtualZones"`
// 是否展示地域下所有可用区,并显示用户每个可用区权限
- ShowPermission *bool `json:"ShowPermission,omitempty" name:"ShowPermission"`
+ ShowPermission *bool `json:"ShowPermission,omitnil,omitempty" name:"ShowPermission"`
}
func (r *DescribeZonesRequest) ToJsonString() string {
@@ -7137,10 +8806,10 @@ func (r *DescribeZonesRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeZonesResponseParams struct {
// 地域信息
- RegionSet []*SaleRegion `json:"RegionSet,omitempty" name:"RegionSet"`
+ RegionSet []*SaleRegion `json:"RegionSet,omitnil,omitempty" name:"RegionSet"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeZonesResponse struct {
@@ -7161,27 +8830,31 @@ func (r *DescribeZonesResponse) FromJsonString(s string) error {
// Predefined struct for user
type DisassociateSecurityGroupsRequestParams struct {
- // 实例组ID数组
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ // 实例组 ID 数组,cynosdbmysql-grp-前缀开头或集群 ID。
+ // 说明:要获取集群的实例组 ID,可通过 [查询集群实例组](https://cloud.tencent.com/document/product/1003/103934) 进行。
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
- // 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ // 可用区。
+ // 说明:请正确输入集群所在的主可用区,若输入非集群所在的主可用区可能显示调用成功,但实际执行会失败。
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
type DisassociateSecurityGroupsRequest struct {
*tchttp.BaseRequest
- // 实例组ID数组
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ // 实例组 ID 数组,cynosdbmysql-grp-前缀开头或集群 ID。
+ // 说明:要获取集群的实例组 ID,可通过 [查询集群实例组](https://cloud.tencent.com/document/product/1003/103934) 进行。
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
- // 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ // 可用区。
+ // 说明:请正确输入集群所在的主可用区,若输入非集群所在的主可用区可能显示调用成功,但实际执行会失败。
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
func (r *DisassociateSecurityGroupsRequest) ToJsonString() string {
@@ -7207,8 +8880,8 @@ func (r *DisassociateSecurityGroupsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DisassociateSecurityGroupsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DisassociateSecurityGroupsResponse struct {
@@ -7230,82 +8903,102 @@ func (r *DisassociateSecurityGroupsResponse) FromJsonString(s string) error {
type ErrorLogItemExport struct {
// 时间
// 注意:此字段可能返回 null,表示取不到有效值。
- Timestamp *string `json:"Timestamp,omitempty" name:"Timestamp"`
+ Timestamp *string `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
// 日志等级,可选值note, warning,error
// 注意:此字段可能返回 null,表示取不到有效值。
- Level *string `json:"Level,omitempty" name:"Level"`
+ Level *string `json:"Level,omitnil,omitempty" name:"Level"`
// 日志内容
// 注意:此字段可能返回 null,表示取不到有效值。
- Content *string `json:"Content,omitempty" name:"Content"`
+ Content *string `json:"Content,omitnil,omitempty" name:"Content"`
+}
+
+type ExchangeInstanceInfo struct {
+ // 源实例信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SrcInstanceInfo *RollbackInstanceInfo `json:"SrcInstanceInfo,omitnil,omitempty" name:"SrcInstanceInfo"`
+
+ // 目标实例信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DstInstanceInfo *RollbackInstanceInfo `json:"DstInstanceInfo,omitnil,omitempty" name:"DstInstanceInfo"`
+}
+
+type ExchangeRoGroupInfo struct {
+ // 源RO组信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SrcRoGroupInfo *RollbackRoGroupInfo `json:"SrcRoGroupInfo,omitnil,omitempty" name:"SrcRoGroupInfo"`
+
+ // 目标RO组信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DstRoGroupInfo *RollbackRoGroupInfo `json:"DstRoGroupInfo,omitnil,omitempty" name:"DstRoGroupInfo"`
}
// Predefined struct for user
type ExportInstanceErrorLogsRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 日志最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 日志等级
- LogLevels []*string `json:"LogLevels,omitempty" name:"LogLevels"`
+ LogLevels []*string `json:"LogLevels,omitnil,omitempty" name:"LogLevels"`
// 关键字
- KeyWords []*string `json:"KeyWords,omitempty" name:"KeyWords"`
+ KeyWords []*string `json:"KeyWords,omitnil,omitempty" name:"KeyWords"`
// 文件类型,可选值:csv, original
- FileType *string `json:"FileType,omitempty" name:"FileType"`
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
// 可选值Timestamp
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// ASC或DESC
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
type ExportInstanceErrorLogsRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 日志最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 日志等级
- LogLevels []*string `json:"LogLevels,omitempty" name:"LogLevels"`
+ LogLevels []*string `json:"LogLevels,omitnil,omitempty" name:"LogLevels"`
// 关键字
- KeyWords []*string `json:"KeyWords,omitempty" name:"KeyWords"`
+ KeyWords []*string `json:"KeyWords,omitnil,omitempty" name:"KeyWords"`
// 文件类型,可选值:csv, original
- FileType *string `json:"FileType,omitempty" name:"FileType"`
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
// 可选值Timestamp
- OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// ASC或DESC
- OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
func (r *ExportInstanceErrorLogsRequest) ToJsonString() string {
@@ -7340,10 +9033,10 @@ func (r *ExportInstanceErrorLogsRequest) FromJsonString(s string) error {
type ExportInstanceErrorLogsResponseParams struct {
// 错误日志导出内容
// 注意:此字段可能返回 null,表示取不到有效值。
- ErrorLogItems []*ErrorLogItemExport `json:"ErrorLogItems,omitempty" name:"ErrorLogItems"`
+ ErrorLogItems []*ErrorLogItemExport `json:"ErrorLogItems,omitnil,omitempty" name:"ErrorLogItems"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ExportInstanceErrorLogsResponse struct {
@@ -7365,62 +9058,74 @@ func (r *ExportInstanceErrorLogsResponse) FromJsonString(s string) error {
// Predefined struct for user
type ExportInstanceSlowQueriesRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 事务开始最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 事务开始最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 用户名
- Username *string `json:"Username,omitempty" name:"Username"`
+ Username *string `json:"Username,omitnil,omitempty" name:"Username"`
// 客户端host
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 文件类型,可选值:csv, original
- FileType *string `json:"FileType,omitempty" name:"FileType"`
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
+
+ // 排序字段,可选值: QueryTime,LockTime,RowsExamined,RowsSent
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 排序类型,可选值:asc,desc
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
type ExportInstanceSlowQueriesRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 事务开始最早时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 事务开始最晚时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 限制条数
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 用户名
- Username *string `json:"Username,omitempty" name:"Username"`
+ Username *string `json:"Username,omitnil,omitempty" name:"Username"`
// 客户端host
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 文件类型,可选值:csv, original
- FileType *string `json:"FileType,omitempty" name:"FileType"`
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
+
+ // 排序字段,可选值: QueryTime,LockTime,RowsExamined,RowsSent
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 排序类型,可选值:asc,desc
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}
func (r *ExportInstanceSlowQueriesRequest) ToJsonString() string {
@@ -7444,6 +9149,8 @@ func (r *ExportInstanceSlowQueriesRequest) FromJsonString(s string) error {
delete(f, "Host")
delete(f, "Database")
delete(f, "FileType")
+ delete(f, "OrderBy")
+ delete(f, "OrderByType")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ExportInstanceSlowQueriesRequest has unknown keys!", "")
}
@@ -7453,10 +9160,10 @@ func (r *ExportInstanceSlowQueriesRequest) FromJsonString(s string) error {
// Predefined struct for user
type ExportInstanceSlowQueriesResponseParams struct {
// 慢查询导出内容
- FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
+ FileContent *string `json:"FileContent,omitnil,omitempty" name:"FileContent"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ExportInstanceSlowQueriesResponse struct {
@@ -7476,34 +9183,147 @@ func (r *ExportInstanceSlowQueriesResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type GrantAccountPrivilegesRequestParams struct {
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+type ExportResourcePackageDeductDetailsRequestParams struct {
+ // 需要导出的资源包ID
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
- // 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ // 使用资源包容量的cynos集群ID
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
- // 数据库表权限码数组
- DbTablePrivileges []*string `json:"DbTablePrivileges,omitempty" name:"DbTablePrivileges"`
+ // 排序字段,目前支持:createTime(资源包被抵扣时间),successDeductSpec(资源包抵扣量)
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 数据库表信息
- DbTables []*DbTable `json:"DbTables,omitempty" name:"DbTables"`
+ // 排序类型,支持ASC、DESC、asc、desc
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
+
+ // 开始时间
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
+
+ // 结束时间
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
+
+ // 单次最大导出数据行数,目前最大支持2000行
+ Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 偏移量页数
+ Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 导出数据格式,目前仅支持csv格式,留作扩展
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
}
-type GrantAccountPrivilegesRequest struct {
+type ExportResourcePackageDeductDetailsRequest struct {
*tchttp.BaseRequest
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 需要导出的资源包ID
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
- // 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ // 使用资源包容量的cynos集群ID
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // 排序字段,目前支持:createTime(资源包被抵扣时间),successDeductSpec(资源包抵扣量)
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 排序类型,支持ASC、DESC、asc、desc
+ OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
+
+ // 开始时间
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
+
+ // 结束时间
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
+
+ // 单次最大导出数据行数,目前最大支持2000行
+ Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // 偏移量页数
+ Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // 导出数据格式,目前仅支持csv格式,留作扩展
+ FileType *string `json:"FileType,omitnil,omitempty" name:"FileType"`
+}
+
+func (r *ExportResourcePackageDeductDetailsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ExportResourcePackageDeductDetailsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "PackageId")
+ delete(f, "ClusterIds")
+ delete(f, "OrderBy")
+ delete(f, "OrderByType")
+ delete(f, "StartTime")
+ delete(f, "EndTime")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "FileType")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ExportResourcePackageDeductDetailsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ExportResourcePackageDeductDetailsResponseParams struct {
+ // 文件详情
+ FileContent *string `json:"FileContent,omitnil,omitempty" name:"FileContent"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ExportResourcePackageDeductDetailsResponse struct {
+ *tchttp.BaseResponse
+ Response *ExportResourcePackageDeductDetailsResponseParams `json:"Response"`
+}
+
+func (r *ExportResourcePackageDeductDetailsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ExportResourcePackageDeductDetailsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type GrantAccountPrivilegesRequestParams struct {
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 账号信息
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
+
+ // 数据库表权限码数组
+ DbTablePrivileges []*string `json:"DbTablePrivileges,omitnil,omitempty" name:"DbTablePrivileges"`
+
+ // 数据库表信息
+ DbTables []*DbTable `json:"DbTables,omitnil,omitempty" name:"DbTables"`
+}
+
+type GrantAccountPrivilegesRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 账号信息
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 数据库表权限码数组
- DbTablePrivileges []*string `json:"DbTablePrivileges,omitempty" name:"DbTablePrivileges"`
+ DbTablePrivileges []*string `json:"DbTablePrivileges,omitnil,omitempty" name:"DbTablePrivileges"`
// 数据库表信息
- DbTables []*DbTable `json:"DbTables,omitempty" name:"DbTables"`
+ DbTables []*DbTable `json:"DbTables,omitnil,omitempty" name:"DbTables"`
}
func (r *GrantAccountPrivilegesRequest) ToJsonString() string {
@@ -7530,8 +9350,8 @@ func (r *GrantAccountPrivilegesRequest) FromJsonString(s string) error {
// Predefined struct for user
type GrantAccountPrivilegesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type GrantAccountPrivilegesResponse struct {
@@ -7552,77 +9372,83 @@ func (r *GrantAccountPrivilegesResponse) FromJsonString(s string) error {
type InputAccount struct {
// 账号
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 主机,默认‘%’
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
}
// Predefined struct for user
type InquirePriceCreateRequestParams struct {
// 可用区,每个地域提供最佳实践
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 购买计算节点个数
- GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"`
+ GoodsNum *int64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
- InstancePayMode *string `json:"InstancePayMode,omitempty" name:"InstancePayMode"`
+ InstancePayMode *string `json:"InstancePayMode,omitnil,omitempty" name:"InstancePayMode"`
// 存储购买类型,可选值为:PREPAID, POSTPAID
- StoragePayMode *string `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
+
+ // 实例设备类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
// CPU核数,PREPAID与POSTPAID实例类型必传
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存大小,单位G,PREPAID与POSTPAID实例类型必传
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// Ccu大小,serverless类型必传
- Ccu *float64 `json:"Ccu,omitempty" name:"Ccu"`
+ Ccu *float64 `json:"Ccu,omitnil,omitempty" name:"Ccu"`
// 存储大小,PREPAID存储类型必传
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 购买时长,PREPAID购买类型必传
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 时长单位,可选值为:m,d。PREPAID购买类型必传
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
}
type InquirePriceCreateRequest struct {
*tchttp.BaseRequest
// 可用区,每个地域提供最佳实践
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 购买计算节点个数
- GoodsNum *int64 `json:"GoodsNum,omitempty" name:"GoodsNum"`
+ GoodsNum *int64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
- InstancePayMode *string `json:"InstancePayMode,omitempty" name:"InstancePayMode"`
+ InstancePayMode *string `json:"InstancePayMode,omitnil,omitempty" name:"InstancePayMode"`
// 存储购买类型,可选值为:PREPAID, POSTPAID
- StoragePayMode *string `json:"StoragePayMode,omitempty" name:"StoragePayMode"`
+ StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
+
+ // 实例设备类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
// CPU核数,PREPAID与POSTPAID实例类型必传
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存大小,单位G,PREPAID与POSTPAID实例类型必传
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// Ccu大小,serverless类型必传
- Ccu *float64 `json:"Ccu,omitempty" name:"Ccu"`
+ Ccu *float64 `json:"Ccu,omitnil,omitempty" name:"Ccu"`
// 存储大小,PREPAID存储类型必传
- StorageLimit *int64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 购买时长,PREPAID购买类型必传
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 时长单位,可选值为:m,d。PREPAID购买类型必传
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
}
func (r *InquirePriceCreateRequest) ToJsonString() string {
@@ -7641,6 +9467,7 @@ func (r *InquirePriceCreateRequest) FromJsonString(s string) error {
delete(f, "GoodsNum")
delete(f, "InstancePayMode")
delete(f, "StoragePayMode")
+ delete(f, "DeviceType")
delete(f, "Cpu")
delete(f, "Memory")
delete(f, "Ccu")
@@ -7656,13 +9483,13 @@ func (r *InquirePriceCreateRequest) FromJsonString(s string) error {
// Predefined struct for user
type InquirePriceCreateResponseParams struct {
// 实例价格
- InstancePrice *TradePrice `json:"InstancePrice,omitempty" name:"InstancePrice"`
+ InstancePrice *TradePrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`
// 存储价格
- StoragePrice *TradePrice `json:"StoragePrice,omitempty" name:"StoragePrice"`
+ StoragePrice *TradePrice `json:"StoragePrice,omitnil,omitempty" name:"StoragePrice"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type InquirePriceCreateResponse struct {
@@ -7681,29 +9508,133 @@ func (r *InquirePriceCreateResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type InquirePriceModifyRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // CPU核数
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 内存大小
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 存储大小,存储资源变配:ClusterId,StorageLimit
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+
+ // 实例ID,计算资源变配必传: ClusterId,InstanceId,Cpu,Memory
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例设备类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
+
+ // serverless实例ccu大小
+ Ccu *float64 `json:"Ccu,omitnil,omitempty" name:"Ccu"`
+}
+
+type InquirePriceModifyRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // CPU核数
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 内存大小
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 存储大小,存储资源变配:ClusterId,StorageLimit
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+
+ // 实例ID,计算资源变配必传: ClusterId,InstanceId,Cpu,Memory
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例设备类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
+
+ // serverless实例ccu大小
+ Ccu *float64 `json:"Ccu,omitnil,omitempty" name:"Ccu"`
+}
+
+func (r *InquirePriceModifyRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquirePriceModifyRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "Cpu")
+ delete(f, "Memory")
+ delete(f, "StorageLimit")
+ delete(f, "InstanceId")
+ delete(f, "DeviceType")
+ delete(f, "Ccu")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquirePriceModifyRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquirePriceModifyResponseParams struct {
+ // 实例价格
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstancePrice *TradePrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`
+
+ // 存储价格
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ StoragePrice *TradePrice `json:"StoragePrice,omitnil,omitempty" name:"StoragePrice"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquirePriceModifyResponse struct {
+ *tchttp.BaseResponse
+ Response *InquirePriceModifyResponseParams `json:"Response"`
+}
+
+func (r *InquirePriceModifyResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquirePriceModifyResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type InquirePriceRenewRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 购买时长,与TimeUnit组合才能生效
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 购买时长单位, 与TimeSpan组合生效,可选:日:d,月:m
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
}
type InquirePriceRenewRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 购买时长,与TimeUnit组合才能生效
- TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"`
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 购买时长单位, 与TimeSpan组合生效,可选:日:d,月:m
- TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"`
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
}
func (r *InquirePriceRenewRequest) ToJsonString() string {
@@ -7730,22 +9661,22 @@ func (r *InquirePriceRenewRequest) FromJsonString(s string) error {
// Predefined struct for user
type InquirePriceRenewResponseParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// 对应的询价结果数组
- Prices []*TradePrice `json:"Prices,omitempty" name:"Prices"`
+ Prices []*TradePrice `json:"Prices,omitnil,omitempty" name:"Prices"`
// 续费计算节点的总价格
- InstanceRealTotalPrice *int64 `json:"InstanceRealTotalPrice,omitempty" name:"InstanceRealTotalPrice"`
+ InstanceRealTotalPrice *int64 `json:"InstanceRealTotalPrice,omitnil,omitempty" name:"InstanceRealTotalPrice"`
// 续费存储节点的总价格
- StorageRealTotalPrice *int64 `json:"StorageRealTotalPrice,omitempty" name:"StorageRealTotalPrice"`
+ StorageRealTotalPrice *int64 `json:"StorageRealTotalPrice,omitnil,omitempty" name:"StorageRealTotalPrice"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type InquirePriceRenewResponse struct {
@@ -7764,138 +9695,313 @@ func (r *InquirePriceRenewResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type InstanceAbility struct {
+ // 实例是否支持强制重启,可选值:yes:支持,no:不支持
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IsSupportForceRestart *string `json:"IsSupportForceRestart,omitnil,omitempty" name:"IsSupportForceRestart"`
+
+ // 不支持强制重启的原因
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NonsupportForceRestartReason *string `json:"NonsupportForceRestartReason,omitnil,omitempty" name:"NonsupportForceRestartReason"`
+}
+
+type InstanceAuditLogFilter struct {
+ // 过滤项。目前支持以下搜索条件:
+ //
+ // 包含、不包含、包含(分词维度)、不包含(分词维度): sql - SQL详情;alarmLevel - 告警等级;ruleTemplateId - 规则模板Id
+ //
+ // 等于、不等于、包含、不包含: host - 客户端地址; user - 用户名; dbName - 数据库名称;
+ //
+ // 等于、不等于: sqlType - SQL类型; errCode - 错误码; threadId - 线程ID;
+ //
+ // 范围搜索(时间类型统一为微秒): execTime - 执行时间; lockWaitTime - 执行时间; ioWaitTime - IO等待时间; trxLivingTime - 事物持续时间; cpuTime - cpu时间; checkRows - 扫描行数; affectRows - 影响行数; sentRows - 返回行数。
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // 过滤条件。支持以下条件:
+ // WINC-包含(分词维度),
+ // WEXC-不包含(分词维度),
+ // INC - 包含,
+ // EXC - 不包含,
+ // EQS - 等于,
+ // NEQ - 不等于,
+ // RA - 范围。
+ Compare *string `json:"Compare,omitnil,omitempty" name:"Compare"`
+
+ // 过滤的值。反向查询时,多个值之前是且的关系,正向查询多个值是或的关系。
+ Value []*string `json:"Value,omitnil,omitempty" name:"Value"`
+}
+
type InstanceAuditRule struct {
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 是否是规则审计。true-规则审计,false-全审计。
// 注意:此字段可能返回 null,表示取不到有效值。
- AuditRule *bool `json:"AuditRule,omitempty" name:"AuditRule"`
+ AuditRule *bool `json:"AuditRule,omitnil,omitempty" name:"AuditRule"`
// 审计规则详情。仅当AuditRule=true时有效。
// 注意:此字段可能返回 null,表示取不到有效值。
- AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitempty" name:"AuditRuleFilters"`
+ AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil,omitempty" name:"AuditRuleFilters"`
+
+ // 是否是审计策略
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldRule *bool `json:"OldRule,omitnil,omitempty" name:"OldRule"`
+
+ // 实例应用的规则模板详情
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplates []*RuleTemplateInfo `json:"RuleTemplates,omitnil,omitempty" name:"RuleTemplates"`
+}
+
+type InstanceAuditStatus struct {
+ // 实例ID。
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 审计状态。ON-表示审计已开启,OFF-表示审计关闭。
+ AuditStatus *string `json:"AuditStatus,omitnil,omitempty" name:"AuditStatus"`
+
+ // 日志保留时长。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogExpireDay *uint64 `json:"LogExpireDay,omitnil,omitempty" name:"LogExpireDay"`
+
+ // 高频存储时长。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil,omitempty" name:"HighLogExpireDay"`
+
+ // 低频存储时长。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LowLogExpireDay *uint64 `json:"LowLogExpireDay,omitnil,omitempty" name:"LowLogExpireDay"`
+
+ // 日志存储量。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BillingAmount *float64 `json:"BillingAmount,omitnil,omitempty" name:"BillingAmount"`
+
+ // 高频存储量。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HighRealStorage *float64 `json:"HighRealStorage,omitnil,omitempty" name:"HighRealStorage"`
+
+ // 低频存储量。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LowRealStorage *float64 `json:"LowRealStorage,omitnil,omitempty" name:"LowRealStorage"`
+
+ // 是否为全审计。true-表示全审计。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AuditAll *bool `json:"AuditAll,omitnil,omitempty" name:"AuditAll"`
+
+ // 审计开通时间。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CreateAt *string `json:"CreateAt,omitnil,omitempty" name:"CreateAt"`
+
+ // 实例相关信息。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceInfo *AuditInstanceInfo `json:"InstanceInfo,omitnil,omitempty" name:"InstanceInfo"`
+
+ // 总存储量。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RealStorage *float64 `json:"RealStorage,omitnil,omitempty" name:"RealStorage"`
+
+ // 实例所应用的规则模板。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
+
+ // 是否开启日志投递:ON,OFF
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Deliver *string `json:"Deliver,omitnil,omitempty" name:"Deliver"`
+
+ // 日志投递类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeliverSummary []*DeliverSummary `json:"DeliverSummary,omitnil,omitempty" name:"DeliverSummary"`
+}
+
+type InstanceCLSDeliveryInfo struct {
+ // 实例id
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例name
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // 日志主题id
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`
+
+ // 日志主题name
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
+
+ // 日志集id
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
+
+ // 日志集name
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
+
+ // 日志投递地域
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // 投递状态creating,running,offlining,offlined
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // 日志类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
}
type InstanceInitInfo struct {
// 实例cpu
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 实例内存
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 实例类型 rw/ro
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
+ InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// 实例个数,范围[1,15]
- InstanceCount *int64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
+ InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
+
+ // Serverless实例个数最小值,范围[1,15]
+ MinRoCount *int64 `json:"MinRoCount,omitnil,omitempty" name:"MinRoCount"`
+
+ // Serverless实例个数最大值,范围[1,15]
+ MaxRoCount *int64 `json:"MaxRoCount,omitnil,omitempty" name:"MaxRoCount"`
+
+ // Serverless实例最小规格
+ MinRoCpu *float64 `json:"MinRoCpu,omitnil,omitempty" name:"MinRoCpu"`
+
+ // Serverless实例最大规格
+ MaxRoCpu *float64 `json:"MaxRoCpu,omitnil,omitempty" name:"MaxRoCpu"`
+
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
}
type InstanceNetInfo struct {
// 网络类型
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceGroupType *string `json:"InstanceGroupType,omitempty" name:"InstanceGroupType"`
+ InstanceGroupType *string `json:"InstanceGroupType,omitnil,omitempty" name:"InstanceGroupType"`
// 实例组ID
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceGroupId *string `json:"InstanceGroupId,omitempty" name:"InstanceGroupId"`
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
// 私有网络ID
// 注意:此字段可能返回 null,表示取不到有效值。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 子网ID
// 注意:此字段可能返回 null,表示取不到有效值。
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 网络类型, 0-基础网络, 1-vpc网络, 2-黑石网络
// 注意:此字段可能返回 null,表示取不到有效值。
- NetType *int64 `json:"NetType,omitempty" name:"NetType"`
+ NetType *int64 `json:"NetType,omitnil,omitempty" name:"NetType"`
// 私有网络IP
// 注意:此字段可能返回 null,表示取不到有效值。
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 私有网络端口
// 注意:此字段可能返回 null,表示取不到有效值。
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 外网域名
// 注意:此字段可能返回 null,表示取不到有效值。
- WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
- // 外网Ip
+ // 外网IP
// 注意:此字段可能返回 null,表示取不到有效值。
- WanIP *string `json:"WanIP,omitempty" name:"WanIP"`
+ WanIP *string `json:"WanIP,omitnil,omitempty" name:"WanIP"`
// 外网端口
// 注意:此字段可能返回 null,表示取不到有效值。
- WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"`
+ WanPort *int64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`
// 外网开启状态
// 注意:此字段可能返回 null,表示取不到有效值。
- WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"`
+ WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
}
type InstanceParamItem struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例参数列表
- ParamsItems []*ParamItemDetail `json:"ParamsItems,omitempty" name:"ParamsItems"`
+ ParamsItems []*ParamItemDetail `json:"ParamsItems,omitnil,omitempty" name:"ParamsItems"`
}
type InstanceSpec struct {
// 实例CPU,单位:核
- Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *uint64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 实例内存,单位:GB
- Memory *uint64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 实例最大可用存储,单位:GB
- MaxStorageSize *uint64 `json:"MaxStorageSize,omitempty" name:"MaxStorageSize"`
+ MaxStorageSize *uint64 `json:"MaxStorageSize,omitnil,omitempty" name:"MaxStorageSize"`
// 实例最小可用存储,单位:GB
- MinStorageSize *uint64 `json:"MinStorageSize,omitempty" name:"MinStorageSize"`
+ MinStorageSize *uint64 `json:"MinStorageSize,omitnil,omitempty" name:"MinStorageSize"`
// 是否有库存
- HasStock *bool `json:"HasStock,omitempty" name:"HasStock"`
+ HasStock *bool `json:"HasStock,omitnil,omitempty" name:"HasStock"`
// 机器类型
- MachineType *string `json:"MachineType,omitempty" name:"MachineType"`
+ MachineType *string `json:"MachineType,omitnil,omitempty" name:"MachineType"`
// 最大IOPS
- MaxIops *int64 `json:"MaxIops,omitempty" name:"MaxIops"`
+ MaxIops *int64 `json:"MaxIops,omitnil,omitempty" name:"MaxIops"`
// 最大IO带宽
- MaxIoBandWidth *int64 `json:"MaxIoBandWidth,omitempty" name:"MaxIoBandWidth"`
+ MaxIoBandWidth *int64 `json:"MaxIoBandWidth,omitnil,omitempty" name:"MaxIoBandWidth"`
// 地域库存信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ZoneStockInfos []*ZoneStockInfo `json:"ZoneStockInfos,omitempty" name:"ZoneStockInfos"`
+ ZoneStockInfos []*ZoneStockInfo `json:"ZoneStockInfos,omitnil,omitempty" name:"ZoneStockInfos"`
// 库存数量
// 注意:此字段可能返回 null,表示取不到有效值。
- StockCount *int64 `json:"StockCount,omitempty" name:"StockCount"`
+ StockCount *int64 `json:"StockCount,omitnil,omitempty" name:"StockCount"`
}
// Predefined struct for user
type IsolateClusterRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 该参数已废用
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
+
+ // 实例退还原因类型
+ IsolateReasonTypes []*int64 `json:"IsolateReasonTypes,omitnil,omitempty" name:"IsolateReasonTypes"`
+
+ // 实例退还原因补充
+ IsolateReason *string `json:"IsolateReason,omitnil,omitempty" name:"IsolateReason"`
}
type IsolateClusterRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 该参数已废用
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
+
+ // 实例退还原因类型
+ IsolateReasonTypes []*int64 `json:"IsolateReasonTypes,omitnil,omitempty" name:"IsolateReasonTypes"`
+
+ // 实例退还原因补充
+ IsolateReason *string `json:"IsolateReason,omitnil,omitempty" name:"IsolateReason"`
}
func (r *IsolateClusterRequest) ToJsonString() string {
@@ -7912,6 +10018,8 @@ func (r *IsolateClusterRequest) FromJsonString(s string) error {
}
delete(f, "ClusterId")
delete(f, "DbType")
+ delete(f, "IsolateReasonTypes")
+ delete(f, "IsolateReason")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "IsolateClusterRequest has unknown keys!", "")
}
@@ -7920,16 +10028,16 @@ func (r *IsolateClusterRequest) FromJsonString(s string) error {
// Predefined struct for user
type IsolateClusterResponseParams struct {
- // 任务流ID
+ // 任务流ID(后付费或者serverless资源返回,如果需要同步任务状态,请使用DescribeFlow接口)
// 注意:此字段可能返回 null,表示取不到有效值。
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 退款订单号
+ // 退款订单号(预付费资源返回,如果需要同步订单状态,请使用计费产品的DescribeDealsByCond同步订单状态)
// 注意:此字段可能返回 null,表示取不到有效值。
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type IsolateClusterResponse struct {
@@ -7951,26 +10059,38 @@ func (r *IsolateClusterResponse) FromJsonString(s string) error {
// Predefined struct for user
type IsolateInstanceRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 实例ID数组
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ // 实例ID数组,例如["cynosdbbmysql-ins-asd","cynosdbmysql-ins-zxc"]
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
// 该参数已废弃
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
+
+ // 实例退还原因类型
+ IsolateReasonTypes []*int64 `json:"IsolateReasonTypes,omitnil,omitempty" name:"IsolateReasonTypes"`
+
+ // 实例退还原因补充
+ IsolateReason *string `json:"IsolateReason,omitnil,omitempty" name:"IsolateReason"`
}
type IsolateInstanceRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 实例ID数组
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ // 实例ID数组,例如["cynosdbbmysql-ins-asd","cynosdbmysql-ins-zxc"]
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
// 该参数已废弃
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
+
+ // 实例退还原因类型
+ IsolateReasonTypes []*int64 `json:"IsolateReasonTypes,omitnil,omitempty" name:"IsolateReasonTypes"`
+
+ // 实例退还原因补充
+ IsolateReason *string `json:"IsolateReason,omitnil,omitempty" name:"IsolateReason"`
}
func (r *IsolateInstanceRequest) ToJsonString() string {
@@ -7988,6 +10108,8 @@ func (r *IsolateInstanceRequest) FromJsonString(s string) error {
delete(f, "ClusterId")
delete(f, "InstanceIdList")
delete(f, "DbType")
+ delete(f, "IsolateReasonTypes")
+ delete(f, "IsolateReason")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "IsolateInstanceRequest has unknown keys!", "")
}
@@ -7997,14 +10119,14 @@ func (r *IsolateInstanceRequest) FromJsonString(s string) error {
// Predefined struct for user
type IsolateInstanceResponseParams struct {
// 任务流id
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 隔离实例的订单id(预付费实例)
// 注意:此字段可能返回 null,表示取不到有效值。
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type IsolateInstanceResponse struct {
@@ -8023,39 +10145,99 @@ func (r *IsolateInstanceResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
-type ModifiableInfo struct {
+type LogRuleTemplateInfo struct {
+ // 模板ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateId *string `json:"RuleTemplateId,omitnil,omitempty" name:"RuleTemplateId"`
+
+ // 规则模板名
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
+
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AlarmLevel *string `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 规则模板变更状态:0-未变更;1-已变更;2-已删除
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateStatus *int64 `json:"RuleTemplateStatus,omitnil,omitempty" name:"RuleTemplateStatus"`
+}
+
+type LogicBackupConfigInfo struct {
+ // 是否开启自动逻辑备份
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicBackupEnable *string `json:"LogicBackupEnable,omitnil,omitempty" name:"LogicBackupEnable"`
+
+ // 自动逻辑备份开始时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicBackupTimeBeg *uint64 `json:"LogicBackupTimeBeg,omitnil,omitempty" name:"LogicBackupTimeBeg"`
+ // 自动逻辑备份结束时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicBackupTimeEnd *uint64 `json:"LogicBackupTimeEnd,omitnil,omitempty" name:"LogicBackupTimeEnd"`
+
+ // 自动逻辑备份保留时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicReserveDuration *uint64 `json:"LogicReserveDuration,omitnil,omitempty" name:"LogicReserveDuration"`
+
+ // 是否开启跨地域逻辑备份
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicCrossRegionsEnable *string `json:"LogicCrossRegionsEnable,omitnil,omitempty" name:"LogicCrossRegionsEnable"`
+
+ // 逻辑备份所跨地域
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ LogicCrossRegions []*string `json:"LogicCrossRegions,omitnil,omitempty" name:"LogicCrossRegions"`
+}
+
+type ManualBackupData struct {
+ // 备份类型。snapshot-快照备份
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
+
+ // 备份方式。auto-自动备份,manual-手动
+ BackupMethod *string `json:"BackupMethod,omitnil,omitempty" name:"BackupMethod"`
+
+ // 备份时间
+ SnapshotTime *string `json:"SnapshotTime,omitnil,omitempty" name:"SnapshotTime"`
+
+ // 跨地域备份项详细信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CrossRegionBackupInfos []*CrossRegionBackupItem `json:"CrossRegionBackupInfos,omitnil,omitempty" name:"CrossRegionBackupInfos"`
+}
+
+type ModifiableInfo struct {
+ // 参数是否可被修改, 1:可以 0:不可以
+ IsModifiable *int64 `json:"IsModifiable,omitnil,omitempty" name:"IsModifiable"`
}
// Predefined struct for user
type ModifyAccountDescriptionRequestParams struct {
// 数据库账号名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 数据库账号描述信息
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 主机,默认为"%"
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
}
type ModifyAccountDescriptionRequest struct {
*tchttp.BaseRequest
// 数据库账号名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 数据库账号描述信息
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 主机,默认为"%"
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
}
func (r *ModifyAccountDescriptionRequest) ToJsonString() string {
@@ -8082,8 +10264,8 @@ func (r *ModifyAccountDescriptionRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountDescriptionResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAccountDescriptionResponse struct {
@@ -8105,26 +10287,26 @@ func (r *ModifyAccountDescriptionResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountHostRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 新主机
- NewHost *string `json:"NewHost,omitempty" name:"NewHost"`
+ NewHost *string `json:"NewHost,omitnil,omitempty" name:"NewHost"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
}
type ModifyAccountHostRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 新主机
- NewHost *string `json:"NewHost,omitempty" name:"NewHost"`
+ NewHost *string `json:"NewHost,omitnil,omitempty" name:"NewHost"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
}
func (r *ModifyAccountHostRequest) ToJsonString() string {
@@ -8150,8 +10332,8 @@ func (r *ModifyAccountHostRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountHostResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAccountHostResponse struct {
@@ -8173,26 +10355,26 @@ func (r *ModifyAccountHostResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountParamsRequestParams struct {
// 集群id,不超过32个字符
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 数据库表权限数组,当前仅支持参数:max_user_connections,max_user_connections不能大于10240
- AccountParams []*AccountParam `json:"AccountParams,omitempty" name:"AccountParams"`
+ AccountParams []*AccountParam `json:"AccountParams,omitnil,omitempty" name:"AccountParams"`
}
type ModifyAccountParamsRequest struct {
*tchttp.BaseRequest
// 集群id,不超过32个字符
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 数据库表权限数组,当前仅支持参数:max_user_connections,max_user_connections不能大于10240
- AccountParams []*AccountParam `json:"AccountParams,omitempty" name:"AccountParams"`
+ AccountParams []*AccountParam `json:"AccountParams,omitnil,omitempty" name:"AccountParams"`
}
func (r *ModifyAccountParamsRequest) ToJsonString() string {
@@ -8218,8 +10400,8 @@ func (r *ModifyAccountParamsRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountParamsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAccountParamsResponse struct {
@@ -8241,38 +10423,38 @@ func (r *ModifyAccountParamsResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountPrivilegesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 全局权限数组
- GlobalPrivileges []*string `json:"GlobalPrivileges,omitempty" name:"GlobalPrivileges"`
+ GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil,omitempty" name:"GlobalPrivileges"`
// 数据库权限数组
- DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitempty" name:"DatabasePrivileges"`
+ DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitnil,omitempty" name:"DatabasePrivileges"`
// 表权限数组
- TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitempty" name:"TablePrivileges"`
+ TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitnil,omitempty" name:"TablePrivileges"`
}
type ModifyAccountPrivilegesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 全局权限数组
- GlobalPrivileges []*string `json:"GlobalPrivileges,omitempty" name:"GlobalPrivileges"`
+ GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil,omitempty" name:"GlobalPrivileges"`
// 数据库权限数组
- DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitempty" name:"DatabasePrivileges"`
+ DatabasePrivileges []*DatabasePrivileges `json:"DatabasePrivileges,omitnil,omitempty" name:"DatabasePrivileges"`
// 表权限数组
- TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitempty" name:"TablePrivileges"`
+ TablePrivileges []*TablePrivileges `json:"TablePrivileges,omitnil,omitempty" name:"TablePrivileges"`
}
func (r *ModifyAccountPrivilegesRequest) ToJsonString() string {
@@ -8300,8 +10482,8 @@ func (r *ModifyAccountPrivilegesRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAccountPrivilegesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAccountPrivilegesResponse struct {
@@ -8322,33 +10504,45 @@ func (r *ModifyAccountPrivilegesResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAuditRuleTemplatesRequestParams struct {
- // 审计规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 审计规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
// 修改后的审计规则。
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
- // 修改后的规则模版名称。
- RuleTemplateName *string `json:"RuleTemplateName,omitempty" name:"RuleTemplateName"`
+ // 修改后的规则模板名称。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
- // 修改后的规则模版描述。
- Description *string `json:"Description,omitempty" name:"Description"`
+ // 修改后的规则模板描述。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
+
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
+
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
type ModifyAuditRuleTemplatesRequest struct {
*tchttp.BaseRequest
- // 审计规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 审计规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
// 修改后的审计规则。
- RuleFilters []*RuleFilters `json:"RuleFilters,omitempty" name:"RuleFilters"`
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
+
+ // 修改后的规则模板名称。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
+
+ // 修改后的规则模板描述。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
- // 修改后的规则模版名称。
- RuleTemplateName *string `json:"RuleTemplateName,omitempty" name:"RuleTemplateName"`
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
- // 修改后的规则模版描述。
- Description *string `json:"Description,omitempty" name:"Description"`
+ // 告警策略。0-不告警,1-告警。
+ AlarmPolicy *uint64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
}
func (r *ModifyAuditRuleTemplatesRequest) ToJsonString() string {
@@ -8367,6 +10561,8 @@ func (r *ModifyAuditRuleTemplatesRequest) FromJsonString(s string) error {
delete(f, "RuleFilters")
delete(f, "RuleTemplateName")
delete(f, "Description")
+ delete(f, "AlarmLevel")
+ delete(f, "AlarmPolicy")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAuditRuleTemplatesRequest has unknown keys!", "")
}
@@ -8375,8 +10571,8 @@ func (r *ModifyAuditRuleTemplatesRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAuditRuleTemplatesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAuditRuleTemplatesResponse struct {
@@ -8398,44 +10594,44 @@ func (r *ModifyAuditRuleTemplatesResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAuditServiceRequestParams struct {
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志保留时长。
- LogExpireDay *uint64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"`
+ LogExpireDay *uint64 `json:"LogExpireDay,omitnil,omitempty" name:"LogExpireDay"`
// 高频日志保留时长。
- HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitempty" name:"HighLogExpireDay"`
+ HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil,omitempty" name:"HighLogExpireDay"`
// 修改实例审计规则为全审计。
- AuditAll *bool `json:"AuditAll,omitempty" name:"AuditAll"`
+ AuditAll *bool `json:"AuditAll,omitnil,omitempty" name:"AuditAll"`
// 规则审计。
- AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitempty" name:"AuditRuleFilters"`
+ AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil,omitempty" name:"AuditRuleFilters"`
- // 规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
}
type ModifyAuditServiceRequest struct {
*tchttp.BaseRequest
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志保留时长。
- LogExpireDay *uint64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"`
+ LogExpireDay *uint64 `json:"LogExpireDay,omitnil,omitempty" name:"LogExpireDay"`
// 高频日志保留时长。
- HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitempty" name:"HighLogExpireDay"`
+ HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil,omitempty" name:"HighLogExpireDay"`
// 修改实例审计规则为全审计。
- AuditAll *bool `json:"AuditAll,omitempty" name:"AuditAll"`
+ AuditAll *bool `json:"AuditAll,omitnil,omitempty" name:"AuditAll"`
// 规则审计。
- AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitempty" name:"AuditRuleFilters"`
+ AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil,omitempty" name:"AuditRuleFilters"`
- // 规则模版ID。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 规则模板ID。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
}
func (r *ModifyAuditServiceRequest) ToJsonString() string {
@@ -8464,8 +10660,8 @@ func (r *ModifyAuditServiceRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyAuditServiceResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyAuditServiceResponse struct {
@@ -8487,44 +10683,56 @@ func (r *ModifyAuditServiceResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyBackupConfigRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
- ReserveDuration *uint64 `json:"ReserveDuration,omitempty" name:"ReserveDuration"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitempty" name:"BackupTimeBeg"`
+ BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitnil,omitempty" name:"BackupTimeBeg"`
// 表示全备结束时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitempty" name:"BackupTimeEnd"`
+ BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitnil,omitempty" name:"BackupTimeEnd"`
+
+ // 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
+ ReserveDuration *uint64 `json:"ReserveDuration,omitnil,omitempty" name:"ReserveDuration"`
// 该参数目前不支持修改,无需填写。备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
- BackupFreq []*string `json:"BackupFreq,omitempty" name:"BackupFreq"`
+ BackupFreq []*string `json:"BackupFreq,omitnil,omitempty" name:"BackupFreq"`
// 该参数目前不支持修改,无需填写。备份方式,logic-逻辑备份,snapshot-快照备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
+
+ // 逻辑备份配置
+ LogicBackupConfig *LogicBackupConfigInfo `json:"LogicBackupConfig,omitnil,omitempty" name:"LogicBackupConfig"`
+
+ // 是否删除自动逻辑备份
+ DeleteAutoLogicBackup *bool `json:"DeleteAutoLogicBackup,omitnil,omitempty" name:"DeleteAutoLogicBackup"`
}
type ModifyBackupConfigRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
- ReserveDuration *uint64 `json:"ReserveDuration,omitempty" name:"ReserveDuration"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 表示全备开始时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitempty" name:"BackupTimeBeg"`
+ BackupTimeBeg *uint64 `json:"BackupTimeBeg,omitnil,omitempty" name:"BackupTimeBeg"`
// 表示全备结束时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
- BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitempty" name:"BackupTimeEnd"`
+ BackupTimeEnd *uint64 `json:"BackupTimeEnd,omitnil,omitempty" name:"BackupTimeEnd"`
+
+ // 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
+ ReserveDuration *uint64 `json:"ReserveDuration,omitnil,omitempty" name:"ReserveDuration"`
// 该参数目前不支持修改,无需填写。备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
- BackupFreq []*string `json:"BackupFreq,omitempty" name:"BackupFreq"`
+ BackupFreq []*string `json:"BackupFreq,omitnil,omitempty" name:"BackupFreq"`
// 该参数目前不支持修改,无需填写。备份方式,logic-逻辑备份,snapshot-快照备份
- BackupType *string `json:"BackupType,omitempty" name:"BackupType"`
+ BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`
+
+ // 逻辑备份配置
+ LogicBackupConfig *LogicBackupConfigInfo `json:"LogicBackupConfig,omitnil,omitempty" name:"LogicBackupConfig"`
+
+ // 是否删除自动逻辑备份
+ DeleteAutoLogicBackup *bool `json:"DeleteAutoLogicBackup,omitnil,omitempty" name:"DeleteAutoLogicBackup"`
}
func (r *ModifyBackupConfigRequest) ToJsonString() string {
@@ -8540,11 +10748,13 @@ func (r *ModifyBackupConfigRequest) FromJsonString(s string) error {
return err
}
delete(f, "ClusterId")
- delete(f, "ReserveDuration")
delete(f, "BackupTimeBeg")
delete(f, "BackupTimeEnd")
+ delete(f, "ReserveDuration")
delete(f, "BackupFreq")
delete(f, "BackupType")
+ delete(f, "LogicBackupConfig")
+ delete(f, "DeleteAutoLogicBackup")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyBackupConfigRequest has unknown keys!", "")
}
@@ -8553,8 +10763,8 @@ func (r *ModifyBackupConfigRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyBackupConfigResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyBackupConfigResponse struct {
@@ -8576,26 +10786,26 @@ func (r *ModifyBackupConfigResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyBackupNameRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份文件ID
- BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"`
+ BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`
// 备注名,长度不能超过60个字符
- BackupName *string `json:"BackupName,omitempty" name:"BackupName"`
+ BackupName *string `json:"BackupName,omitnil,omitempty" name:"BackupName"`
}
type ModifyBackupNameRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 备份文件ID
- BackupId *int64 `json:"BackupId,omitempty" name:"BackupId"`
+ BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`
// 备注名,长度不能超过60个字符
- BackupName *string `json:"BackupName,omitempty" name:"BackupName"`
+ BackupName *string `json:"BackupName,omitnil,omitempty" name:"BackupName"`
}
func (r *ModifyBackupNameRequest) ToJsonString() string {
@@ -8621,8 +10831,8 @@ func (r *ModifyBackupNameRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyBackupNameResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyBackupNameResponse struct {
@@ -8641,23 +10851,84 @@ func (r *ModifyBackupNameResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type ModifyBinlogConfigRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // Binlog配置信息
+ BinlogConfig *BinlogConfigInfo `json:"BinlogConfig,omitnil,omitempty" name:"BinlogConfig"`
+}
+
+type ModifyBinlogConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // Binlog配置信息
+ BinlogConfig *BinlogConfigInfo `json:"BinlogConfig,omitnil,omitempty" name:"BinlogConfig"`
+}
+
+func (r *ModifyBinlogConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyBinlogConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "BinlogConfig")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyBinlogConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyBinlogConfigResponseParams struct {
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyBinlogConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyBinlogConfigResponseParams `json:"Response"`
+}
+
+func (r *ModifyBinlogConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyBinlogConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type ModifyBinlogSaveDaysRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Binlog保留天数
- BinlogSaveDays *int64 `json:"BinlogSaveDays,omitempty" name:"BinlogSaveDays"`
+ BinlogSaveDays *int64 `json:"BinlogSaveDays,omitnil,omitempty" name:"BinlogSaveDays"`
}
type ModifyBinlogSaveDaysRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Binlog保留天数
- BinlogSaveDays *int64 `json:"BinlogSaveDays,omitempty" name:"BinlogSaveDays"`
+ BinlogSaveDays *int64 `json:"BinlogSaveDays,omitnil,omitempty" name:"BinlogSaveDays"`
}
func (r *ModifyBinlogSaveDaysRequest) ToJsonString() string {
@@ -8682,8 +10953,8 @@ func (r *ModifyBinlogSaveDaysRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyBinlogSaveDaysResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyBinlogSaveDaysResponse struct {
@@ -8705,38 +10976,38 @@ func (r *ModifyBinlogSaveDaysResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterDatabaseRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
// 新授权用户主机权限
- NewUserHostPrivileges []*UserHostPrivilege `json:"NewUserHostPrivileges,omitempty" name:"NewUserHostPrivileges"`
+ NewUserHostPrivileges []*UserHostPrivilege `json:"NewUserHostPrivileges,omitnil,omitempty" name:"NewUserHostPrivileges"`
// 备注
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 历史授权用户主机权限
- OldUserHostPrivileges []*UserHostPrivilege `json:"OldUserHostPrivileges,omitempty" name:"OldUserHostPrivileges"`
+ OldUserHostPrivileges []*UserHostPrivilege `json:"OldUserHostPrivileges,omitnil,omitempty" name:"OldUserHostPrivileges"`
}
type ModifyClusterDatabaseRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- DbName *string `json:"DbName,omitempty" name:"DbName"`
+ DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"`
// 新授权用户主机权限
- NewUserHostPrivileges []*UserHostPrivilege `json:"NewUserHostPrivileges,omitempty" name:"NewUserHostPrivileges"`
+ NewUserHostPrivileges []*UserHostPrivilege `json:"NewUserHostPrivileges,omitnil,omitempty" name:"NewUserHostPrivileges"`
// 备注
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 历史授权用户主机权限
- OldUserHostPrivileges []*UserHostPrivilege `json:"OldUserHostPrivileges,omitempty" name:"OldUserHostPrivileges"`
+ OldUserHostPrivileges []*UserHostPrivilege `json:"OldUserHostPrivileges,omitnil,omitempty" name:"OldUserHostPrivileges"`
}
func (r *ModifyClusterDatabaseRequest) ToJsonString() string {
@@ -8764,8 +11035,8 @@ func (r *ModifyClusterDatabaseRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterDatabaseResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterDatabaseResponse struct {
@@ -8787,20 +11058,20 @@ func (r *ModifyClusterDatabaseResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterNameRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
}
type ModifyClusterNameRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
}
func (r *ModifyClusterNameRequest) ToJsonString() string {
@@ -8825,8 +11096,8 @@ func (r *ModifyClusterNameRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterNameResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterNameResponse struct {
@@ -8848,26 +11119,26 @@ func (r *ModifyClusterNameResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterParamRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 要修改的参数列表。每一个元素是ParamName、CurrentValue和OldValue的组合。ParamName是参数名称,CurrentValue是当前值,OldValue是之前值且不做校验
- ParamList []*ParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
// 维护期间执行-yes,立即执行-no
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
type ModifyClusterParamRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 要修改的参数列表。每一个元素是ParamName、CurrentValue和OldValue的组合。ParamName是参数名称,CurrentValue是当前值,OldValue是之前值且不做校验
- ParamList []*ParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
// 维护期间执行-yes,立即执行-no
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
func (r *ModifyClusterParamRequest) ToJsonString() string {
@@ -8894,10 +11165,10 @@ func (r *ModifyClusterParamRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterParamResponseParams struct {
// 异步请求Id,用于查询结果
- AsyncRequestId *string `json:"AsyncRequestId,omitempty" name:"AsyncRequestId"`
+ AsyncRequestId *string `json:"AsyncRequestId,omitnil,omitempty" name:"AsyncRequestId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterParamResponse struct {
@@ -8919,50 +11190,50 @@ func (r *ModifyClusterParamResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterPasswordComplexityRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 密码长度
- ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitempty" name:"ValidatePasswordLength"`
+ ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitnil,omitempty" name:"ValidatePasswordLength"`
// 大小写字符个数
- ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitempty" name:"ValidatePasswordMixedCaseCount"`
+ ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitnil,omitempty" name:"ValidatePasswordMixedCaseCount"`
// 特殊字符个数
- ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitempty" name:"ValidatePasswordSpecialCharCount"`
+ ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitnil,omitempty" name:"ValidatePasswordSpecialCharCount"`
// 数字个数
- ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitempty" name:"ValidatePasswordNumberCount"`
+ ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitnil,omitempty" name:"ValidatePasswordNumberCount"`
// 密码强度("MEDIUM", "STRONG")
- ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitempty" name:"ValidatePasswordPolicy"`
+ ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitnil,omitempty" name:"ValidatePasswordPolicy"`
// 数据字典
- ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitempty" name:"ValidatePasswordDictionary"`
+ ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitnil,omitempty" name:"ValidatePasswordDictionary"`
}
type ModifyClusterPasswordComplexityRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 密码长度
- ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitempty" name:"ValidatePasswordLength"`
+ ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitnil,omitempty" name:"ValidatePasswordLength"`
// 大小写字符个数
- ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitempty" name:"ValidatePasswordMixedCaseCount"`
+ ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitnil,omitempty" name:"ValidatePasswordMixedCaseCount"`
// 特殊字符个数
- ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitempty" name:"ValidatePasswordSpecialCharCount"`
+ ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitnil,omitempty" name:"ValidatePasswordSpecialCharCount"`
// 数字个数
- ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitempty" name:"ValidatePasswordNumberCount"`
+ ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitnil,omitempty" name:"ValidatePasswordNumberCount"`
// 密码强度("MEDIUM", "STRONG")
- ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitempty" name:"ValidatePasswordPolicy"`
+ ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitnil,omitempty" name:"ValidatePasswordPolicy"`
// 数据字典
- ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitempty" name:"ValidatePasswordDictionary"`
+ ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitnil,omitempty" name:"ValidatePasswordDictionary"`
}
func (r *ModifyClusterPasswordComplexityRequest) ToJsonString() string {
@@ -8993,10 +11264,10 @@ func (r *ModifyClusterPasswordComplexityRequest) FromJsonString(s string) error
// Predefined struct for user
type ModifyClusterPasswordComplexityResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterPasswordComplexityResponse struct {
@@ -9018,26 +11289,32 @@ func (r *ModifyClusterPasswordComplexityResponse) FromJsonString(s string) error
// Predefined struct for user
type ModifyClusterSlaveZoneRequestParams struct {
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 旧从可用区
- OldSlaveZone *string `json:"OldSlaveZone,omitempty" name:"OldSlaveZone"`
+ OldSlaveZone *string `json:"OldSlaveZone,omitnil,omitempty" name:"OldSlaveZone"`
// 新从可用区
- NewSlaveZone *string `json:"NewSlaveZone,omitempty" name:"NewSlaveZone"`
+ NewSlaveZone *string `json:"NewSlaveZone,omitnil,omitempty" name:"NewSlaveZone"`
+
+ // binlog同步方式。默认值:async。可选值:sync、semisync、async
+ BinlogSyncWay *string `json:"BinlogSyncWay,omitnil,omitempty" name:"BinlogSyncWay"`
}
type ModifyClusterSlaveZoneRequest struct {
*tchttp.BaseRequest
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 旧从可用区
- OldSlaveZone *string `json:"OldSlaveZone,omitempty" name:"OldSlaveZone"`
+ OldSlaveZone *string `json:"OldSlaveZone,omitnil,omitempty" name:"OldSlaveZone"`
// 新从可用区
- NewSlaveZone *string `json:"NewSlaveZone,omitempty" name:"NewSlaveZone"`
+ NewSlaveZone *string `json:"NewSlaveZone,omitnil,omitempty" name:"NewSlaveZone"`
+
+ // binlog同步方式。默认值:async。可选值:sync、semisync、async
+ BinlogSyncWay *string `json:"BinlogSyncWay,omitnil,omitempty" name:"BinlogSyncWay"`
}
func (r *ModifyClusterSlaveZoneRequest) ToJsonString() string {
@@ -9055,6 +11332,7 @@ func (r *ModifyClusterSlaveZoneRequest) FromJsonString(s string) error {
delete(f, "ClusterId")
delete(f, "OldSlaveZone")
delete(f, "NewSlaveZone")
+ delete(f, "BinlogSyncWay")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterSlaveZoneRequest has unknown keys!", "")
}
@@ -9064,10 +11342,10 @@ func (r *ModifyClusterSlaveZoneRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterSlaveZoneResponseParams struct {
// 异步FlowId
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterSlaveZoneResponse struct {
@@ -9089,32 +11367,32 @@ func (r *ModifyClusterSlaveZoneResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyClusterStorageRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群新存储大小(单位G)
- NewStorageLimit *int64 `json:"NewStorageLimit,omitempty" name:"NewStorageLimit"`
+ NewStorageLimit *int64 `json:"NewStorageLimit,omitnil,omitempty" name:"NewStorageLimit"`
// 集群原存储大小(单位G)
- OldStorageLimit *int64 `json:"OldStorageLimit,omitempty" name:"OldStorageLimit"`
+ OldStorageLimit *int64 `json:"OldStorageLimit,omitnil,omitempty" name:"OldStorageLimit"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
}
type ModifyClusterStorageRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群新存储大小(单位G)
- NewStorageLimit *int64 `json:"NewStorageLimit,omitempty" name:"NewStorageLimit"`
+ NewStorageLimit *int64 `json:"NewStorageLimit,omitnil,omitempty" name:"NewStorageLimit"`
// 集群原存储大小(单位G)
- OldStorageLimit *int64 `json:"OldStorageLimit,omitempty" name:"OldStorageLimit"`
+ OldStorageLimit *int64 `json:"OldStorageLimit,omitnil,omitempty" name:"OldStorageLimit"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
}
func (r *ModifyClusterStorageRequest) ToJsonString() string {
@@ -9143,18 +11421,18 @@ func (r *ModifyClusterStorageRequest) FromJsonString(s string) error {
type ModifyClusterStorageResponseParams struct {
// 冻结流水ID
// 注意:此字段可能返回 null,表示取不到有效值。
- TranId *string `json:"TranId,omitempty" name:"TranId"`
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
// 大订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"`
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
// 订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyClusterStorageResponse struct {
@@ -9175,27 +11453,27 @@ func (r *ModifyClusterStorageResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyDBInstanceSecurityGroupsRequestParams struct {
- // 实例组ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ // 网络组id(cynosdbmysql-grp-前缀开头)或集群id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
type ModifyDBInstanceSecurityGroupsRequest struct {
*tchttp.BaseRequest
- // 实例组ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ // 网络组id(cynosdbmysql-grp-前缀开头)或集群id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
func (r *ModifyDBInstanceSecurityGroupsRequest) ToJsonString() string {
@@ -9221,8 +11499,8 @@ func (r *ModifyDBInstanceSecurityGroupsRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyDBInstanceSecurityGroupsResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyDBInstanceSecurityGroupsResponse struct {
@@ -9241,23 +11519,65 @@ func (r *ModifyDBInstanceSecurityGroupsResponse) FromJsonString(s string) error
return json.Unmarshal([]byte(s), &r)
}
+type ModifyDbVersionData struct {
+ // 修改前版本
+ OldVersion *string `json:"OldVersion,omitnil,omitempty" name:"OldVersion"`
+
+ // 修改后版本
+ NewVersion *string `json:"NewVersion,omitnil,omitempty" name:"NewVersion"`
+
+ // 升级方式
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
+}
+
+type ModifyInstanceData struct {
+ // 变配后CPU
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 变配后内存
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 变配后存储上限
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+
+ // 变配前CPU
+ OldCpu *int64 `json:"OldCpu,omitnil,omitempty" name:"OldCpu"`
+
+ // 变配前内存
+ OldMemory *int64 `json:"OldMemory,omitnil,omitempty" name:"OldMemory"`
+
+ // 变配前存储上限
+ OldStorageLimit *int64 `json:"OldStorageLimit,omitnil,omitempty" name:"OldStorageLimit"`
+
+ // 变配前实例机器类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldDeviceType *string `json:"OldDeviceType,omitnil,omitempty" name:"OldDeviceType"`
+
+ // 变配后实例机器类型
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
+
+ // 升级方式。升级完成后切换或维护时间内切换
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
+}
+
// Predefined struct for user
type ModifyInstanceNameRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例名称
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
}
type ModifyInstanceNameRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例名称
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
}
func (r *ModifyInstanceNameRequest) ToJsonString() string {
@@ -9282,8 +11602,8 @@ func (r *ModifyInstanceNameRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyInstanceNameResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyInstanceNameResponse struct {
@@ -9305,38 +11625,38 @@ func (r *ModifyInstanceNameResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyInstanceParamRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
- // 集群参数列表
- ClusterParamList []*ModifyParamItem `json:"ClusterParamList,omitempty" name:"ClusterParamList"`
+ // 集群参数列表,例如 [{ "CurrentValue":"2", "ParamName":"auto_increment_increment"}]
+ ClusterParamList []*ModifyParamItem `json:"ClusterParamList,omitnil,omitempty" name:"ClusterParamList"`
- // 实例参数列表
- InstanceParamList []*ModifyParamItem `json:"InstanceParamList,omitempty" name:"InstanceParamList"`
+ // 实例参数列表,例如[{ "CurrentValue":"2", "ParamName":"innodb_stats_transient_sample_pages"}]
+ InstanceParamList []*ModifyParamItem `json:"InstanceParamList,omitnil,omitempty" name:"InstanceParamList"`
// yes:在运维时间窗内修改,no:立即执行(默认值)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
type ModifyInstanceParamRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
- // 集群参数列表
- ClusterParamList []*ModifyParamItem `json:"ClusterParamList,omitempty" name:"ClusterParamList"`
+ // 集群参数列表,例如 [{ "CurrentValue":"2", "ParamName":"auto_increment_increment"}]
+ ClusterParamList []*ModifyParamItem `json:"ClusterParamList,omitnil,omitempty" name:"ClusterParamList"`
- // 实例参数列表
- InstanceParamList []*ModifyParamItem `json:"InstanceParamList,omitempty" name:"InstanceParamList"`
+ // 实例参数列表,例如[{ "CurrentValue":"2", "ParamName":"innodb_stats_transient_sample_pages"}]
+ InstanceParamList []*ModifyParamItem `json:"InstanceParamList,omitnil,omitempty" name:"InstanceParamList"`
// yes:在运维时间窗内修改,no:立即执行(默认值)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
func (r *ModifyInstanceParamRequest) ToJsonString() string {
@@ -9365,10 +11685,10 @@ func (r *ModifyInstanceParamRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyInstanceParamResponseParams struct {
// 任务ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyInstanceParamResponse struct {
@@ -9387,35 +11707,103 @@ func (r *ModifyInstanceParamResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type ModifyInstanceUpgradeLimitDaysRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 升级限制时间
+ UpgradeLimitDays *int64 `json:"UpgradeLimitDays,omitnil,omitempty" name:"UpgradeLimitDays"`
+}
+
+type ModifyInstanceUpgradeLimitDaysRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 升级限制时间
+ UpgradeLimitDays *int64 `json:"UpgradeLimitDays,omitnil,omitempty" name:"UpgradeLimitDays"`
+}
+
+func (r *ModifyInstanceUpgradeLimitDaysRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstanceUpgradeLimitDaysRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "InstanceId")
+ delete(f, "UpgradeLimitDays")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyInstanceUpgradeLimitDaysRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyInstanceUpgradeLimitDaysResponseParams struct {
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyInstanceUpgradeLimitDaysResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyInstanceUpgradeLimitDaysResponseParams `json:"Response"`
+}
+
+func (r *ModifyInstanceUpgradeLimitDaysResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstanceUpgradeLimitDaysResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type ModifyMaintainPeriodConfigRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 维护开始时间,单位为秒,如3:00为10800
- MaintainStartTime *int64 `json:"MaintainStartTime,omitempty" name:"MaintainStartTime"`
+ MaintainStartTime *int64 `json:"MaintainStartTime,omitnil,omitempty" name:"MaintainStartTime"`
// 维护持续时间,单位为秒,如1小时为3600
- MaintainDuration *int64 `json:"MaintainDuration,omitempty" name:"MaintainDuration"`
+ MaintainDuration *int64 `json:"MaintainDuration,omitnil,omitempty" name:"MaintainDuration"`
// 每周维护日期,日期取值范围[Mon, Tue, Wed, Thu, Fri, Sat, Sun]
- MaintainWeekDays []*string `json:"MaintainWeekDays,omitempty" name:"MaintainWeekDays"`
+ MaintainWeekDays []*string `json:"MaintainWeekDays,omitnil,omitempty" name:"MaintainWeekDays"`
}
type ModifyMaintainPeriodConfigRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 维护开始时间,单位为秒,如3:00为10800
- MaintainStartTime *int64 `json:"MaintainStartTime,omitempty" name:"MaintainStartTime"`
+ MaintainStartTime *int64 `json:"MaintainStartTime,omitnil,omitempty" name:"MaintainStartTime"`
// 维护持续时间,单位为秒,如1小时为3600
- MaintainDuration *int64 `json:"MaintainDuration,omitempty" name:"MaintainDuration"`
+ MaintainDuration *int64 `json:"MaintainDuration,omitnil,omitempty" name:"MaintainDuration"`
// 每周维护日期,日期取值范围[Mon, Tue, Wed, Thu, Fri, Sat, Sun]
- MaintainWeekDays []*string `json:"MaintainWeekDays,omitempty" name:"MaintainWeekDays"`
+ MaintainWeekDays []*string `json:"MaintainWeekDays,omitnil,omitempty" name:"MaintainWeekDays"`
}
func (r *ModifyMaintainPeriodConfigRequest) ToJsonString() string {
@@ -9442,8 +11830,8 @@ func (r *ModifyMaintainPeriodConfigRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyMaintainPeriodConfigResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyMaintainPeriodConfigResponse struct {
@@ -9464,45 +11852,45 @@ func (r *ModifyMaintainPeriodConfigResponse) FromJsonString(s string) error {
type ModifyParamItem struct {
// 参数名
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 参数当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 参数旧值(只在出参时有用)
// 注意:此字段可能返回 null,表示取不到有效值。
- OldValue *string `json:"OldValue,omitempty" name:"OldValue"`
+ OldValue *string `json:"OldValue,omitnil,omitempty" name:"OldValue"`
}
// Predefined struct for user
type ModifyParamTemplateRequestParams struct {
- // 模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
- // 模版名
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+ // 模板名
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
- // 模版描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ // 模板描述
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
// 参数列表
- ParamList []*ModifyParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ModifyParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
}
type ModifyParamTemplateRequest struct {
*tchttp.BaseRequest
- // 模版ID
- TemplateId *int64 `json:"TemplateId,omitempty" name:"TemplateId"`
+ // 模板ID
+ TemplateId *int64 `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`
- // 模版名
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+ // 模板名
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
- // 模版描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ // 模板描述
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
// 参数列表
- ParamList []*ModifyParamItem `json:"ParamList,omitempty" name:"ParamList"`
+ ParamList []*ModifyParamItem `json:"ParamList,omitnil,omitempty" name:"ParamList"`
}
func (r *ModifyParamTemplateRequest) ToJsonString() string {
@@ -9529,8 +11917,8 @@ func (r *ModifyParamTemplateRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyParamTemplateResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyParamTemplateResponse struct {
@@ -9549,29 +11937,40 @@ func (r *ModifyParamTemplateResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type ModifyParamsData struct {
+ // 参数名
+ Name *string `json:"Name,omitnil,omitempty" name:"Name"`
+
+ // 修改前参数值
+ OldValue *string `json:"OldValue,omitnil,omitempty" name:"OldValue"`
+
+ // 修改后参数值
+ CurValue *string `json:"CurValue,omitnil,omitempty" name:"CurValue"`
+}
+
// Predefined struct for user
type ModifyProxyDescRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 数据库代理描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
type ModifyProxyDescRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 数据库代理描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
func (r *ModifyProxyDescRequest) ToJsonString() string {
@@ -9597,8 +11996,8 @@ func (r *ModifyProxyDescRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyProxyDescResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyProxyDescResponse struct {
@@ -9619,107 +12018,117 @@ func (r *ModifyProxyDescResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyProxyRwSplitRequestParams struct {
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 集群ID,例如cynosdbmysql-asd123
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ // 数据库代理组ID,例如cynosdbmysql-proxy-qwe123
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 一致性类型;“eventual"-最终一致性, "session"-会话一致性, "global"-全局一致性
- ConsistencyType *string `json:"ConsistencyType,omitempty" name:"ConsistencyType"`
+ ConsistencyType *string `json:"ConsistencyType,omitnil,omitempty" name:"ConsistencyType"`
- // 一致性超时时间
- ConsistencyTimeOut *string `json:"ConsistencyTimeOut,omitempty" name:"ConsistencyTimeOut"`
+ // 一致性超时时间。
+ // 取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。
+ ConsistencyTimeOut *string `json:"ConsistencyTimeOut,omitnil,omitempty" name:"ConsistencyTimeOut"`
// 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
- WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"`
+ WeightMode *string `json:"WeightMode,omitnil,omitempty" name:"WeightMode"`
- // 实例只读权重
- InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitempty" name:"InstanceWeights"`
+ // 实例只读权重。
+ // 该参数必填。
+ InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitnil,omitempty" name:"InstanceWeights"`
// 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
- FailOver *string `json:"FailOver,omitempty" name:"FailOver"`
+ FailOver *string `json:"FailOver,omitnil,omitempty" name:"FailOver"`
// 是否自动添加只读实例,取值:"yes" , "no"
- AutoAddRo *string `json:"AutoAddRo,omitempty" name:"AutoAddRo"`
+ AutoAddRo *string `json:"AutoAddRo,omitnil,omitempty" name:"AutoAddRo"`
- // 是否打开读写分离
- OpenRw *string `json:"OpenRw,omitempty" name:"OpenRw"`
+ // 是否打开读写分离。
+ // 该参数已废弃,请通过RwType设置读写属性。
+ OpenRw *string `json:"OpenRw,omitnil,omitempty" name:"OpenRw"`
// 读写类型:
// READWRITE,READONLY
- RwType *string `json:"RwType,omitempty" name:"RwType"`
+ RwType *string `json:"RwType,omitnil,omitempty" name:"RwType"`
- // 事务拆分
- TransSplit *bool `json:"TransSplit,omitempty" name:"TransSplit"`
+ // 事务拆分。
+ // 在一个事务中拆分读和写到不同的实例上去执行。
+ TransSplit *bool `json:"TransSplit,omitnil,omitempty" name:"TransSplit"`
// 连接模式:
// nearby,balance
- AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"`
+ AccessMode *string `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
// 是否打开连接池:
// yes,no
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
// 连接池类型:
// SessionConnectionPool
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
- // 连接池时间
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池时间。
+ // 可选范围:0~300(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
}
type ModifyProxyRwSplitRequest struct {
*tchttp.BaseRequest
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ // 集群ID,例如cynosdbmysql-asd123
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
- // 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ // 数据库代理组ID,例如cynosdbmysql-proxy-qwe123
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 一致性类型;“eventual"-最终一致性, "session"-会话一致性, "global"-全局一致性
- ConsistencyType *string `json:"ConsistencyType,omitempty" name:"ConsistencyType"`
+ ConsistencyType *string `json:"ConsistencyType,omitnil,omitempty" name:"ConsistencyType"`
- // 一致性超时时间
- ConsistencyTimeOut *string `json:"ConsistencyTimeOut,omitempty" name:"ConsistencyTimeOut"`
+ // 一致性超时时间。
+ // 取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。
+ ConsistencyTimeOut *string `json:"ConsistencyTimeOut,omitnil,omitempty" name:"ConsistencyTimeOut"`
// 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
- WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"`
+ WeightMode *string `json:"WeightMode,omitnil,omitempty" name:"WeightMode"`
- // 实例只读权重
- InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitempty" name:"InstanceWeights"`
+ // 实例只读权重。
+ // 该参数必填。
+ InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitnil,omitempty" name:"InstanceWeights"`
// 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
- FailOver *string `json:"FailOver,omitempty" name:"FailOver"`
+ FailOver *string `json:"FailOver,omitnil,omitempty" name:"FailOver"`
// 是否自动添加只读实例,取值:"yes" , "no"
- AutoAddRo *string `json:"AutoAddRo,omitempty" name:"AutoAddRo"`
+ AutoAddRo *string `json:"AutoAddRo,omitnil,omitempty" name:"AutoAddRo"`
- // 是否打开读写分离
- OpenRw *string `json:"OpenRw,omitempty" name:"OpenRw"`
+ // 是否打开读写分离。
+ // 该参数已废弃,请通过RwType设置读写属性。
+ OpenRw *string `json:"OpenRw,omitnil,omitempty" name:"OpenRw"`
// 读写类型:
// READWRITE,READONLY
- RwType *string `json:"RwType,omitempty" name:"RwType"`
+ RwType *string `json:"RwType,omitnil,omitempty" name:"RwType"`
- // 事务拆分
- TransSplit *bool `json:"TransSplit,omitempty" name:"TransSplit"`
+ // 事务拆分。
+ // 在一个事务中拆分读和写到不同的实例上去执行。
+ TransSplit *bool `json:"TransSplit,omitnil,omitempty" name:"TransSplit"`
// 连接模式:
// nearby,balance
- AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"`
+ AccessMode *string `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
// 是否打开连接池:
// yes,no
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
// 连接池类型:
// SessionConnectionPool
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
- // 连接池时间
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ // 连接池时间。
+ // 可选范围:0~300(秒)
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
}
func (r *ModifyProxyRwSplitRequest) ToJsonString() string {
@@ -9758,13 +12167,13 @@ func (r *ModifyProxyRwSplitRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyProxyRwSplitResponseParams struct {
// 异步FlowId
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyProxyRwSplitResponse struct {
@@ -9786,26 +12195,26 @@ func (r *ModifyProxyRwSplitResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyResourcePackageClustersRequestParams struct {
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 需要建立绑定关系的集群ID
- BindClusterIds []*string `json:"BindClusterIds,omitempty" name:"BindClusterIds"`
+ BindClusterIds []*string `json:"BindClusterIds,omitnil,omitempty" name:"BindClusterIds"`
// 需要解除绑定关系的集群ID
- UnbindClusterIds []*string `json:"UnbindClusterIds,omitempty" name:"UnbindClusterIds"`
+ UnbindClusterIds []*string `json:"UnbindClusterIds,omitnil,omitempty" name:"UnbindClusterIds"`
}
type ModifyResourcePackageClustersRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 需要建立绑定关系的集群ID
- BindClusterIds []*string `json:"BindClusterIds,omitempty" name:"BindClusterIds"`
+ BindClusterIds []*string `json:"BindClusterIds,omitnil,omitempty" name:"BindClusterIds"`
// 需要解除绑定关系的集群ID
- UnbindClusterIds []*string `json:"UnbindClusterIds,omitempty" name:"UnbindClusterIds"`
+ UnbindClusterIds []*string `json:"UnbindClusterIds,omitnil,omitempty" name:"UnbindClusterIds"`
}
func (r *ModifyResourcePackageClustersRequest) ToJsonString() string {
@@ -9831,8 +12240,8 @@ func (r *ModifyResourcePackageClustersRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyResourcePackageClustersResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyResourcePackageClustersResponse struct {
@@ -9854,20 +12263,20 @@ func (r *ModifyResourcePackageClustersResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyResourcePackageNameRequestParams struct {
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 自定义的资源包名称,最长支持120个字符
- PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName *string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
}
type ModifyResourcePackageNameRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 自定义的资源包名称,最长支持120个字符
- PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName *string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
}
func (r *ModifyResourcePackageNameRequest) ToJsonString() string {
@@ -9892,8 +12301,8 @@ func (r *ModifyResourcePackageNameRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyResourcePackageNameResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyResourcePackageNameResponse struct {
@@ -9912,49 +12321,256 @@ func (r *ModifyResourcePackageNameResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type ModifyResourcePackagesDeductionPriorityRequestParams struct {
+ // 需要修改优先级的资源包类型,CCU:计算资源包,DISK:存储资源包
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
+
+ // 修改后的抵扣优先级对于哪个cynos资源生效
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 资源包抵扣优先级
+ DeductionPriorities []*PackagePriority `json:"DeductionPriorities,omitnil,omitempty" name:"DeductionPriorities"`
+}
+
+type ModifyResourcePackagesDeductionPriorityRequest struct {
+ *tchttp.BaseRequest
+
+ // 需要修改优先级的资源包类型,CCU:计算资源包,DISK:存储资源包
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
+
+ // 修改后的抵扣优先级对于哪个cynos资源生效
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 资源包抵扣优先级
+ DeductionPriorities []*PackagePriority `json:"DeductionPriorities,omitnil,omitempty" name:"DeductionPriorities"`
+}
+
+func (r *ModifyResourcePackagesDeductionPriorityRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyResourcePackagesDeductionPriorityRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "PackageType")
+ delete(f, "ClusterId")
+ delete(f, "DeductionPriorities")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyResourcePackagesDeductionPriorityRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyResourcePackagesDeductionPriorityResponseParams struct {
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyResourcePackagesDeductionPriorityResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyResourcePackagesDeductionPriorityResponseParams `json:"Response"`
+}
+
+func (r *ModifyResourcePackagesDeductionPriorityResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyResourcePackagesDeductionPriorityResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyServerlessStrategyRequestParams struct {
+ // serverless集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 集群是否自动暂停,可选范围
+ // yes
+ // no
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
+
+ // 集群自动暂停的延迟,单位秒,可选范围[600,691200],默认600
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
+
+ // 该参数暂时无效
+ AutoScaleUpDelay *int64 `json:"AutoScaleUpDelay,omitnil,omitempty" name:"AutoScaleUpDelay"`
+
+ // 该参数暂时无效
+ AutoScaleDownDelay *int64 `json:"AutoScaleDownDelay,omitnil,omitempty" name:"AutoScaleDownDelay"`
+
+ // cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 只读实例cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinRoCpu *float64 `json:"MinRoCpu,omitnil,omitempty" name:"MinRoCpu"`
+
+ // 只读cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxRoCpu *float64 `json:"MaxRoCpu,omitnil,omitempty" name:"MaxRoCpu"`
+
+ // 只读节点最小个数
+ MinRoCount *int64 `json:"MinRoCount,omitnil,omitempty" name:"MinRoCount"`
+
+ // 只读节点最大个数
+ MaxRoCount *int64 `json:"MaxRoCount,omitnil,omitempty" name:"MaxRoCount"`
+}
+
+type ModifyServerlessStrategyRequest struct {
+ *tchttp.BaseRequest
+
+ // serverless集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 集群是否自动暂停,可选范围
+ // yes
+ // no
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
+
+ // 集群自动暂停的延迟,单位秒,可选范围[600,691200],默认600
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
+
+ // 该参数暂时无效
+ AutoScaleUpDelay *int64 `json:"AutoScaleUpDelay,omitnil,omitempty" name:"AutoScaleUpDelay"`
+
+ // 该参数暂时无效
+ AutoScaleDownDelay *int64 `json:"AutoScaleDownDelay,omitnil,omitempty" name:"AutoScaleDownDelay"`
+
+ // cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 只读实例cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinRoCpu *float64 `json:"MinRoCpu,omitnil,omitempty" name:"MinRoCpu"`
+
+ // 只读cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxRoCpu *float64 `json:"MaxRoCpu,omitnil,omitempty" name:"MaxRoCpu"`
+
+ // 只读节点最小个数
+ MinRoCount *int64 `json:"MinRoCount,omitnil,omitempty" name:"MinRoCount"`
+
+ // 只读节点最大个数
+ MaxRoCount *int64 `json:"MaxRoCount,omitnil,omitempty" name:"MaxRoCount"`
+}
+
+func (r *ModifyServerlessStrategyRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyServerlessStrategyRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "AutoPause")
+ delete(f, "AutoPauseDelay")
+ delete(f, "AutoScaleUpDelay")
+ delete(f, "AutoScaleDownDelay")
+ delete(f, "MinCpu")
+ delete(f, "MaxCpu")
+ delete(f, "MinRoCpu")
+ delete(f, "MaxRoCpu")
+ delete(f, "MinRoCount")
+ delete(f, "MaxRoCount")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyServerlessStrategyRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyServerlessStrategyResponseParams struct {
+ // 异步流程id
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyServerlessStrategyResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyServerlessStrategyResponseParams `json:"Response"`
+}
+
+func (r *ModifyServerlessStrategyResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyServerlessStrategyResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type ModifyVipVportRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ //
+ // Deprecated: InstanceGrpId is deprecated.
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
// 需要修改的目的ip
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 需要修改的目的端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 旧ip回收前的保留时间,单位小时,0表示立即回收
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
}
type ModifyVipVportRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 实例组id
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
// 需要修改的目的ip
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 需要修改的目的端口
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 数据库类型,取值范围:
// MYSQL
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 旧ip回收前的保留时间,单位小时,0表示立即回收
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
}
func (r *ModifyVipVportRequest) ToJsonString() string {
@@ -9971,6 +12587,7 @@ func (r *ModifyVipVportRequest) FromJsonString(s string) error {
}
delete(f, "ClusterId")
delete(f, "InstanceGrpId")
+ delete(f, "InstanceGroupId")
delete(f, "Vip")
delete(f, "Vport")
delete(f, "DbType")
@@ -9984,10 +12601,10 @@ func (r *ModifyVipVportRequest) FromJsonString(s string) error {
// Predefined struct for user
type ModifyVipVportResponseParams struct {
// 异步任务id
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ModifyVipVportResponse struct {
@@ -10008,108 +12625,108 @@ func (r *ModifyVipVportResponse) FromJsonString(s string) error {
type Module struct {
// 是否支持,可选值:yes,no
- IsDisable *string `json:"IsDisable,omitempty" name:"IsDisable"`
+ IsDisable *string `json:"IsDisable,omitnil,omitempty" name:"IsDisable"`
// 模块名
- ModuleName *string `json:"ModuleName,omitempty" name:"ModuleName"`
+ ModuleName *string `json:"ModuleName,omitnil,omitempty" name:"ModuleName"`
}
type NetAddr struct {
// 内网ip
// 注意:此字段可能返回 null,表示取不到有效值。
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 内网端口号
// 注意:此字段可能返回 null,表示取不到有效值。
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 外网域名
// 注意:此字段可能返回 null,表示取不到有效值。
- WanDomain *string `json:"WanDomain,omitempty" name:"WanDomain"`
+ WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
// 外网端口号
// 注意:此字段可能返回 null,表示取不到有效值。
- WanPort *int64 `json:"WanPort,omitempty" name:"WanPort"`
+ WanPort *int64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`
// 网络类型(ro-只读,rw/ha-读写)
// 注意:此字段可能返回 null,表示取不到有效值。
- NetType *string `json:"NetType,omitempty" name:"NetType"`
+ NetType *string `json:"NetType,omitnil,omitempty" name:"NetType"`
// 子网ID
// 注意:此字段可能返回 null,表示取不到有效值。
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 私有网络ID
// 注意:此字段可能返回 null,表示取不到有效值。
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 描述信息
// 注意:此字段可能返回 null,表示取不到有效值。
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 外网IP
// 注意:此字段可能返回 null,表示取不到有效值。
- WanIP *string `json:"WanIP,omitempty" name:"WanIP"`
+ WanIP *string `json:"WanIP,omitnil,omitempty" name:"WanIP"`
// 外网状态
// 注意:此字段可能返回 null,表示取不到有效值。
- WanStatus *string `json:"WanStatus,omitempty" name:"WanStatus"`
+ WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
// 实例组ID
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceGroupId *string `json:"InstanceGroupId,omitempty" name:"InstanceGroupId"`
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
}
type NewAccount struct {
- // 账户名,包含字母数字_,以字母开头,字母或数字结尾,长度1-16
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ // 账户名,包含字母数字_,以字母开头,字母或数字结尾,长度1-30
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 密码,密码长度范围为8到64个字符
- AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"`
+ AccountPassword *string `json:"AccountPassword,omitnil,omitempty" name:"AccountPassword"`
- // 主机
- Host *string `json:"Host,omitempty" name:"Host"`
+ // 主机(%或ipv4地址)
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
// 描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 用户最大连接数,不能大于10240
- MaxUserConnections *int64 `json:"MaxUserConnections,omitempty" name:"MaxUserConnections"`
+ MaxUserConnections *int64 `json:"MaxUserConnections,omitnil,omitempty" name:"MaxUserConnections"`
}
type ObjectTask struct {
// 任务自增ID
// 注意:此字段可能返回 null,表示取不到有效值。
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
// 任务类型
// 注意:此字段可能返回 null,表示取不到有效值。
- TaskType *string `json:"TaskType,omitempty" name:"TaskType"`
+ TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"`
// 任务状态
// 注意:此字段可能返回 null,表示取不到有效值。
- TaskStatus *string `json:"TaskStatus,omitempty" name:"TaskStatus"`
+ TaskStatus *string `json:"TaskStatus,omitnil,omitempty" name:"TaskStatus"`
// 任务ID(集群ID|实例组ID|实例ID)
// 注意:此字段可能返回 null,表示取不到有效值。
- ObjectId *string `json:"ObjectId,omitempty" name:"ObjectId"`
+ ObjectId *string `json:"ObjectId,omitnil,omitempty" name:"ObjectId"`
// 任务类型
// 注意:此字段可能返回 null,表示取不到有效值。
- ObjectType *string `json:"ObjectType,omitempty" name:"ObjectType"`
+ ObjectType *string `json:"ObjectType,omitnil,omitempty" name:"ObjectType"`
}
// Predefined struct for user
type OfflineClusterRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type OfflineClusterRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *OfflineClusterRequest) ToJsonString() string {
@@ -10134,10 +12751,10 @@ func (r *OfflineClusterRequest) FromJsonString(s string) error {
// Predefined struct for user
type OfflineClusterResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OfflineClusterResponse struct {
@@ -10159,20 +12776,20 @@ func (r *OfflineClusterResponse) FromJsonString(s string) error {
// Predefined struct for user
type OfflineInstanceRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID数组
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
}
type OfflineInstanceRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 实例ID数组
- InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"`
+ InstanceIdList []*string `json:"InstanceIdList,omitnil,omitempty" name:"InstanceIdList"`
}
func (r *OfflineInstanceRequest) ToJsonString() string {
@@ -10198,10 +12815,10 @@ func (r *OfflineInstanceRequest) FromJsonString(s string) error {
// Predefined struct for user
type OfflineInstanceResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OfflineInstanceResponse struct {
@@ -10223,52 +12840,58 @@ func (r *OfflineInstanceResponse) FromJsonString(s string) error {
type OldAddrInfo struct {
// IP
// 注意:此字段可能返回 null,表示取不到有效值。
- Vip *string `json:"Vip,omitempty" name:"Vip"`
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// 端口
// 注意:此字段可能返回 null,表示取不到有效值。
- Vport *int64 `json:"Vport,omitempty" name:"Vport"`
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// 期望执行回收时间
// 注意:此字段可能返回 null,表示取不到有效值。
- ReturnTime *string `json:"ReturnTime,omitempty" name:"ReturnTime"`
+ ReturnTime *string `json:"ReturnTime,omitnil,omitempty" name:"ReturnTime"`
}
// Predefined struct for user
type OpenAuditServiceRequestParams struct {
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志保留时长。
- LogExpireDay *uint64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"`
+ LogExpireDay *uint64 `json:"LogExpireDay,omitnil,omitempty" name:"LogExpireDay"`
// 高频日志保留时长。
- HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitempty" name:"HighLogExpireDay"`
+ HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil,omitempty" name:"HighLogExpireDay"`
// 审计规则。同RuleTemplateIds都不填是全审计。
- AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitempty" name:"AuditRuleFilters"`
+ AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil,omitempty" name:"AuditRuleFilters"`
+
+ // 规则模板ID。同AuditRuleFilters都不填是全审计。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
- // 规则模版ID。同AuditRuleFilters都不填是全审计。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 审计类型。true-全审计;默认false-规则审计。
+ AuditAll *bool `json:"AuditAll,omitnil,omitempty" name:"AuditAll"`
}
type OpenAuditServiceRequest struct {
*tchttp.BaseRequest
// 实例ID。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 日志保留时长。
- LogExpireDay *uint64 `json:"LogExpireDay,omitempty" name:"LogExpireDay"`
+ LogExpireDay *uint64 `json:"LogExpireDay,omitnil,omitempty" name:"LogExpireDay"`
// 高频日志保留时长。
- HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitempty" name:"HighLogExpireDay"`
+ HighLogExpireDay *uint64 `json:"HighLogExpireDay,omitnil,omitempty" name:"HighLogExpireDay"`
// 审计规则。同RuleTemplateIds都不填是全审计。
- AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitempty" name:"AuditRuleFilters"`
+ AuditRuleFilters []*AuditRuleFilters `json:"AuditRuleFilters,omitnil,omitempty" name:"AuditRuleFilters"`
- // 规则模版ID。同AuditRuleFilters都不填是全审计。
- RuleTemplateIds []*string `json:"RuleTemplateIds,omitempty" name:"RuleTemplateIds"`
+ // 规则模板ID。同AuditRuleFilters都不填是全审计。
+ RuleTemplateIds []*string `json:"RuleTemplateIds,omitnil,omitempty" name:"RuleTemplateIds"`
+
+ // 审计类型。true-全审计;默认false-规则审计。
+ AuditAll *bool `json:"AuditAll,omitnil,omitempty" name:"AuditAll"`
}
func (r *OpenAuditServiceRequest) ToJsonString() string {
@@ -10288,6 +12911,7 @@ func (r *OpenAuditServiceRequest) FromJsonString(s string) error {
delete(f, "HighLogExpireDay")
delete(f, "AuditRuleFilters")
delete(f, "RuleTemplateIds")
+ delete(f, "AuditAll")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenAuditServiceRequest has unknown keys!", "")
}
@@ -10296,8 +12920,8 @@ func (r *OpenAuditServiceRequest) FromJsonString(s string) error {
// Predefined struct for user
type OpenAuditServiceResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OpenAuditServiceResponse struct {
@@ -10319,50 +12943,50 @@ func (r *OpenAuditServiceResponse) FromJsonString(s string) error {
// Predefined struct for user
type OpenClusterPasswordComplexityRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 密码长度
- ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitempty" name:"ValidatePasswordLength"`
+ ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitnil,omitempty" name:"ValidatePasswordLength"`
// 大小写字符个数
- ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitempty" name:"ValidatePasswordMixedCaseCount"`
+ ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitnil,omitempty" name:"ValidatePasswordMixedCaseCount"`
// 特殊字符个数
- ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitempty" name:"ValidatePasswordSpecialCharCount"`
+ ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitnil,omitempty" name:"ValidatePasswordSpecialCharCount"`
// 数字个数
- ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitempty" name:"ValidatePasswordNumberCount"`
+ ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitnil,omitempty" name:"ValidatePasswordNumberCount"`
// 密码强度("MEDIUM", "STRONG")
- ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitempty" name:"ValidatePasswordPolicy"`
+ ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitnil,omitempty" name:"ValidatePasswordPolicy"`
// 数据字典
- ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitempty" name:"ValidatePasswordDictionary"`
+ ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitnil,omitempty" name:"ValidatePasswordDictionary"`
}
type OpenClusterPasswordComplexityRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 密码长度
- ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitempty" name:"ValidatePasswordLength"`
+ ValidatePasswordLength *int64 `json:"ValidatePasswordLength,omitnil,omitempty" name:"ValidatePasswordLength"`
// 大小写字符个数
- ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitempty" name:"ValidatePasswordMixedCaseCount"`
+ ValidatePasswordMixedCaseCount *int64 `json:"ValidatePasswordMixedCaseCount,omitnil,omitempty" name:"ValidatePasswordMixedCaseCount"`
// 特殊字符个数
- ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitempty" name:"ValidatePasswordSpecialCharCount"`
+ ValidatePasswordSpecialCharCount *int64 `json:"ValidatePasswordSpecialCharCount,omitnil,omitempty" name:"ValidatePasswordSpecialCharCount"`
// 数字个数
- ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitempty" name:"ValidatePasswordNumberCount"`
+ ValidatePasswordNumberCount *int64 `json:"ValidatePasswordNumberCount,omitnil,omitempty" name:"ValidatePasswordNumberCount"`
// 密码强度("MEDIUM", "STRONG")
- ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitempty" name:"ValidatePasswordPolicy"`
+ ValidatePasswordPolicy *string `json:"ValidatePasswordPolicy,omitnil,omitempty" name:"ValidatePasswordPolicy"`
// 数据字典
- ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitempty" name:"ValidatePasswordDictionary"`
+ ValidatePasswordDictionary []*string `json:"ValidatePasswordDictionary,omitnil,omitempty" name:"ValidatePasswordDictionary"`
}
func (r *OpenClusterPasswordComplexityRequest) ToJsonString() string {
@@ -10393,10 +13017,10 @@ func (r *OpenClusterPasswordComplexityRequest) FromJsonString(s string) error {
// Predefined struct for user
type OpenClusterPasswordComplexityResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OpenClusterPasswordComplexityResponse struct {
@@ -10416,46 +13040,195 @@ func (r *OpenClusterPasswordComplexityResponse) FromJsonString(s string) error {
}
// Predefined struct for user
-type OpenReadOnlyInstanceExclusiveAccessRequestParams struct {
+type OpenClusterReadOnlyInstanceGroupAccessRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 需要开通独有访问的只读实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 指定的vpc ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 指定的子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 端口
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *string `json:"Port,omitnil,omitempty" name:"Port"`
- // 安全组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ // 安全组ID
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
}
-type OpenReadOnlyInstanceExclusiveAccessRequest struct {
+type OpenClusterReadOnlyInstanceGroupAccessRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 需要开通独有访问的只读实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 指定的vpc ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 指定的子网ID
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 端口
- Port *int64 `json:"Port,omitempty" name:"Port"`
+ Port *string `json:"Port,omitnil,omitempty" name:"Port"`
- // 安全组
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
+ // 安全组ID
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+}
+
+func (r *OpenClusterReadOnlyInstanceGroupAccessRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *OpenClusterReadOnlyInstanceGroupAccessRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "Port")
+ delete(f, "SecurityGroupIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenClusterReadOnlyInstanceGroupAccessRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type OpenClusterReadOnlyInstanceGroupAccessResponseParams struct {
+ // 开启流程ID
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type OpenClusterReadOnlyInstanceGroupAccessResponse struct {
+ *tchttp.BaseResponse
+ Response *OpenClusterReadOnlyInstanceGroupAccessResponseParams `json:"Response"`
+}
+
+func (r *OpenClusterReadOnlyInstanceGroupAccessResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *OpenClusterReadOnlyInstanceGroupAccessResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type OpenClusterTransparentEncryptRequestParams struct {
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 秘钥类型(cloud,custom)
+ KeyType *string `json:"KeyType,omitnil,omitempty" name:"KeyType"`
+
+ // 秘钥Id
+ KeyId *string `json:"KeyId,omitnil,omitempty" name:"KeyId"`
+
+ // 秘钥地域
+ KeyRegion *string `json:"KeyRegion,omitnil,omitempty" name:"KeyRegion"`
+}
+
+type OpenClusterTransparentEncryptRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群id
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 秘钥类型(cloud,custom)
+ KeyType *string `json:"KeyType,omitnil,omitempty" name:"KeyType"`
+
+ // 秘钥Id
+ KeyId *string `json:"KeyId,omitnil,omitempty" name:"KeyId"`
+
+ // 秘钥地域
+ KeyRegion *string `json:"KeyRegion,omitnil,omitempty" name:"KeyRegion"`
+}
+
+func (r *OpenClusterTransparentEncryptRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *OpenClusterTransparentEncryptRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "KeyType")
+ delete(f, "KeyId")
+ delete(f, "KeyRegion")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenClusterTransparentEncryptRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type OpenClusterTransparentEncryptResponseParams struct {
+ // 异步任务id
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type OpenClusterTransparentEncryptResponse struct {
+ *tchttp.BaseResponse
+ Response *OpenClusterTransparentEncryptResponseParams `json:"Response"`
+}
+
+func (r *OpenClusterTransparentEncryptResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *OpenClusterTransparentEncryptResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type OpenReadOnlyInstanceExclusiveAccessRequestParams struct {
+ // 请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 clusterId。
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 instanceId。
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 指定的 vpc ID,请使用 [查询私有网络列表](https://cloud.tencent.com/document/api/215/15778) 获取 vpc ID。
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // 指定的子网 ID,如果设置了 vpc ID,则 SubnetId 必填,请使用 [查询子网列表](https://cloud.tencent.com/document/api/215/15784) 获取 SubnetId。
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // 用户自定义的端口。
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // 安全组 ID,请使用 [查看安全组](https://cloud.tencent.com/document/api/215/15808) 获取 SecurityGroupId。
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+}
+
+type OpenReadOnlyInstanceExclusiveAccessRequest struct {
+ *tchttp.BaseRequest
+
+ // 请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 clusterId。
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 instanceId。
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 指定的 vpc ID,请使用 [查询私有网络列表](https://cloud.tencent.com/document/api/215/15778) 获取 vpc ID。
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // 指定的子网 ID,如果设置了 vpc ID,则 SubnetId 必填,请使用 [查询子网列表](https://cloud.tencent.com/document/api/215/15784) 获取 SubnetId。
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // 用户自定义的端口。
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // 安全组 ID,请使用 [查看安全组](https://cloud.tencent.com/document/api/215/15808) 获取 SecurityGroupId。
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
}
func (r *OpenReadOnlyInstanceExclusiveAccessRequest) ToJsonString() string {
@@ -10485,10 +13258,10 @@ func (r *OpenReadOnlyInstanceExclusiveAccessRequest) FromJsonString(s string) er
// Predefined struct for user
type OpenReadOnlyInstanceExclusiveAccessResponseParams struct {
// 开通流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OpenReadOnlyInstanceExclusiveAccessResponse struct {
@@ -10510,14 +13283,28 @@ func (r *OpenReadOnlyInstanceExclusiveAccessResponse) FromJsonString(s string) e
// Predefined struct for user
type OpenWanRequestParams struct {
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ //
+ // Deprecated: InstanceGrpId is deprecated.
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
}
type OpenWanRequest struct {
*tchttp.BaseRequest
// 实例组id
- InstanceGrpId *string `json:"InstanceGrpId,omitempty" name:"InstanceGrpId"`
+ InstanceGrpId *string `json:"InstanceGrpId,omitnil,omitempty" name:"InstanceGrpId"`
+
+ // 实例ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例组id
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
}
func (r *OpenWanRequest) ToJsonString() string {
@@ -10533,6 +13320,8 @@ func (r *OpenWanRequest) FromJsonString(s string) error {
return err
}
delete(f, "InstanceGrpId")
+ delete(f, "InstanceId")
+ delete(f, "InstanceGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "OpenWanRequest has unknown keys!", "")
}
@@ -10542,10 +13331,10 @@ func (r *OpenWanRequest) FromJsonString(s string) error {
// Predefined struct for user
type OpenWanResponseParams struct {
// 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type OpenWanResponse struct {
@@ -10567,25 +13356,25 @@ func (r *OpenWanResponse) FromJsonString(s string) error {
type Package struct {
// AppID
// 注意:此字段可能返回 null,表示取不到有效值。
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 资源包唯一ID
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 资源包名称
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
+ PackageName *string `json:"PackageName,omitnil,omitempty" name:"PackageName"`
// 资源包类型
// CCU-计算资源包,DISK-存储资源包
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包使用地域
// china-中国内地通用,overseas-港澳台及海外通用
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包状态
// creating-创建中;
@@ -10595,262 +13384,307 @@ type Package struct {
// apply_refund-申请退费中;
// refund-已退费。
// 注意:此字段可能返回 null,表示取不到有效值。
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 资源包总量
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageTotalSpec *float64 `json:"PackageTotalSpec,omitempty" name:"PackageTotalSpec"`
+ PackageTotalSpec *float64 `json:"PackageTotalSpec,omitnil,omitempty" name:"PackageTotalSpec"`
// 资源包已使用量
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageUsedSpec *float64 `json:"PackageUsedSpec,omitempty" name:"PackageUsedSpec"`
+ PackageUsedSpec *float64 `json:"PackageUsedSpec,omitnil,omitempty" name:"PackageUsedSpec"`
- // 资源包已使用量
+ // 是否还有库存余量
// 注意:此字段可能返回 null,表示取不到有效值。
- HasQuota *bool `json:"HasQuota,omitempty" name:"HasQuota"`
+ HasQuota *bool `json:"HasQuota,omitnil,omitempty" name:"HasQuota"`
// 绑定实例信息
// 注意:此字段可能返回 null,表示取不到有效值。
- BindInstanceInfos []*BindInstanceInfo `json:"BindInstanceInfos,omitempty" name:"BindInstanceInfos"`
+ BindInstanceInfos []*BindInstanceInfo `json:"BindInstanceInfos,omitnil,omitempty" name:"BindInstanceInfos"`
// 生效时间:2022-07-01 00:00:00
// 注意:此字段可能返回 null,表示取不到有效值。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 失效时间:2022-08-01 00:00:00
// 注意:此字段可能返回 null,表示取不到有效值。
- ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`
+ ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
+
+ // 资源包历史绑定(已解绑)实例信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HistoryBindResourceInfos []*BindInstanceInfo `json:"HistoryBindResourceInfos,omitnil,omitempty" name:"HistoryBindResourceInfos"`
}
type PackageDetail struct {
// AppId账户ID
// 注意:此字段可能返回 null,表示取不到有效值。
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 资源包唯一ID
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 实例ID
// 注意:此字段可能返回 null,表示取不到有效值。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 成功抵扣容量
// 注意:此字段可能返回 null,表示取不到有效值。
- SuccessDeductSpec *float64 `json:"SuccessDeductSpec,omitempty" name:"SuccessDeductSpec"`
+ SuccessDeductSpec *float64 `json:"SuccessDeductSpec,omitnil,omitempty" name:"SuccessDeductSpec"`
// 截止当前,资源包已使用的容量
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageTotalUsedSpec *float64 `json:"PackageTotalUsedSpec,omitempty" name:"PackageTotalUsedSpec"`
+ PackageTotalUsedSpec *float64 `json:"PackageTotalUsedSpec,omitnil,omitempty" name:"PackageTotalUsedSpec"`
// 抵扣开始时间
// 注意:此字段可能返回 null,表示取不到有效值。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
+ StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`
// 抵扣结束时间
// 注意:此字段可能返回 null,表示取不到有效值。
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
+ EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
// 扩展信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ExtendInfo *string `json:"ExtendInfo,omitempty" name:"ExtendInfo"`
+ ExtendInfo *string `json:"ExtendInfo,omitnil,omitempty" name:"ExtendInfo"`
+}
+
+type PackagePriority struct {
+ // 需要自定义抵扣优先级的资源包
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
+
+ // 自定义的抵扣优先级
+ DeductionPriority *int64 `json:"DeductionPriority,omitnil,omitempty" name:"DeductionPriority"`
}
type ParamDetail struct {
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 参数类型:integer,enum,float,string,func
- ParamType *string `json:"ParamType,omitempty" name:"ParamType"`
+ ParamType *string `json:"ParamType,omitnil,omitempty" name:"ParamType"`
// true-支持"func",false-不支持公式
- SupportFunc *bool `json:"SupportFunc,omitempty" name:"SupportFunc"`
+ SupportFunc *bool `json:"SupportFunc,omitnil,omitempty" name:"SupportFunc"`
// 默认值
- Default *string `json:"Default,omitempty" name:"Default"`
+ Default *string `json:"Default,omitnil,omitempty" name:"Default"`
// 参数描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 参数当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 修改参数后,是否需要重启数据库以使参数生效。0-不需要重启,1-需要重启。
- NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"`
+ NeedReboot *int64 `json:"NeedReboot,omitnil,omitempty" name:"NeedReboot"`
// 参数容许的最大值
- Max *string `json:"Max,omitempty" name:"Max"`
+ Max *string `json:"Max,omitnil,omitempty" name:"Max"`
// 参数容许的最小值
- Min *string `json:"Min,omitempty" name:"Min"`
+ Min *string `json:"Min,omitnil,omitempty" name:"Min"`
// 参数的可选枚举值。如果为非枚举值,则为空
// 注意:此字段可能返回 null,表示取不到有效值。
- EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
+ EnumValue []*string `json:"EnumValue,omitnil,omitempty" name:"EnumValue"`
// 1:全局参数,0:非全局参数
- IsGlobal *int64 `json:"IsGlobal,omitempty" name:"IsGlobal"`
+ IsGlobal *int64 `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
// 匹配类型,multiVal
- MatchType *string `json:"MatchType,omitempty" name:"MatchType"`
+ MatchType *string `json:"MatchType,omitnil,omitempty" name:"MatchType"`
// 匹配目标值,当multiVal时,各个key用,分割
- MatchValue *string `json:"MatchValue,omitempty" name:"MatchValue"`
+ MatchValue *string `json:"MatchValue,omitnil,omitempty" name:"MatchValue"`
// true-为公式,false-非公式
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFunc *bool `json:"IsFunc,omitempty" name:"IsFunc"`
+ IsFunc *bool `json:"IsFunc,omitnil,omitempty" name:"IsFunc"`
// 参数设置为公式时,Func返回设置的公式内容
// 注意:此字段可能返回 null,表示取不到有效值。
- Func *string `json:"Func,omitempty" name:"Func"`
+ Func *string `json:"Func,omitnil,omitempty" name:"Func"`
// 参数是否可修改
// 注意:此字段可能返回 null,表示取不到有效值。
- ModifiableInfo *ModifiableInfo `json:"ModifiableInfo,omitempty" name:"ModifiableInfo"`
+ ModifiableInfo *ModifiableInfo `json:"ModifiableInfo,omitnil,omitempty" name:"ModifiableInfo"`
+
+ // 支持公式的参数的默认公式样式
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ FuncPattern *string `json:"FuncPattern,omitnil,omitempty" name:"FuncPattern"`
}
type ParamInfo struct {
// 当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 默认值
- Default *string `json:"Default,omitempty" name:"Default"`
+ Default *string `json:"Default,omitnil,omitempty" name:"Default"`
// 参数为enum/string/bool时,可选值列表
// 注意:此字段可能返回 null,表示取不到有效值。
- EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
+ EnumValue []*string `json:"EnumValue,omitnil,omitempty" name:"EnumValue"`
// 参数类型为float/integer时的最大值
- Max *string `json:"Max,omitempty" name:"Max"`
+ Max *string `json:"Max,omitnil,omitempty" name:"Max"`
// 参数类型为float/integer时的最小值
- Min *string `json:"Min,omitempty" name:"Min"`
+ Min *string `json:"Min,omitnil,omitempty" name:"Min"`
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 是否需要重启生效
- NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"`
+ NeedReboot *int64 `json:"NeedReboot,omitnil,omitempty" name:"NeedReboot"`
// 参数类型:integer/float/string/enum/bool
- ParamType *string `json:"ParamType,omitempty" name:"ParamType"`
+ ParamType *string `json:"ParamType,omitnil,omitempty" name:"ParamType"`
// 匹配类型,multiVal, regex在参数类型是string时使用
- MatchType *string `json:"MatchType,omitempty" name:"MatchType"`
+ MatchType *string `json:"MatchType,omitnil,omitempty" name:"MatchType"`
// 匹配目标值,当multiVal时,各个key用;分割
- MatchValue *string `json:"MatchValue,omitempty" name:"MatchValue"`
+ MatchValue *string `json:"MatchValue,omitnil,omitempty" name:"MatchValue"`
// 参数描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 是否为全局参数
// 注意:此字段可能返回 null,表示取不到有效值。
- IsGlobal *int64 `json:"IsGlobal,omitempty" name:"IsGlobal"`
+ IsGlobal *int64 `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
// 参数是否可修改
// 注意:此字段可能返回 null,表示取不到有效值。
- ModifiableInfo *ModifiableInfo `json:"ModifiableInfo,omitempty" name:"ModifiableInfo"`
+ ModifiableInfo *ModifiableInfo `json:"ModifiableInfo,omitnil,omitempty" name:"ModifiableInfo"`
// 是否为函数
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFunc *bool `json:"IsFunc,omitempty" name:"IsFunc"`
+ IsFunc *bool `json:"IsFunc,omitnil,omitempty" name:"IsFunc"`
// 函数
// 注意:此字段可能返回 null,表示取不到有效值。
- Func *string `json:"Func,omitempty" name:"Func"`
+ Func *string `json:"Func,omitnil,omitempty" name:"Func"`
+
+ // 支持公式的参数的默认公式样式
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ FuncPattern *string `json:"FuncPattern,omitnil,omitempty" name:"FuncPattern"`
}
type ParamItem struct {
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 原有值
- OldValue *string `json:"OldValue,omitempty" name:"OldValue"`
+ OldValue *string `json:"OldValue,omitnil,omitempty" name:"OldValue"`
}
type ParamItemDetail struct {
// 当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 默认值
- Default *string `json:"Default,omitempty" name:"Default"`
+ Default *string `json:"Default,omitnil,omitempty" name:"Default"`
// 参数的可选枚举值。如果为非枚举值,则为空
- EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
+ EnumValue []*string `json:"EnumValue,omitnil,omitempty" name:"EnumValue"`
// 1:全局参数,0:非全局参数
- IsGlobal *int64 `json:"IsGlobal,omitempty" name:"IsGlobal"`
+ IsGlobal *int64 `json:"IsGlobal,omitnil,omitempty" name:"IsGlobal"`
// 最大值
- Max *string `json:"Max,omitempty" name:"Max"`
+ Max *string `json:"Max,omitnil,omitempty" name:"Max"`
// 最小值
- Min *string `json:"Min,omitempty" name:"Min"`
+ Min *string `json:"Min,omitnil,omitempty" name:"Min"`
// 修改参数后,是否需要重启数据库以使参数生效。0-不需要重启,1-需要重启。
- NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"`
+ NeedReboot *int64 `json:"NeedReboot,omitnil,omitempty" name:"NeedReboot"`
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 参数类型:integer,enum,float,string,func
- ParamType *string `json:"ParamType,omitempty" name:"ParamType"`
+ ParamType *string `json:"ParamType,omitnil,omitempty" name:"ParamType"`
// 参数描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 类型是否为公式
// 注意:此字段可能返回 null,表示取不到有效值。
- IsFunc *bool `json:"IsFunc,omitempty" name:"IsFunc"`
+ IsFunc *bool `json:"IsFunc,omitnil,omitempty" name:"IsFunc"`
// 参数配置公式
// 注意:此字段可能返回 null,表示取不到有效值。
- Func *string `json:"Func,omitempty" name:"Func"`
+ Func *string `json:"Func,omitnil,omitempty" name:"Func"`
+
+ // 支持公式的参数的默认公式样式
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ FuncPattern *string `json:"FuncPattern,omitnil,omitempty" name:"FuncPattern"`
+}
+
+type ParamItemInfo struct {
+ // 参数名字
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
+
+ // 参数新值
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NewValue *string `json:"NewValue,omitnil,omitempty" name:"NewValue"`
+
+ // 参数旧值
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldValue *string `json:"OldValue,omitnil,omitempty" name:"OldValue"`
+
+ // 参数公式
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ValueFunction *string `json:"ValueFunction,omitnil,omitempty" name:"ValueFunction"`
}
type ParamTemplateListInfo struct {
// 参数模板ID
- Id *int64 `json:"Id,omitempty" name:"Id"`
+ Id *int64 `json:"Id,omitnil,omitempty" name:"Id"`
// 参数模板名称
- TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"`
+ TemplateName *string `json:"TemplateName,omitnil,omitempty" name:"TemplateName"`
// 参数模板描述
- TemplateDescription *string `json:"TemplateDescription,omitempty" name:"TemplateDescription"`
+ TemplateDescription *string `json:"TemplateDescription,omitnil,omitempty" name:"TemplateDescription"`
// 引擎版本
- EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"`
+ EngineVersion *string `json:"EngineVersion,omitnil,omitempty" name:"EngineVersion"`
// 数据库类型,可选值:NORMAL,SERVERLESS
- DbMode *string `json:"DbMode,omitempty" name:"DbMode"`
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
// 参数模板详情
// 注意:此字段可能返回 null,表示取不到有效值。
- ParamInfoSet []*TemplateParamInfo `json:"ParamInfoSet,omitempty" name:"ParamInfoSet"`
+ ParamInfoSet []*TemplateParamInfo `json:"ParamInfoSet,omitnil,omitempty" name:"ParamInfoSet"`
}
// Predefined struct for user
type PauseServerlessRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 是否强制暂停,忽略当前的用户链接 0:不强制 1:强制, 默认为1
- ForcePause *int64 `json:"ForcePause,omitempty" name:"ForcePause"`
+ ForcePause *int64 `json:"ForcePause,omitnil,omitempty" name:"ForcePause"`
}
type PauseServerlessRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 是否强制暂停,忽略当前的用户链接 0:不强制 1:强制, 默认为1
- ForcePause *int64 `json:"ForcePause,omitempty" name:"ForcePause"`
+ ForcePause *int64 `json:"ForcePause,omitnil,omitempty" name:"ForcePause"`
}
func (r *PauseServerlessRequest) ToJsonString() string {
@@ -10876,10 +13710,10 @@ func (r *PauseServerlessRequest) FromJsonString(s string) error {
// Predefined struct for user
type PauseServerlessResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type PauseServerlessResponse struct {
@@ -10900,230 +13734,243 @@ func (r *PauseServerlessResponse) FromJsonString(s string) error {
type PolicyRule struct {
// 策略,ACCEPT或者DROP
- Action *string `json:"Action,omitempty" name:"Action"`
+ Action *string `json:"Action,omitnil,omitempty" name:"Action"`
// 来源Ip或Ip段,例如192.168.0.0/16
- CidrIp *string `json:"CidrIp,omitempty" name:"CidrIp"`
+ CidrIp *string `json:"CidrIp,omitnil,omitempty" name:"CidrIp"`
// 端口
- PortRange *string `json:"PortRange,omitempty" name:"PortRange"`
+ PortRange *string `json:"PortRange,omitnil,omitempty" name:"PortRange"`
// 网络协议,支持udp、tcp等
- IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
+ IpProtocol *string `json:"IpProtocol,omitnil,omitempty" name:"IpProtocol"`
// 协议端口ID或者协议端口组ID。
- ServiceModule *string `json:"ServiceModule,omitempty" name:"ServiceModule"`
+ ServiceModule *string `json:"ServiceModule,omitnil,omitempty" name:"ServiceModule"`
// IP地址ID或者ID地址组ID。
- AddressModule *string `json:"AddressModule,omitempty" name:"AddressModule"`
+ AddressModule *string `json:"AddressModule,omitnil,omitempty" name:"AddressModule"`
// id
- Id *string `json:"Id,omitempty" name:"Id"`
+ Id *string `json:"Id,omitnil,omitempty" name:"Id"`
// 描述
- Desc *string `json:"Desc,omitempty" name:"Desc"`
+ Desc *string `json:"Desc,omitnil,omitempty" name:"Desc"`
}
type ProxyConnectionPoolInfo struct {
// 连接池保持阈值:单位(秒)
// 注意:此字段可能返回 null,表示取不到有效值。
- ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitempty" name:"ConnectionPoolTimeOut"`
+ ConnectionPoolTimeOut *int64 `json:"ConnectionPoolTimeOut,omitnil,omitempty" name:"ConnectionPoolTimeOut"`
// 是否开启了连接池
// 注意:此字段可能返回 null,表示取不到有效值。
- OpenConnectionPool *string `json:"OpenConnectionPool,omitempty" name:"OpenConnectionPool"`
+ OpenConnectionPool *string `json:"OpenConnectionPool,omitnil,omitempty" name:"OpenConnectionPool"`
- // 连接池类型:SessionConnectionPool(会话级别连接池
+ // 连接池类型:SessionConnectionPool(会话级别连接池)
// 注意:此字段可能返回 null,表示取不到有效值。
- ConnectionPoolType *string `json:"ConnectionPoolType,omitempty" name:"ConnectionPoolType"`
+ ConnectionPoolType *string `json:"ConnectionPoolType,omitnil,omitempty" name:"ConnectionPoolType"`
}
type ProxyGroup struct {
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 数据库代理组节点个数
- ProxyNodeCount *int64 `json:"ProxyNodeCount,omitempty" name:"ProxyNodeCount"`
+ ProxyNodeCount *int64 `json:"ProxyNodeCount,omitnil,omitempty" name:"ProxyNodeCount"`
// 数据库代理组状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 当前代理版本
- CurrentProxyVersion *string `json:"CurrentProxyVersion,omitempty" name:"CurrentProxyVersion"`
+ CurrentProxyVersion *string `json:"CurrentProxyVersion,omitnil,omitempty" name:"CurrentProxyVersion"`
// 集群ID
// 注意:此字段可能返回 null,表示取不到有效值。
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 用户AppId
// 注意:此字段可能返回 null,表示取不到有效值。
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 读写节点开通数据库代理
// 注意:此字段可能返回 null,表示取不到有效值。
- OpenRw *string `json:"OpenRw,omitempty" name:"OpenRw"`
+ OpenRw *string `json:"OpenRw,omitnil,omitempty" name:"OpenRw"`
}
type ProxyGroupInfo struct {
// 数据库代理组
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyGroup *ProxyGroup `json:"ProxyGroup,omitempty" name:"ProxyGroup"`
+ ProxyGroup *ProxyGroup `json:"ProxyGroup,omitnil,omitempty" name:"ProxyGroup"`
// 数据库代理组读写分离信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyGroupRwInfo *ProxyGroupRwInfo `json:"ProxyGroupRwInfo,omitempty" name:"ProxyGroupRwInfo"`
+ ProxyGroupRwInfo *ProxyGroupRwInfo `json:"ProxyGroupRwInfo,omitnil,omitempty" name:"ProxyGroupRwInfo"`
// 数据库代理节点信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ProxyNodes []*ProxyNodeInfo `json:"ProxyNodes,omitempty" name:"ProxyNodes"`
+ ProxyNodes []*ProxyNodeInfo `json:"ProxyNodes,omitnil,omitempty" name:"ProxyNodes"`
// 数据库代理连接池信息
// 注意:此字段可能返回 null,表示取不到有效值。
- ConnectionPool *ProxyConnectionPoolInfo `json:"ConnectionPool,omitempty" name:"ConnectionPool"`
+ ConnectionPool *ProxyConnectionPoolInfo `json:"ConnectionPool,omitnil,omitempty" name:"ConnectionPool"`
// 数据库代理网络信息
// 注意:此字段可能返回 null,表示取不到有效值。
- NetAddrInfos []*NetAddr `json:"NetAddrInfos,omitempty" name:"NetAddrInfos"`
+ NetAddrInfos []*NetAddr `json:"NetAddrInfos,omitnil,omitempty" name:"NetAddrInfos"`
// 数据库代理任务集
// 注意:此字段可能返回 null,表示取不到有效值。
- Tasks []*ObjectTask `json:"Tasks,omitempty" name:"Tasks"`
+ Tasks []*ObjectTask `json:"Tasks,omitnil,omitempty" name:"Tasks"`
}
type ProxyGroupRwInfo struct {
// 一致性类型 eventual-最终一致性,global-全局一致性,session-会话一致性
- ConsistencyType *string `json:"ConsistencyType,omitempty" name:"ConsistencyType"`
+ ConsistencyType *string `json:"ConsistencyType,omitnil,omitempty" name:"ConsistencyType"`
// 一致性超时时间
- ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitempty" name:"ConsistencyTimeOut"`
+ ConsistencyTimeOut *int64 `json:"ConsistencyTimeOut,omitnil,omitempty" name:"ConsistencyTimeOut"`
// 权重模式 system-系统分配,custom-自定义
- WeightMode *string `json:"WeightMode,omitempty" name:"WeightMode"`
+ WeightMode *string `json:"WeightMode,omitnil,omitempty" name:"WeightMode"`
// 是否开启故障转移
- FailOver *string `json:"FailOver,omitempty" name:"FailOver"`
+ FailOver *string `json:"FailOver,omitnil,omitempty" name:"FailOver"`
// 是否自动添加只读实例,yes-是,no-不自动添加
- AutoAddRo *string `json:"AutoAddRo,omitempty" name:"AutoAddRo"`
+ AutoAddRo *string `json:"AutoAddRo,omitnil,omitempty" name:"AutoAddRo"`
// 实例权重数组
- InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitempty" name:"InstanceWeights"`
+ InstanceWeights []*ProxyInstanceWeight `json:"InstanceWeights,omitnil,omitempty" name:"InstanceWeights"`
// 是否开通读写节点,yse-是,no-否
// 注意:此字段可能返回 null,表示取不到有效值。
- OpenRw *string `json:"OpenRw,omitempty" name:"OpenRw"`
+ OpenRw *string `json:"OpenRw,omitnil,omitempty" name:"OpenRw"`
// 读写属性,可选值:READWRITE,READONLY
- RwType *string `json:"RwType,omitempty" name:"RwType"`
+ RwType *string `json:"RwType,omitnil,omitempty" name:"RwType"`
// 事务拆分
- TransSplit *bool `json:"TransSplit,omitempty" name:"TransSplit"`
+ TransSplit *bool `json:"TransSplit,omitnil,omitempty" name:"TransSplit"`
// 连接模式,可选值:balance,nearby
- AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"`
+ AccessMode *string `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
}
type ProxyInstanceWeight struct {
// 实例Id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 实例权重
- Weight *int64 `json:"Weight,omitempty" name:"Weight"`
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type ProxyNodeInfo struct {
// 数据库代理节点ID
- ProxyNodeId *string `json:"ProxyNodeId,omitempty" name:"ProxyNodeId"`
+ ProxyNodeId *string `json:"ProxyNodeId,omitnil,omitempty" name:"ProxyNodeId"`
// 节点当前连接数, DescribeProxyNodes接口此字段值不返回
- ProxyNodeConnections *int64 `json:"ProxyNodeConnections,omitempty" name:"ProxyNodeConnections"`
+ ProxyNodeConnections *int64 `json:"ProxyNodeConnections,omitnil,omitempty" name:"ProxyNodeConnections"`
// 数据库代理节点cpu
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 数据库代理节点内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
// 数据库代理节点状态
- Status *string `json:"Status,omitempty" name:"Status"`
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 用户AppID
- AppId *int64 `json:"AppId,omitempty" name:"AppId"`
+ AppId *int64 `json:"AppId,omitnil,omitempty" name:"AppId"`
// 地域
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // 数据库代理节点名字
+ OssProxyNodeName *string `json:"OssProxyNodeName,omitnil,omitempty" name:"OssProxyNodeName"`
}
type ProxySpec struct {
// 数据库代理cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 数据库代理内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
+}
+
+type ProxyVersionInfo struct {
+ // proxy版本号
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ProxyVersion *string `json:"ProxyVersion,omitnil,omitempty" name:"ProxyVersion"`
+
+ // 版本描述:GA:稳定版 BETA:尝鲜版,DEPRECATED:过旧,
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ProxyVersionType *string `json:"ProxyVersionType,omitnil,omitempty" name:"ProxyVersionType"`
}
type ProxyZone struct {
// proxy节点可用区
- ProxyNodeZone *string `json:"ProxyNodeZone,omitempty" name:"ProxyNodeZone"`
+ ProxyNodeZone *string `json:"ProxyNodeZone,omitnil,omitempty" name:"ProxyNodeZone"`
// proxy节点数量
- ProxyNodeCount *int64 `json:"ProxyNodeCount,omitempty" name:"ProxyNodeCount"`
+ ProxyNodeCount *int64 `json:"ProxyNodeCount,omitnil,omitempty" name:"ProxyNodeCount"`
}
type QueryFilter struct {
// 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
- Names []*string `json:"Names,omitempty" name:"Names"`
+ Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
// 搜索字符串
- Values []*string `json:"Values,omitempty" name:"Values"`
+ Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
// 是否精确匹配
- ExactMatch *bool `json:"ExactMatch,omitempty" name:"ExactMatch"`
+ ExactMatch *bool `json:"ExactMatch,omitnil,omitempty" name:"ExactMatch"`
// 搜索字段
- Name *string `json:"Name,omitempty" name:"Name"`
+ Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// 操作符
- Operator *string `json:"Operator,omitempty" name:"Operator"`
+ Operator *string `json:"Operator,omitnil,omitempty" name:"Operator"`
}
type QueryParamFilter struct {
// 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
- Names []*string `json:"Names,omitempty" name:"Names"`
+ Names []*string `json:"Names,omitnil,omitempty" name:"Names"`
// 搜索字符串
- Values []*string `json:"Values,omitempty" name:"Values"`
+ Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
// 是否精确匹配
- ExactMatch *bool `json:"ExactMatch,omitempty" name:"ExactMatch"`
+ ExactMatch *bool `json:"ExactMatch,omitnil,omitempty" name:"ExactMatch"`
}
// Predefined struct for user
type RefundResourcePackageRequestParams struct {
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
}
type RefundResourcePackageRequest struct {
*tchttp.BaseRequest
// 资源包唯一ID
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
}
func (r *RefundResourcePackageRequest) ToJsonString() string {
@@ -11148,10 +13995,10 @@ func (r *RefundResourcePackageRequest) FromJsonString(s string) error {
// Predefined struct for user
type RefundResourcePackageResponseParams struct {
// 每个物品对应一个dealName,业务需要根据dealName保证发货接口幂等
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type RefundResourcePackageResponse struct {
@@ -11173,20 +14020,20 @@ func (r *RefundResourcePackageResponse) FromJsonString(s string) error {
// Predefined struct for user
type ReloadBalanceProxyNodeRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
type ReloadBalanceProxyNodeRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
func (r *ReloadBalanceProxyNodeRequest) ToJsonString() string {
@@ -11212,13 +14059,13 @@ func (r *ReloadBalanceProxyNodeRequest) FromJsonString(s string) error {
// Predefined struct for user
type ReloadBalanceProxyNodeResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ReloadBalanceProxyNodeResponse struct {
@@ -11240,20 +14087,20 @@ func (r *ReloadBalanceProxyNodeResponse) FromJsonString(s string) error {
// Predefined struct for user
type RemoveClusterSlaveZoneRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 从可用区
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
}
type RemoveClusterSlaveZoneRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 从可用区
- SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"`
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
}
func (r *RemoveClusterSlaveZoneRequest) ToJsonString() string {
@@ -11279,10 +14126,10 @@ func (r *RemoveClusterSlaveZoneRequest) FromJsonString(s string) error {
// Predefined struct for user
type RemoveClusterSlaveZoneResponseParams struct {
// 异步FlowId
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type RemoveClusterSlaveZoneResponse struct {
@@ -11301,35 +14148,130 @@ func (r *RemoveClusterSlaveZoneResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type RenewClustersRequestParams struct {
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 续费时长
+ TimeSpan *float64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
+
+ // 时间单位 y,m,d,h,i,s
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
+
+ // 交易模式 0-下单并支付 1-下单
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
+}
+
+type RenewClustersRequest struct {
+ *tchttp.BaseRequest
+
+ // 集群ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 续费时长
+ TimeSpan *float64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
+
+ // 时间单位 y,m,d,h,i,s
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
+
+ // 交易模式 0-下单并支付 1-下单
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
+}
+
+func (r *RenewClustersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RenewClustersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "TimeSpan")
+ delete(f, "TimeUnit")
+ delete(f, "DealMode")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RenewClustersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RenewClustersResponseParams struct {
+ // 预付费总订单号
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
+
+ // 退款订单号
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
+
+ // 冻结流水,一次开通一个冻结流水
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
+
+ // 每个订单号对应的发货资源id列表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
+
+ // 集群id列表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RenewClustersResponse struct {
+ *tchttp.BaseResponse
+ Response *RenewClustersResponseParams `json:"Response"`
+}
+
+func (r *RenewClustersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RenewClustersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type ResetAccountPasswordRequestParams struct {
// 数据库账号名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 数据库账号新密码
- AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"`
+ AccountPassword *string `json:"AccountPassword,omitnil,omitempty" name:"AccountPassword"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 主机,不填默认为"%"
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
}
type ResetAccountPasswordRequest struct {
*tchttp.BaseRequest
// 数据库账号名
- AccountName *string `json:"AccountName,omitempty" name:"AccountName"`
+ AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`
// 数据库账号新密码
- AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"`
+ AccountPassword *string `json:"AccountPassword,omitnil,omitempty" name:"AccountPassword"`
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 主机,不填默认为"%"
- Host *string `json:"Host,omitempty" name:"Host"`
+ Host *string `json:"Host,omitnil,omitempty" name:"Host"`
}
func (r *ResetAccountPasswordRequest) ToJsonString() string {
@@ -11356,8 +14298,8 @@ func (r *ResetAccountPasswordRequest) FromJsonString(s string) error {
// Predefined struct for user
type ResetAccountPasswordResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ResetAccountPasswordResponse struct {
@@ -11379,25 +14321,29 @@ func (r *ResetAccountPasswordResponse) FromJsonString(s string) error {
type ResourcePackage struct {
// 资源包的唯一ID
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
+ PackageId *string `json:"PackageId,omitnil,omitempty" name:"PackageId"`
// 资源包类型:CCU:计算资源包
// DISK:存储资源包
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
+
+ // 当前资源包绑定在当前实例下的抵扣优先级
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DeductionPriority *int64 `json:"DeductionPriority,omitnil,omitempty" name:"DeductionPriority"`
}
// Predefined struct for user
type RestartInstanceRequestParams struct {
// 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
type RestartInstanceRequest struct {
*tchttp.BaseRequest
// 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}
func (r *RestartInstanceRequest) ToJsonString() string {
@@ -11422,10 +14368,10 @@ func (r *RestartInstanceRequest) FromJsonString(s string) error {
// Predefined struct for user
type RestartInstanceResponseParams struct {
// 异步任务id
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type RestartInstanceResponse struct {
@@ -11447,14 +14393,14 @@ func (r *RestartInstanceResponse) FromJsonString(s string) error {
// Predefined struct for user
type ResumeServerlessRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
type ResumeServerlessRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}
func (r *ResumeServerlessRequest) ToJsonString() string {
@@ -11479,10 +14425,10 @@ func (r *ResumeServerlessRequest) FromJsonString(s string) error {
// Predefined struct for user
type ResumeServerlessResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type ResumeServerlessResponse struct {
@@ -11504,32 +14450,32 @@ func (r *ResumeServerlessResponse) FromJsonString(s string) error {
// Predefined struct for user
type RevokeAccountPrivilegesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 数据库表权限数组
- DbTablePrivileges []*string `json:"DbTablePrivileges,omitempty" name:"DbTablePrivileges"`
+ DbTablePrivileges []*string `json:"DbTablePrivileges,omitnil,omitempty" name:"DbTablePrivileges"`
// 数据库表信息
- DbTables []*DbTable `json:"DbTables,omitempty" name:"DbTables"`
+ DbTables []*DbTable `json:"DbTables,omitnil,omitempty" name:"DbTables"`
}
type RevokeAccountPrivilegesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 账号信息
- Account *InputAccount `json:"Account,omitempty" name:"Account"`
+ Account *InputAccount `json:"Account,omitnil,omitempty" name:"Account"`
// 数据库表权限数组
- DbTablePrivileges []*string `json:"DbTablePrivileges,omitempty" name:"DbTablePrivileges"`
+ DbTablePrivileges []*string `json:"DbTablePrivileges,omitnil,omitempty" name:"DbTablePrivileges"`
// 数据库表信息
- DbTables []*DbTable `json:"DbTables,omitempty" name:"DbTables"`
+ DbTables []*DbTable `json:"DbTables,omitnil,omitempty" name:"DbTables"`
}
func (r *RevokeAccountPrivilegesRequest) ToJsonString() string {
@@ -11556,8 +14502,8 @@ func (r *RevokeAccountPrivilegesRequest) FromJsonString(s string) error {
// Predefined struct for user
type RevokeAccountPrivilegesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type RevokeAccountPrivilegesResponse struct {
@@ -11579,259 +14525,714 @@ func (r *RevokeAccountPrivilegesResponse) FromJsonString(s string) error {
// Predefined struct for user
type RollBackClusterRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 回档策略 timeRollback-按时间点回档 snapRollback-按备份文件回档
- RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"`
+ RollbackStrategy *string `json:"RollbackStrategy,omitnil,omitempty" name:"RollbackStrategy"`
- // 回档ID
- RollbackId *uint64 `json:"RollbackId,omitempty" name:"RollbackId"`
+ // 备份文件ID。
+ // 回档策略为按备份文件回档时必填。
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
- // 期望回档时间
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
+ // 期望回档时间。
+ // 回档策略为timeRollback按时间点回档时必填。
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
// 期望阈值(已废弃)
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+ ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitnil,omitempty" name:"ExpectTimeThresh"`
// 回档数据库列表
- RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitempty" name:"RollbackDatabases"`
+ RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitnil,omitempty" name:"RollbackDatabases"`
// 回档数据库表列表
- RollbackTables []*RollbackTable `json:"RollbackTables,omitempty" name:"RollbackTables"`
+ RollbackTables []*RollbackTable `json:"RollbackTables,omitnil,omitempty" name:"RollbackTables"`
// 按时间点回档模式,full: 普通; db: 快速; table: 极速 (默认是普通)
- RollbackMode *string `json:"RollbackMode,omitempty" name:"RollbackMode"`
+ RollbackMode *string `json:"RollbackMode,omitnil,omitempty" name:"RollbackMode"`
}
type RollBackClusterRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 回档策略 timeRollback-按时间点回档 snapRollback-按备份文件回档
+ RollbackStrategy *string `json:"RollbackStrategy,omitnil,omitempty" name:"RollbackStrategy"`
+
+ // 备份文件ID。
+ // 回档策略为按备份文件回档时必填。
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
+
+ // 期望回档时间。
+ // 回档策略为timeRollback按时间点回档时必填。
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
+
+ // 期望阈值(已废弃)
+ ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitnil,omitempty" name:"ExpectTimeThresh"`
+
+ // 回档数据库列表
+ RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitnil,omitempty" name:"RollbackDatabases"`
+
+ // 回档数据库表列表
+ RollbackTables []*RollbackTable `json:"RollbackTables,omitnil,omitempty" name:"RollbackTables"`
+
+ // 按时间点回档模式,full: 普通; db: 快速; table: 极速 (默认是普通)
+ RollbackMode *string `json:"RollbackMode,omitnil,omitempty" name:"RollbackMode"`
+}
+
+func (r *RollBackClusterRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RollBackClusterRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ClusterId")
+ delete(f, "RollbackStrategy")
+ delete(f, "RollbackId")
+ delete(f, "ExpectTime")
+ delete(f, "ExpectTimeThresh")
+ delete(f, "RollbackDatabases")
+ delete(f, "RollbackTables")
+ delete(f, "RollbackMode")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollBackClusterRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RollBackClusterResponseParams struct {
+ // 任务流ID
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RollBackClusterResponse struct {
+ *tchttp.BaseResponse
+ Response *RollBackClusterResponseParams `json:"Response"`
+}
+
+func (r *RollBackClusterResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RollBackClusterResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type RollbackData struct {
+ // 实例CPU
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 实例内存
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
+
+ // 集群存储上限
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+
+ // 原集群id
+ OriginalClusterId *string `json:"OriginalClusterId,omitnil,omitempty" name:"OriginalClusterId"`
+
+ // 原集群名
+ OriginalClusterName *string `json:"OriginalClusterName,omitnil,omitempty" name:"OriginalClusterName"`
+
+ // 回档方式
+ RollbackStrategy *string `json:"RollbackStrategy,omitnil,omitempty" name:"RollbackStrategy"`
+
+ // 快照时间
+ SnapshotTime *string `json:"SnapshotTime,omitnil,omitempty" name:"SnapshotTime"`
+
+ // 回档到serverlessls集群时最小CPU
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MinCpu *int64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // 回档到serverlessls集群时最大CPU
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaxCpu *int64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 快照ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SnapShotId *uint64 `json:"SnapShotId,omitnil,omitempty" name:"SnapShotId"`
+
+ // 回档数据库
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitnil,omitempty" name:"RollbackDatabases"`
+
+ // 回档数据表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RollbackTables []*RollbackTable `json:"RollbackTables,omitnil,omitempty" name:"RollbackTables"`
+
+ // 备份文件名称
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BackupFileName *string `json:"BackupFileName,omitnil,omitempty" name:"BackupFileName"`
+
+ // 回档进程
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RollbackProcess *RollbackProcessInfo `json:"RollbackProcess,omitnil,omitempty" name:"RollbackProcess"`
+}
+
+type RollbackDatabase struct {
+ // 旧数据库名称
+ OldDatabase *string `json:"OldDatabase,omitnil,omitempty" name:"OldDatabase"`
+
+ // 新数据库名称
+ NewDatabase *string `json:"NewDatabase,omitnil,omitempty" name:"NewDatabase"`
+}
+
+type RollbackInstanceInfo struct {
+ // 集群ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // 集群名称
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
+
+ // vpc信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // 子网信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
+
+ // vip信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // vport信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
+
+ // 实例ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 实例名称
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // 状态
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // cpu大小
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // 内存大小
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
+
+ // 存储大小
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ StorageLimit *int64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
+}
+
+type RollbackProcessInfo struct {
+ // 是否可以交换vip
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ IsVipSwitchable *bool `json:"IsVipSwitchable,omitnil,omitempty" name:"IsVipSwitchable"`
+
+ // vip可交换时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ VipSwitchableTime *string `json:"VipSwitchableTime,omitnil,omitempty" name:"VipSwitchableTime"`
+
+ // 交换实例列表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ExchangeInstanceInfoList []*ExchangeInstanceInfo `json:"ExchangeInstanceInfoList,omitnil,omitempty" name:"ExchangeInstanceInfoList"`
+
+ // 交换RO组列表
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ExchangeRoGroupInfoList []*ExchangeRoGroupInfo `json:"ExchangeRoGroupInfoList,omitnil,omitempty" name:"ExchangeRoGroupInfoList"`
+
+ // 当前步骤
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CurrentStep *string `json:"CurrentStep,omitnil,omitempty" name:"CurrentStep"`
+
+ // 当前步骤进度
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CurrentStepProgress *int64 `json:"CurrentStepProgress,omitnil,omitempty" name:"CurrentStepProgress"`
+
+ // 当前步骤剩余时间
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ CurrentStepRemainingTime *string `json:"CurrentStepRemainingTime,omitnil,omitempty" name:"CurrentStepRemainingTime"`
+}
+
+type RollbackRoGroupInfo struct {
+ // 实例组ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ InstanceGroupId *string `json:"InstanceGroupId,omitnil,omitempty" name:"InstanceGroupId"`
+
+ // vpc信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // 子网信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
+
+ // vip信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // vport信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
+}
+
+type RollbackTable struct {
+ // 数据库名称
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
+
+ // 数据库表
+ Tables []*RollbackTableInfo `json:"Tables,omitnil,omitempty" name:"Tables"`
+}
+
+type RollbackTableInfo struct {
+ // 旧表名称
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OldTable *string `json:"OldTable,omitnil,omitempty" name:"OldTable"`
+
+ // 新表名称
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ NewTable *string `json:"NewTable,omitnil,omitempty" name:"NewTable"`
+}
+
+type RollbackTimeRange struct {
+ // 开始时间
+ TimeRangeStart *string `json:"TimeRangeStart,omitnil,omitempty" name:"TimeRangeStart"`
+
+ // 结束时间
+ TimeRangeEnd *string `json:"TimeRangeEnd,omitnil,omitempty" name:"TimeRangeEnd"`
+}
+
+// Predefined struct for user
+type RollbackToNewClusterRequestParams struct {
+ // 可用区
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // 回档时,传入源集群ID,用于查找源poolId
+ OriginalClusterId *string `json:"OriginalClusterId,omitnil,omitempty" name:"OriginalClusterId"`
+
+ // 所属VPC网络ID
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // 所属子网ID
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
+
+ // 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
+
+ // 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
+
+ // 时间点回档,指定时间;快照回档,快照时间
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
+
+ // 是否自动选择代金券 1是 0否 默认为0
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
+
+ // 集群创建需要绑定的tag数组信息
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
+
+ // Db类型
+ // 当DbType为MYSQL时可选(默认NORMAL):
+ // NORMAL
+ // SERVERLESS
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
+
+ // 当DbMode为SEVERLESS时必填
+ // cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // 当DbMode为SEVERLESS时必填:
+ // cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
+ // yes
+ // no
+ // 默认值:yes
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
+
+ // 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
+ // 默认值:600
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
+
+ // 安全组id数组
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+
+ // 告警策略Id数组
+ AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitnil,omitempty" name:"AlarmPolicyIds"`
+
+ // 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
+ ClusterParams []*ParamItem `json:"ClusterParams,omitnil,omitempty" name:"ClusterParams"`
+
+ // 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
+
+ // 实例初始化配置信息,主要用于购买集群时选不同规格实例
+ InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitnil,omitempty" name:"InstanceInitInfos"`
+
+ // 0-下单并支付 1-下单
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
+
+ // 计算节点付费模式:0-按量计费,1-预付费
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
+
+ // 时间
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
+
+ // 单位
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
+
+ // 回档库信息
+ RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitnil,omitempty" name:"RollbackDatabases"`
+
+ // 回档表信息
+ RollbackTables []*RollbackTable `json:"RollbackTables,omitnil,omitempty" name:"RollbackTables"`
+
+ // 原ro实例信息
+ OriginalROInstanceList []*string `json:"OriginalROInstanceList,omitnil,omitempty" name:"OriginalROInstanceList"`
+}
+
+type RollbackToNewClusterRequest struct {
+ *tchttp.BaseRequest
+
+ // 可用区
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // 回档时,传入源集群ID,用于查找源poolId
+ OriginalClusterId *string `json:"OriginalClusterId,omitnil,omitempty" name:"OriginalClusterId"`
+
+ // 所属VPC网络ID
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
+
+ // 所属子网ID
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
+
+ // 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
+
+ // 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
+ RollbackId *uint64 `json:"RollbackId,omitnil,omitempty" name:"RollbackId"`
+
+ // 时间点回档,指定时间;快照回档,快照时间
+ ExpectTime *string `json:"ExpectTime,omitnil,omitempty" name:"ExpectTime"`
+
+ // 是否自动选择代金券 1是 0否 默认为0
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
+
+ // 集群创建需要绑定的tag数组信息
+ ResourceTags []*Tag `json:"ResourceTags,omitnil,omitempty" name:"ResourceTags"`
+
+ // Db类型
+ // 当DbType为MYSQL时可选(默认NORMAL):
+ // NORMAL
+ // SERVERLESS
+ DbMode *string `json:"DbMode,omitnil,omitempty" name:"DbMode"`
+
+ // 当DbMode为SEVERLESS时必填
+ // cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // 当DbMode为SEVERLESS时必填:
+ // cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
+ // yes
+ // no
+ // 默认值:yes
+ AutoPause *string `json:"AutoPause,omitnil,omitempty" name:"AutoPause"`
+
+ // 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
+ // 默认值:600
+ AutoPauseDelay *int64 `json:"AutoPauseDelay,omitnil,omitempty" name:"AutoPauseDelay"`
+
+ // 安全组id数组
+ SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
+
+ // 告警策略Id数组
+ AlarmPolicyIds []*string `json:"AlarmPolicyIds,omitnil,omitempty" name:"AlarmPolicyIds"`
+
+ // 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
+ ClusterParams []*ParamItem `json:"ClusterParams,omitnil,omitempty" name:"ClusterParams"`
+
+ // 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
+ ParamTemplateId *int64 `json:"ParamTemplateId,omitnil,omitempty" name:"ParamTemplateId"`
- // 回档策略 timeRollback-按时间点回档 snapRollback-按备份文件回档
- RollbackStrategy *string `json:"RollbackStrategy,omitempty" name:"RollbackStrategy"`
+ // 实例初始化配置信息,主要用于购买集群时选不同规格实例
+ InstanceInitInfos []*InstanceInitInfo `json:"InstanceInitInfos,omitnil,omitempty" name:"InstanceInitInfos"`
- // 回档ID
- RollbackId *uint64 `json:"RollbackId,omitempty" name:"RollbackId"`
+ // 0-下单并支付 1-下单
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
- // 期望回档时间
- ExpectTime *string `json:"ExpectTime,omitempty" name:"ExpectTime"`
+ // 计算节点付费模式:0-按量计费,1-预付费
+ PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`
- // 期望阈值(已废弃)
- ExpectTimeThresh *uint64 `json:"ExpectTimeThresh,omitempty" name:"ExpectTimeThresh"`
+ // 时间
+ TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
- // 回档数据库列表
- RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitempty" name:"RollbackDatabases"`
+ // 单位
+ TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"`
- // 回档数据库表列表
- RollbackTables []*RollbackTable `json:"RollbackTables,omitempty" name:"RollbackTables"`
+ // 回档库信息
+ RollbackDatabases []*RollbackDatabase `json:"RollbackDatabases,omitnil,omitempty" name:"RollbackDatabases"`
- // 按时间点回档模式,full: 普通; db: 快速; table: 极速 (默认是普通)
- RollbackMode *string `json:"RollbackMode,omitempty" name:"RollbackMode"`
+ // 回档表信息
+ RollbackTables []*RollbackTable `json:"RollbackTables,omitnil,omitempty" name:"RollbackTables"`
+
+ // 原ro实例信息
+ OriginalROInstanceList []*string `json:"OriginalROInstanceList,omitnil,omitempty" name:"OriginalROInstanceList"`
}
-func (r *RollBackClusterRequest) ToJsonString() string {
+func (r *RollbackToNewClusterRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *RollBackClusterRequest) FromJsonString(s string) error {
+func (r *RollbackToNewClusterRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
- delete(f, "ClusterId")
- delete(f, "RollbackStrategy")
+ delete(f, "Zone")
+ delete(f, "OriginalClusterId")
+ delete(f, "UniqVpcId")
+ delete(f, "UniqSubnetId")
+ delete(f, "ClusterName")
delete(f, "RollbackId")
delete(f, "ExpectTime")
- delete(f, "ExpectTimeThresh")
+ delete(f, "AutoVoucher")
+ delete(f, "ResourceTags")
+ delete(f, "DbMode")
+ delete(f, "MinCpu")
+ delete(f, "MaxCpu")
+ delete(f, "AutoPause")
+ delete(f, "AutoPauseDelay")
+ delete(f, "SecurityGroupIds")
+ delete(f, "AlarmPolicyIds")
+ delete(f, "ClusterParams")
+ delete(f, "ParamTemplateId")
+ delete(f, "InstanceInitInfos")
+ delete(f, "DealMode")
+ delete(f, "PayMode")
+ delete(f, "TimeSpan")
+ delete(f, "TimeUnit")
delete(f, "RollbackDatabases")
delete(f, "RollbackTables")
- delete(f, "RollbackMode")
+ delete(f, "OriginalROInstanceList")
if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollBackClusterRequest has unknown keys!", "")
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollbackToNewClusterRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
-type RollBackClusterResponseParams struct {
- // 任务流ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+type RollbackToNewClusterResponseParams struct {
+ // 冻结流水ID
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
+
+ // 订单号
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
+
+ // 资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
+
+ // 集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // 大订单号
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
-type RollBackClusterResponse struct {
+type RollbackToNewClusterResponse struct {
*tchttp.BaseResponse
- Response *RollBackClusterResponseParams `json:"Response"`
+ Response *RollbackToNewClusterResponseParams `json:"Response"`
}
-func (r *RollBackClusterResponse) ToJsonString() string {
+func (r *RollbackToNewClusterResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
-func (r *RollBackClusterResponse) FromJsonString(s string) error {
+func (r *RollbackToNewClusterResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
-type RollbackDatabase struct {
- // 旧数据库名称
- OldDatabase *string `json:"OldDatabase,omitempty" name:"OldDatabase"`
-
- // 新数据库名称
- NewDatabase *string `json:"NewDatabase,omitempty" name:"NewDatabase"`
-}
+type RuleFilters struct {
+ // 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句;affectRows -影响行数;sentRows-返回行数;checkRows-扫描行数;execTime-执行时间。
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
-type RollbackTable struct {
- // 数据库名称
- Database *string `json:"Database,omitempty" name:"Database"`
+ // 审计规则过滤条件的匹配类型。可选值:INC – 包含;EXC – 不包含;EQS – 等于;NEQ – 不等于;REG-正则;GT-大于;LT-小于。
+ Compare *string `json:"Compare,omitnil,omitempty" name:"Compare"`
- // 数据库表
- Tables []*RollbackTableInfo `json:"Tables,omitempty" name:"Tables"`
+ // 审计规则过滤条件的匹配值。
+ Value []*string `json:"Value,omitnil,omitempty" name:"Value"`
}
-type RollbackTableInfo struct {
- // 旧表名称
- OldTable *string `json:"OldTable,omitempty" name:"OldTable"`
-
- // 新表名称
- NewTable *string `json:"NewTable,omitempty" name:"NewTable"`
-}
+type RuleTemplateInfo struct {
+ // 规则模板ID。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateId *string `json:"RuleTemplateId,omitnil,omitempty" name:"RuleTemplateId"`
-type RollbackTimeRange struct {
- // 开始时间
- TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"`
+ // 规则模板名称。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleTemplateName *string `json:"RuleTemplateName,omitnil,omitempty" name:"RuleTemplateName"`
- // 结束时间
- TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"`
-}
+ // 规则内容。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RuleFilters []*RuleFilters `json:"RuleFilters,omitnil,omitempty" name:"RuleFilters"`
-type RuleFilters struct {
- // 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句。
- Type *string `json:"Type,omitempty" name:"Type"`
+ // 告警等级。1-低风险,2-中风险,3-高风险。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"`
- // 审计规则过滤条件的匹配类型。可选值:INC – 包含;EXC – 不包含;EQS – 等于;NEQ – 不等于。
- Compare *string `json:"Compare,omitempty" name:"Compare"`
+ // 告警策略。0-不告警,1-告警。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ AlarmPolicy *int64 `json:"AlarmPolicy,omitnil,omitempty" name:"AlarmPolicy"`
- // 审计规则过滤条件的匹配值。
- Value []*string `json:"Value,omitempty" name:"Value"`
+ // 规则描述。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
type SalePackageSpec struct {
// 资源包使用地域
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageRegion *string `json:"PackageRegion,omitempty" name:"PackageRegion"`
+ PackageRegion *string `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`
// 资源包类型
// CCU-计算资源包
// DISK-存储资源包
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageType *string `json:"PackageType,omitempty" name:"PackageType"`
+ PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`
// 资源包版本
// base-基础版本,common-通用版本,enterprise-企业版本
// 注意:此字段可能返回 null,表示取不到有效值。
- PackageVersion *string `json:"PackageVersion,omitempty" name:"PackageVersion"`
+ PackageVersion *string `json:"PackageVersion,omitnil,omitempty" name:"PackageVersion"`
// 当前版本资源包最小资源数,计算资源单位:个;存储资源:GB
// 注意:此字段可能返回 null,表示取不到有效值。
- MinPackageSpec *float64 `json:"MinPackageSpec,omitempty" name:"MinPackageSpec"`
+ MinPackageSpec *float64 `json:"MinPackageSpec,omitnil,omitempty" name:"MinPackageSpec"`
// 当前版本资源包最大资源数,计算资源单位:个;存储资源:GB
// 注意:此字段可能返回 null,表示取不到有效值。
- MaxPackageSpec *float64 `json:"MaxPackageSpec,omitempty" name:"MaxPackageSpec"`
+ MaxPackageSpec *float64 `json:"MaxPackageSpec,omitnil,omitempty" name:"MaxPackageSpec"`
// 资源包有效期,单位:天
// 注意:此字段可能返回 null,表示取不到有效值。
- ExpireDay *int64 `json:"ExpireDay,omitempty" name:"ExpireDay"`
+ ExpireDay *int64 `json:"ExpireDay,omitnil,omitempty" name:"ExpireDay"`
}
type SaleRegion struct {
// 地域英文名
- Region *string `json:"Region,omitempty" name:"Region"`
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 地域数字ID
- RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
+ RegionId *int64 `json:"RegionId,omitnil,omitempty" name:"RegionId"`
// 地域中文名
- RegionZh *string `json:"RegionZh,omitempty" name:"RegionZh"`
+ RegionZh *string `json:"RegionZh,omitnil,omitempty" name:"RegionZh"`
// 可售卖可用区列表
- ZoneSet []*SaleZone `json:"ZoneSet,omitempty" name:"ZoneSet"`
+ ZoneSet []*SaleZone `json:"ZoneSet,omitnil,omitempty" name:"ZoneSet"`
// 引擎类型
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 地域模块支持情况
- Modules []*Module `json:"Modules,omitempty" name:"Modules"`
+ Modules []*Module `json:"Modules,omitnil,omitempty" name:"Modules"`
}
type SaleZone struct {
// 可用区英文名
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 可用区数字ID
- ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"`
+ ZoneId *int64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// 可用区中文名
- ZoneZh *string `json:"ZoneZh,omitempty" name:"ZoneZh"`
+ ZoneZh *string `json:"ZoneZh,omitnil,omitempty" name:"ZoneZh"`
// 是否支持serverless集群
// 0:不支持
// 1:支持
- IsSupportServerless *int64 `json:"IsSupportServerless,omitempty" name:"IsSupportServerless"`
+ IsSupportServerless *int64 `json:"IsSupportServerless,omitnil,omitempty" name:"IsSupportServerless"`
// 是否支持普通集群
// 0:不支持
// 1:支持
- IsSupportNormal *int64 `json:"IsSupportNormal,omitempty" name:"IsSupportNormal"`
+ IsSupportNormal *int64 `json:"IsSupportNormal,omitnil,omitempty" name:"IsSupportNormal"`
// 物理区
- PhysicalZone *string `json:"PhysicalZone,omitempty" name:"PhysicalZone"`
+ PhysicalZone *string `json:"PhysicalZone,omitnil,omitempty" name:"PhysicalZone"`
// 用户是否有可用区权限
// 注意:此字段可能返回 null,表示取不到有效值。
- HasPermission *bool `json:"HasPermission,omitempty" name:"HasPermission"`
+ HasPermission *bool `json:"HasPermission,omitnil,omitempty" name:"HasPermission"`
// 是否为全链路RDMA可用区
- IsWholeRdmaZone *string `json:"IsWholeRdmaZone,omitempty" name:"IsWholeRdmaZone"`
+ IsWholeRdmaZone *string `json:"IsWholeRdmaZone,omitnil,omitempty" name:"IsWholeRdmaZone"`
+
+ // 当前可用区是否允许新购集群,1:允许,0:不允许
+ IsSupportCreateCluster *int64 `json:"IsSupportCreateCluster,omitnil,omitempty" name:"IsSupportCreateCluster"`
}
// Predefined struct for user
type SearchClusterDatabasesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 是否精确搜索。
// 0: 模糊搜索 1:精确搜索
// 默认为0
- MatchType *int64 `json:"MatchType,omitempty" name:"MatchType"`
+ MatchType *int64 `json:"MatchType,omitnil,omitempty" name:"MatchType"`
}
type SearchClusterDatabasesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 是否精确搜索。
// 0: 模糊搜索 1:精确搜索
// 默认为0
- MatchType *int64 `json:"MatchType,omitempty" name:"MatchType"`
+ MatchType *int64 `json:"MatchType,omitnil,omitempty" name:"MatchType"`
}
func (r *SearchClusterDatabasesRequest) ToJsonString() string {
@@ -11859,10 +15260,10 @@ func (r *SearchClusterDatabasesRequest) FromJsonString(s string) error {
type SearchClusterDatabasesResponseParams struct {
// 数据库列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Databases []*string `json:"Databases,omitempty" name:"Databases"`
+ Databases []*string `json:"Databases,omitnil,omitempty" name:"Databases"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SearchClusterDatabasesResponse struct {
@@ -11884,38 +15285,38 @@ func (r *SearchClusterDatabasesResponse) FromJsonString(s string) error {
// Predefined struct for user
type SearchClusterTablesRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 数据表名
- Table *string `json:"Table,omitempty" name:"Table"`
+ Table *string `json:"Table,omitnil,omitempty" name:"Table"`
// 数据表类型:
// view:只返回 view,
// base_table: 只返回基本表,
// all:返回 view 和表
- TableType *string `json:"TableType,omitempty" name:"TableType"`
+ TableType *string `json:"TableType,omitnil,omitempty" name:"TableType"`
}
type SearchClusterTablesRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 数据表名
- Table *string `json:"Table,omitempty" name:"Table"`
+ Table *string `json:"Table,omitnil,omitempty" name:"Table"`
// 数据表类型:
// view:只返回 view,
// base_table: 只返回基本表,
// all:返回 view 和表
- TableType *string `json:"TableType,omitempty" name:"TableType"`
+ TableType *string `json:"TableType,omitnil,omitempty" name:"TableType"`
}
func (r *SearchClusterTablesRequest) ToJsonString() string {
@@ -11944,10 +15345,10 @@ func (r *SearchClusterTablesRequest) FromJsonString(s string) error {
type SearchClusterTablesResponseParams struct {
// 数据表列表
// 注意:此字段可能返回 null,表示取不到有效值。
- Tables []*DatabaseTables `json:"Tables,omitempty" name:"Tables"`
+ Tables []*DatabaseTables `json:"Tables,omitnil,omitempty" name:"Tables"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SearchClusterTablesResponse struct {
@@ -11968,44 +15369,86 @@ func (r *SearchClusterTablesResponse) FromJsonString(s string) error {
type SecurityGroup struct {
// 项目ID
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 创建时间,时间格式:yyyy-mm-dd hh:mm:ss
- CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 入站规则
- Inbound []*PolicyRule `json:"Inbound,omitempty" name:"Inbound"`
+ Inbound []*PolicyRule `json:"Inbound,omitnil,omitempty" name:"Inbound"`
// 出站规则
- Outbound []*PolicyRule `json:"Outbound,omitempty" name:"Outbound"`
+ Outbound []*PolicyRule `json:"Outbound,omitnil,omitempty" name:"Outbound"`
// 安全组ID
- SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
+ SecurityGroupId *string `json:"SecurityGroupId,omitnil,omitempty" name:"SecurityGroupId"`
// 安全组名称
- SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"`
+ SecurityGroupName *string `json:"SecurityGroupName,omitnil,omitempty" name:"SecurityGroupName"`
// 安全组备注
- SecurityGroupRemark *string `json:"SecurityGroupRemark,omitempty" name:"SecurityGroupRemark"`
+ SecurityGroupRemark *string `json:"SecurityGroupRemark,omitnil,omitempty" name:"SecurityGroupRemark"`
+}
+
+type ServerlessSpec struct {
+ // cpu最小值
+ MinCpu *float64 `json:"MinCpu,omitnil,omitempty" name:"MinCpu"`
+
+ // cpu最大值
+ MaxCpu *float64 `json:"MaxCpu,omitnil,omitempty" name:"MaxCpu"`
+
+ // 最大存储空间
+ MaxStorageSize *int64 `json:"MaxStorageSize,omitnil,omitempty" name:"MaxStorageSize"`
+
+ // 是否为默认规格
+ IsDefault *int64 `json:"IsDefault,omitnil,omitempty" name:"IsDefault"`
+
+ // 是否有库存
+ HasStock *bool `json:"HasStock,omitnil,omitempty" name:"HasStock"`
+
+ // 库存数量
+ StockCount *int64 `json:"StockCount,omitnil,omitempty" name:"StockCount"`
+
+ // 可用区库存信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ZoneStockInfos []*ServerlessZoneStockInfo `json:"ZoneStockInfos,omitnil,omitempty" name:"ZoneStockInfos"`
+}
+
+type ServerlessZoneStockInfo struct {
+ // 可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // 存储量
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ StockCount *int64 `json:"StockCount,omitnil,omitempty" name:"StockCount"`
+
+ // 是否包含库存
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HasStock *bool `json:"HasStock,omitnil,omitempty" name:"HasStock"`
+
+ // 从可用区库存信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SlaveZoneStockInfos []*SlaveZoneStockInfo `json:"SlaveZoneStockInfos,omitnil,omitempty" name:"SlaveZoneStockInfos"`
}
// Predefined struct for user
type SetRenewFlagRequestParams struct {
- // 需操作的实例ID
- ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
+ // 需操作的集群ID
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// 自动续费标志位,续费标记 0:正常续费 1:自动续费 2:到期不续
- AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
+ AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
}
type SetRenewFlagRequest struct {
*tchttp.BaseRequest
- // 需操作的实例ID
- ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"`
+ // 需操作的集群ID
+ ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"`
// 自动续费标志位,续费标记 0:正常续费 1:自动续费 2:到期不续
- AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
+ AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
}
func (r *SetRenewFlagRequest) ToJsonString() string {
@@ -12031,10 +15474,10 @@ func (r *SetRenewFlagRequest) FromJsonString(s string) error {
// Predefined struct for user
type SetRenewFlagResponseParams struct {
// 操作成功实例数
- Count *int64 `json:"Count,omitempty" name:"Count"`
+ Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SetRenewFlagResponse struct {
@@ -12053,70 +15496,291 @@ func (r *SetRenewFlagResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type SlaveZoneAttrItem struct {
+ // 可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // binlog同步方式
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ BinlogSyncWay *string `json:"BinlogSyncWay,omitnil,omitempty" name:"BinlogSyncWay"`
+}
+
+type SlaveZoneStockInfo struct {
+ // 备可用区
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
+
+ // 备可用区的库存数量
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ StockCount *uint64 `json:"StockCount,omitnil,omitempty" name:"StockCount"`
+
+ // 备可用区是否有库存
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HasStock *bool `json:"HasStock,omitnil,omitempty" name:"HasStock"`
+}
+
type SlowQueriesItem struct {
// 执行时间戳
- Timestamp *int64 `json:"Timestamp,omitempty" name:"Timestamp"`
+ Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
// 执行时长,单位秒
- QueryTime *float64 `json:"QueryTime,omitempty" name:"QueryTime"`
+ QueryTime *float64 `json:"QueryTime,omitnil,omitempty" name:"QueryTime"`
// sql语句
- SqlText *string `json:"SqlText,omitempty" name:"SqlText"`
+ SqlText *string `json:"SqlText,omitnil,omitempty" name:"SqlText"`
// 客户端host
- UserHost *string `json:"UserHost,omitempty" name:"UserHost"`
+ UserHost *string `json:"UserHost,omitnil,omitempty" name:"UserHost"`
// 用户名
- UserName *string `json:"UserName,omitempty" name:"UserName"`
+ UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"`
// 数据库名
- Database *string `json:"Database,omitempty" name:"Database"`
+ Database *string `json:"Database,omitnil,omitempty" name:"Database"`
// 锁时长,单位秒
- LockTime *float64 `json:"LockTime,omitempty" name:"LockTime"`
+ LockTime *float64 `json:"LockTime,omitnil,omitempty" name:"LockTime"`
// 扫描行数
- RowsExamined *int64 `json:"RowsExamined,omitempty" name:"RowsExamined"`
+ RowsExamined *int64 `json:"RowsExamined,omitnil,omitempty" name:"RowsExamined"`
// 返回行数
- RowsSent *int64 `json:"RowsSent,omitempty" name:"RowsSent"`
+ RowsSent *int64 `json:"RowsSent,omitnil,omitempty" name:"RowsSent"`
- // sql模版
- SqlTemplate *string `json:"SqlTemplate,omitempty" name:"SqlTemplate"`
+ // sql模板
+ SqlTemplate *string `json:"SqlTemplate,omitnil,omitempty" name:"SqlTemplate"`
// sql语句md5
- SqlMd5 *string `json:"SqlMd5,omitempty" name:"SqlMd5"`
+ SqlMd5 *string `json:"SqlMd5,omitnil,omitempty" name:"SqlMd5"`
+
+ // 远程读取次数
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncReadCountRemote *int64 `json:"SyncReadCountRemote,omitnil,omitempty" name:"SyncReadCountRemote"`
+
+ // 远程读取的字节数
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncReadBytesRemote *int64 `json:"SyncReadBytesRemote,omitnil,omitempty" name:"SyncReadBytesRemote"`
+
+ // 远程读取所花费的时间(微秒)
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncReadTimeRemote *int64 `json:"SyncReadTimeRemote,omitnil,omitempty" name:"SyncReadTimeRemote"`
+
+ // 远程写入次数
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncWriteCountRemote *int64 `json:"SyncWriteCountRemote,omitnil,omitempty" name:"SyncWriteCountRemote"`
+
+ // 远程写入的字节数。
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncWriteBytesRemote *int64 `json:"SyncWriteBytesRemote,omitnil,omitempty" name:"SyncWriteBytesRemote"`
+
+ // 远程写入所花费的时间(微秒)。
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SyncWriteTimeRemote *int64 `json:"SyncWriteTimeRemote,omitnil,omitempty" name:"SyncWriteTimeRemote"`
+
+ // 事务提交延迟(微秒)
+ // 数据库内核版本大于3.1.12
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TrxCommitDelay *int64 `json:"TrxCommitDelay,omitnil,omitempty" name:"TrxCommitDelay"`
+}
+
+// Predefined struct for user
+type StartCLSDeliveryRequestParams struct {
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 开通的日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+type StartCLSDeliveryRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 开通的日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+func (r *StartCLSDeliveryRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *StartCLSDeliveryRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "CLSTopicIds")
+ delete(f, "LogType")
+ delete(f, "IsInMaintainPeriod")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StartCLSDeliveryRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type StartCLSDeliveryResponseParams struct {
+ // 异步任务id
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type StartCLSDeliveryResponse struct {
+ *tchttp.BaseResponse
+ Response *StartCLSDeliveryResponseParams `json:"Response"`
+}
+
+func (r *StartCLSDeliveryResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *StartCLSDeliveryResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type StopCLSDeliveryRequestParams struct {
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+type StopCLSDeliveryRequest struct {
+ *tchttp.BaseRequest
+
+ // 实例id
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // 日志主题id
+ CLSTopicIds []*string `json:"CLSTopicIds,omitnil,omitempty" name:"CLSTopicIds"`
+
+ // 日志类型
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+
+ // 是否维护时间运行
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
+}
+
+func (r *StopCLSDeliveryRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *StopCLSDeliveryRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceId")
+ delete(f, "CLSTopicIds")
+ delete(f, "LogType")
+ delete(f, "IsInMaintainPeriod")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopCLSDeliveryRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type StopCLSDeliveryResponseParams struct {
+ // 异步任务id
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type StopCLSDeliveryResponse struct {
+ *tchttp.BaseResponse
+ Response *StopCLSDeliveryResponseParams `json:"Response"`
+}
+
+func (r *StopCLSDeliveryResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *StopCLSDeliveryResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type SwitchClusterLogBin struct {
+ // 状态
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Status *string `json:"Status,omitnil,omitempty" name:"Status"`
}
// Predefined struct for user
type SwitchClusterVpcRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 字符串vpc id
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 字符串子网id
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 旧地址回收时间
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
}
type SwitchClusterVpcRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 字符串vpc id
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 字符串子网id
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 旧地址回收时间
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
}
func (r *SwitchClusterVpcRequest) ToJsonString() string {
@@ -12144,10 +15808,10 @@ func (r *SwitchClusterVpcRequest) FromJsonString(s string) error {
// Predefined struct for user
type SwitchClusterVpcResponseParams struct {
// 异步任务id。
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SwitchClusterVpcResponse struct {
@@ -12169,32 +15833,32 @@ func (r *SwitchClusterVpcResponse) FromJsonString(s string) error {
// Predefined struct for user
type SwitchClusterZoneRequestParams struct {
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 当前可用区
- OldZone *string `json:"OldZone,omitempty" name:"OldZone"`
+ OldZone *string `json:"OldZone,omitnil,omitempty" name:"OldZone"`
// 要切换到的可用区
- NewZone *string `json:"NewZone,omitempty" name:"NewZone"`
+ NewZone *string `json:"NewZone,omitnil,omitempty" name:"NewZone"`
// 维护期间执行-yes,立即执行-no
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
type SwitchClusterZoneRequest struct {
*tchttp.BaseRequest
// 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 当前可用区
- OldZone *string `json:"OldZone,omitempty" name:"OldZone"`
+ OldZone *string `json:"OldZone,omitnil,omitempty" name:"OldZone"`
// 要切换到的可用区
- NewZone *string `json:"NewZone,omitempty" name:"NewZone"`
+ NewZone *string `json:"NewZone,omitnil,omitempty" name:"NewZone"`
// 维护期间执行-yes,立即执行-no
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
func (r *SwitchClusterZoneRequest) ToJsonString() string {
@@ -12222,10 +15886,10 @@ func (r *SwitchClusterZoneRequest) FromJsonString(s string) error {
// Predefined struct for user
type SwitchClusterZoneResponseParams struct {
// 异步FlowId
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SwitchClusterZoneResponse struct {
@@ -12247,38 +15911,38 @@ func (r *SwitchClusterZoneResponse) FromJsonString(s string) error {
// Predefined struct for user
type SwitchProxyVpcRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 字符串vpc id
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 字符串子网id
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 旧地址回收时间
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
// 数据库代理组Id(该参数为必填项,可以通过DescribeProxies接口获得)
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
type SwitchProxyVpcRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 字符串vpc id
- UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
+ UniqVpcId *string `json:"UniqVpcId,omitnil,omitempty" name:"UniqVpcId"`
// 字符串子网id
- UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"`
+ UniqSubnetId *string `json:"UniqSubnetId,omitnil,omitempty" name:"UniqSubnetId"`
// 旧地址回收时间
- OldIpReserveHours *int64 `json:"OldIpReserveHours,omitempty" name:"OldIpReserveHours"`
+ OldIpReserveHours *int64 `json:"OldIpReserveHours,omitnil,omitempty" name:"OldIpReserveHours"`
// 数据库代理组Id(该参数为必填项,可以通过DescribeProxies接口获得)
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
}
func (r *SwitchProxyVpcRequest) ToJsonString() string {
@@ -12307,10 +15971,10 @@ func (r *SwitchProxyVpcRequest) FromJsonString(s string) error {
// Predefined struct for user
type SwitchProxyVpcResponseParams struct {
// 异步任务id。
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type SwitchProxyVpcResponse struct {
@@ -12331,96 +15995,113 @@ func (r *SwitchProxyVpcResponse) FromJsonString(s string) error {
type TablePrivileges struct {
// 数据库名
- Db *string `json:"Db,omitempty" name:"Db"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Db *string `json:"Db,omitnil,omitempty" name:"Db"`
// 表名
- TableName *string `json:"TableName,omitempty" name:"TableName"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"`
// 权限列表
- Privileges []*string `json:"Privileges,omitempty" name:"Privileges"`
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Privileges []*string `json:"Privileges,omitnil,omitempty" name:"Privileges"`
}
type Tag struct {
// 标签键
- TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
+ TagKey *string `json:"TagKey,omitnil,omitempty" name:"TagKey"`
// 标签值
- TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
+ TagValue *string `json:"TagValue,omitnil,omitempty" name:"TagValue"`
+}
+
+type TaskMaintainInfo struct {
+ // 执行开始时间(距离0点的秒数)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainStartTime *int64 `json:"MaintainStartTime,omitnil,omitempty" name:"MaintainStartTime"`
+
+ // 持续的时间(单位:秒)
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainDuration *int64 `json:"MaintainDuration,omitnil,omitempty" name:"MaintainDuration"`
+
+ // 可以执行的时间,枚举值:["Mon","Tue","Wed","Thu","Fri", "Sat", "Sun"]
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ MaintainWeekDays []*string `json:"MaintainWeekDays,omitnil,omitempty" name:"MaintainWeekDays"`
}
type TemplateParamInfo struct {
// 当前值
- CurrentValue *string `json:"CurrentValue,omitempty" name:"CurrentValue"`
+ CurrentValue *string `json:"CurrentValue,omitnil,omitempty" name:"CurrentValue"`
// 默认值
- Default *string `json:"Default,omitempty" name:"Default"`
+ Default *string `json:"Default,omitnil,omitempty" name:"Default"`
// 参数类型为enum时可选的值类型集合
// 注意:此字段可能返回 null,表示取不到有效值。
- EnumValue []*string `json:"EnumValue,omitempty" name:"EnumValue"`
+ EnumValue []*string `json:"EnumValue,omitnil,omitempty" name:"EnumValue"`
// 参数类型为float/integer时的最大值
// 注意:此字段可能返回 null,表示取不到有效值。
- Max *string `json:"Max,omitempty" name:"Max"`
+ Max *string `json:"Max,omitnil,omitempty" name:"Max"`
// 参数类型为float/integer时的最小值
// 注意:此字段可能返回 null,表示取不到有效值。
- Min *string `json:"Min,omitempty" name:"Min"`
+ Min *string `json:"Min,omitnil,omitempty" name:"Min"`
// 参数名称
- ParamName *string `json:"ParamName,omitempty" name:"ParamName"`
+ ParamName *string `json:"ParamName,omitnil,omitempty" name:"ParamName"`
// 是否需要重启
- NeedReboot *int64 `json:"NeedReboot,omitempty" name:"NeedReboot"`
+ NeedReboot *int64 `json:"NeedReboot,omitnil,omitempty" name:"NeedReboot"`
// 参数描述
- Description *string `json:"Description,omitempty" name:"Description"`
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 参数类型,integer/float/string/enum
- ParamType *string `json:"ParamType,omitempty" name:"ParamType"`
+ ParamType *string `json:"ParamType,omitnil,omitempty" name:"ParamType"`
}
type TradePrice struct {
// 预付费模式下资源总价,不包含优惠,单位:分
// 注意:此字段可能返回 null,表示取不到有效值。
- TotalPrice *int64 `json:"TotalPrice,omitempty" name:"TotalPrice"`
+ TotalPrice *int64 `json:"TotalPrice,omitnil,omitempty" name:"TotalPrice"`
// 总的折扣,100表示100%不打折
- Discount *float64 `json:"Discount,omitempty" name:"Discount"`
+ Discount *float64 `json:"Discount,omitnil,omitempty" name:"Discount"`
// 预付费模式下的优惠后总价, 单位: 分,例如用户享有折扣 =TotalPrice × Discount
// 注意:此字段可能返回 null,表示取不到有效值。
- TotalPriceDiscount *int64 `json:"TotalPriceDiscount,omitempty" name:"TotalPriceDiscount"`
+ TotalPriceDiscount *int64 `json:"TotalPriceDiscount,omitnil,omitempty" name:"TotalPriceDiscount"`
// 后付费模式下的单位资源价格,不包含优惠,单位:分
// 注意:此字段可能返回 null,表示取不到有效值。
- UnitPrice *int64 `json:"UnitPrice,omitempty" name:"UnitPrice"`
+ UnitPrice *int64 `json:"UnitPrice,omitnil,omitempty" name:"UnitPrice"`
// 优惠后后付费模式下的单位资源价格, 单位: 分,例如用户享有折扣=UnitPricet × Discount
// 注意:此字段可能返回 null,表示取不到有效值。
- UnitPriceDiscount *int64 `json:"UnitPriceDiscount,omitempty" name:"UnitPriceDiscount"`
+ UnitPriceDiscount *int64 `json:"UnitPriceDiscount,omitnil,omitempty" name:"UnitPriceDiscount"`
// 计费价格单位
- ChargeUnit *string `json:"ChargeUnit,omitempty" name:"ChargeUnit"`
+ ChargeUnit *string `json:"ChargeUnit,omitnil,omitempty" name:"ChargeUnit"`
}
// Predefined struct for user
type UnbindClusterResourcePackagesRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 资源包唯一ID,如果不传,解绑该实例绑定的所有资源包
- PackageIds []*string `json:"PackageIds,omitempty" name:"PackageIds"`
+ PackageIds []*string `json:"PackageIds,omitnil,omitempty" name:"PackageIds"`
}
type UnbindClusterResourcePackagesRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 资源包唯一ID,如果不传,解绑该实例绑定的所有资源包
- PackageIds []*string `json:"PackageIds,omitempty" name:"PackageIds"`
+ PackageIds []*string `json:"PackageIds,omitnil,omitempty" name:"PackageIds"`
}
func (r *UnbindClusterResourcePackagesRequest) ToJsonString() string {
@@ -12445,8 +16126,8 @@ func (r *UnbindClusterResourcePackagesRequest) FromJsonString(s string) error {
// Predefined struct for user
type UnbindClusterResourcePackagesResponseParams struct {
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type UnbindClusterResourcePackagesResponse struct {
@@ -12468,26 +16149,26 @@ func (r *UnbindClusterResourcePackagesResponse) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeClusterVersionRequestParams struct {
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 内核版本
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 升级时间类型,可选:upgradeImmediate,upgradeInMaintain
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
}
type UpgradeClusterVersionRequest struct {
*tchttp.BaseRequest
// 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 内核版本
- CynosVersion *string `json:"CynosVersion,omitempty" name:"CynosVersion"`
+ CynosVersion *string `json:"CynosVersion,omitnil,omitempty" name:"CynosVersion"`
// 升级时间类型,可选:upgradeImmediate,upgradeInMaintain
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
}
func (r *UpgradeClusterVersionRequest) ToJsonString() string {
@@ -12514,10 +16195,10 @@ func (r *UpgradeClusterVersionRequest) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeClusterVersionResponseParams struct {
// 异步任务id
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type UpgradeClusterVersionResponse struct {
@@ -12539,62 +16220,74 @@ func (r *UpgradeClusterVersionResponse) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeInstanceRequestParams struct {
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 数据库CPU
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 数据库内存,单位GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 升级类型:upgradeImmediate,upgradeInMaintain
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
+
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
// 该参数已废弃
- StorageLimit *uint64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *uint64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 该参数已废弃
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
// NormalUpgrade:普通变配,FastUpgrade:极速变配,若变配过程判断会造成闪断,变配流程会终止。
- UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"`
+ UpgradeMode *string `json:"UpgradeMode,omitnil,omitempty" name:"UpgradeMode"`
+
+ // proxy同步升级
+ UpgradeProxy *UpgradeProxy `json:"UpgradeProxy,omitnil,omitempty" name:"UpgradeProxy"`
}
type UpgradeInstanceRequest struct {
*tchttp.BaseRequest
// 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 数据库CPU
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 数据库内存,单位GB
- Memory *int64 `json:"Memory,omitempty" name:"Memory"`
+ Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
// 升级类型:upgradeImmediate,upgradeInMaintain
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
+ UpgradeType *string `json:"UpgradeType,omitnil,omitempty" name:"UpgradeType"`
+
+ // 实例机器类型
+ DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
// 该参数已废弃
- StorageLimit *uint64 `json:"StorageLimit,omitempty" name:"StorageLimit"`
+ StorageLimit *uint64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`
// 是否自动选择代金券 1是 0否 默认为0
- AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
+ AutoVoucher *int64 `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`
// 该参数已废弃
- DbType *string `json:"DbType,omitempty" name:"DbType"`
+ DbType *string `json:"DbType,omitnil,omitempty" name:"DbType"`
// 交易模式 0-下单并支付 1-下单
- DealMode *int64 `json:"DealMode,omitempty" name:"DealMode"`
+ DealMode *int64 `json:"DealMode,omitnil,omitempty" name:"DealMode"`
// NormalUpgrade:普通变配,FastUpgrade:极速变配,若变配过程判断会造成闪断,变配流程会终止。
- UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"`
+ UpgradeMode *string `json:"UpgradeMode,omitnil,omitempty" name:"UpgradeMode"`
+
+ // proxy同步升级
+ UpgradeProxy *UpgradeProxy `json:"UpgradeProxy,omitnil,omitempty" name:"UpgradeProxy"`
}
func (r *UpgradeInstanceRequest) ToJsonString() string {
@@ -12613,11 +16306,13 @@ func (r *UpgradeInstanceRequest) FromJsonString(s string) error {
delete(f, "Cpu")
delete(f, "Memory")
delete(f, "UpgradeType")
+ delete(f, "DeviceType")
delete(f, "StorageLimit")
delete(f, "AutoVoucher")
delete(f, "DbType")
delete(f, "DealMode")
delete(f, "UpgradeMode")
+ delete(f, "UpgradeProxy")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpgradeInstanceRequest has unknown keys!", "")
}
@@ -12628,17 +16323,17 @@ func (r *UpgradeInstanceRequest) FromJsonString(s string) error {
type UpgradeInstanceResponseParams struct {
// 冻结流水ID
// 注意:此字段可能返回 null,表示取不到有效值。
- TranId *string `json:"TranId,omitempty" name:"TranId"`
+ TranId *string `json:"TranId,omitnil,omitempty" name:"TranId"`
// 大订单号
// 注意:此字段可能返回 null,表示取不到有效值。
- BigDealIds []*string `json:"BigDealIds,omitempty" name:"BigDealIds"`
+ BigDealIds []*string `json:"BigDealIds,omitnil,omitempty" name:"BigDealIds"`
// 订单号
- DealNames []*string `json:"DealNames,omitempty" name:"DealNames"`
+ DealNames []*string `json:"DealNames,omitnil,omitempty" name:"DealNames"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type UpgradeInstanceResponse struct {
@@ -12657,59 +16352,73 @@ func (r *UpgradeInstanceResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type UpgradeProxy struct {
+ // cpu
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
+
+ // memory
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
+
+ // 代理节点信息
+ ProxyZones []*ProxyZone `json:"ProxyZones,omitnil,omitempty" name:"ProxyZones"`
+
+ // 重新负载均衡
+ ReloadBalance *string `json:"ReloadBalance,omitnil,omitempty" name:"ReloadBalance"`
+}
+
// Predefined struct for user
type UpgradeProxyRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
// 数据库代理组节点个数
- ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"`
+ ProxyCount *int64 `json:"ProxyCount,omitnil,omitempty" name:"ProxyCount"`
// 数据库代理组ID(已废弃)
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 重新负载均衡:auto(自动),manual(手动)
- ReloadBalance *string `json:"ReloadBalance,omitempty" name:"ReloadBalance"`
+ ReloadBalance *string `json:"ReloadBalance,omitnil,omitempty" name:"ReloadBalance"`
// 升级时间 :no(升级完成时)yes(实例维护时间)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
// 数据库代理节点信息
- ProxyZones []*ProxyZone `json:"ProxyZones,omitempty" name:"ProxyZones"`
+ ProxyZones []*ProxyZone `json:"ProxyZones,omitnil,omitempty" name:"ProxyZones"`
}
type UpgradeProxyRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// cpu核数
- Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"`
+ Cpu *int64 `json:"Cpu,omitnil,omitempty" name:"Cpu"`
// 内存
- Mem *int64 `json:"Mem,omitempty" name:"Mem"`
+ Mem *int64 `json:"Mem,omitnil,omitempty" name:"Mem"`
// 数据库代理组节点个数
- ProxyCount *int64 `json:"ProxyCount,omitempty" name:"ProxyCount"`
+ ProxyCount *int64 `json:"ProxyCount,omitnil,omitempty" name:"ProxyCount"`
// 数据库代理组ID(已废弃)
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 重新负载均衡:auto(自动),manual(手动)
- ReloadBalance *string `json:"ReloadBalance,omitempty" name:"ReloadBalance"`
+ ReloadBalance *string `json:"ReloadBalance,omitnil,omitempty" name:"ReloadBalance"`
// 升级时间 :no(升级完成时)yes(实例维护时间)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
// 数据库代理节点信息
- ProxyZones []*ProxyZone `json:"ProxyZones,omitempty" name:"ProxyZones"`
+ ProxyZones []*ProxyZone `json:"ProxyZones,omitnil,omitempty" name:"ProxyZones"`
}
func (r *UpgradeProxyRequest) ToJsonString() string {
@@ -12741,13 +16450,13 @@ func (r *UpgradeProxyRequest) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeProxyResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务ID
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type UpgradeProxyResponse struct {
@@ -12769,38 +16478,38 @@ func (r *UpgradeProxyResponse) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeProxyVersionRequestParams struct {
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理当前版本
- SrcProxyVersion *string `json:"SrcProxyVersion,omitempty" name:"SrcProxyVersion"`
+ SrcProxyVersion *string `json:"SrcProxyVersion,omitnil,omitempty" name:"SrcProxyVersion"`
// 数据库代理升级版本
- DstProxyVersion *string `json:"DstProxyVersion,omitempty" name:"DstProxyVersion"`
+ DstProxyVersion *string `json:"DstProxyVersion,omitnil,omitempty" name:"DstProxyVersion"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 升级时间 :no(升级完成时)yes(实例维护时间)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
type UpgradeProxyVersionRequest struct {
*tchttp.BaseRequest
// 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 数据库代理当前版本
- SrcProxyVersion *string `json:"SrcProxyVersion,omitempty" name:"SrcProxyVersion"`
+ SrcProxyVersion *string `json:"SrcProxyVersion,omitnil,omitempty" name:"SrcProxyVersion"`
// 数据库代理升级版本
- DstProxyVersion *string `json:"DstProxyVersion,omitempty" name:"DstProxyVersion"`
+ DstProxyVersion *string `json:"DstProxyVersion,omitnil,omitempty" name:"DstProxyVersion"`
// 数据库代理组ID
- ProxyGroupId *string `json:"ProxyGroupId,omitempty" name:"ProxyGroupId"`
+ ProxyGroupId *string `json:"ProxyGroupId,omitnil,omitempty" name:"ProxyGroupId"`
// 升级时间 :no(升级完成时)yes(实例维护时间)
- IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitempty" name:"IsInMaintainPeriod"`
+ IsInMaintainPeriod *string `json:"IsInMaintainPeriod,omitnil,omitempty" name:"IsInMaintainPeriod"`
}
func (r *UpgradeProxyVersionRequest) ToJsonString() string {
@@ -12829,13 +16538,13 @@ func (r *UpgradeProxyVersionRequest) FromJsonString(s string) error {
// Predefined struct for user
type UpgradeProxyVersionResponseParams struct {
// 异步流程ID
- FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
+ FlowId *int64 `json:"FlowId,omitnil,omitempty" name:"FlowId"`
// 异步任务id
- TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`
+ TaskId *int64 `json:"TaskId,omitnil,omitempty" name:"TaskId"`
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type UpgradeProxyVersionResponse struct {
@@ -12856,24 +16565,28 @@ func (r *UpgradeProxyVersionResponse) FromJsonString(s string) error {
type UserHostPrivilege struct {
// 授权用户
- DbUserName *string `json:"DbUserName,omitempty" name:"DbUserName"`
+ DbUserName *string `json:"DbUserName,omitnil,omitempty" name:"DbUserName"`
// 客户端ip
// 注意:此字段可能返回 null,表示取不到有效值。
- DbHost *string `json:"DbHost,omitempty" name:"DbHost"`
+ DbHost *string `json:"DbHost,omitnil,omitempty" name:"DbHost"`
// 用户权限
// 注意:此字段可能返回 null,表示取不到有效值。
- DbPrivilege *string `json:"DbPrivilege,omitempty" name:"DbPrivilege"`
+ DbPrivilege *string `json:"DbPrivilege,omitnil,omitempty" name:"DbPrivilege"`
}
type ZoneStockInfo struct {
// 可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 是否有库存
- HasStock *bool `json:"HasStock,omitempty" name:"HasStock"`
+ HasStock *bool `json:"HasStock,omitnil,omitempty" name:"HasStock"`
// 库存数量
- StockCount *int64 `json:"StockCount,omitempty" name:"StockCount"`
+ StockCount *int64 `json:"StockCount,omitnil,omitempty" name:"StockCount"`
+
+ // 备可用区库存信息
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SlaveZoneStockInfos []*SlaveZoneStockInfo `json:"SlaveZoneStockInfos,omitnil,omitempty" name:"SlaveZoneStockInfos"`
}
\ No newline at end of file
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 2f7e56cd81..9a8a700fa4 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -1163,7 +1163,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1046
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016
-# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1056
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1058
## explicit; go 1.11
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors
@@ -1183,7 +1183,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp/v20180228
-# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1058
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb/v20190107
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dasb v1.0.970
diff --git a/website/docs/r/cynosdb_cluster.html.markdown b/website/docs/r/cynosdb_cluster.html.markdown
index f00a2ed564..5771148ad6 100644
--- a/website/docs/r/cynosdb_cluster.html.markdown
+++ b/website/docs/r/cynosdb_cluster.html.markdown
@@ -55,7 +55,6 @@ resource "tencentcloud_cynosdb_cluster" "example" {
db_type = "MYSQL"
db_version = "5.7"
port = 3306
- storage_limit = 1000
cluster_name = "tf-example"
password = "cynosDB@123"
instance_maintain_duration = 7200
@@ -91,6 +90,22 @@ resource "tencentcloud_cynosdb_cluster" "example" {
tencentcloud_security_group.example.id,
]
+ instance_init_infos {
+ cpu = 2
+ memory = 4
+ instance_type = "rw"
+ instance_count = 1
+ device_type = "common"
+ }
+
+ instance_init_infos {
+ cpu = 2
+ memory = 4
+ instance_type = "ro"
+ instance_count = 1
+ device_type = "exclusive"
+ }
+
tags = {
createBy = "terraform"
}
@@ -157,7 +172,6 @@ resource "tencentcloud_cynosdb_cluster" "example" {
db_type = "MYSQL"
db_version = "8.0"
port = 3306
- storage_limit = 1000
cluster_name = "tf-example"
password = "cynosDB@123"
instance_maintain_duration = 7200
@@ -208,6 +222,7 @@ The following arguments are supported:
* `db_mode` - (Optional, String) Specify DB mode, only available when `db_type` is `MYSQL`. Values: `NORMAL` (Default), `SERVERLESS`.
* `force_delete` - (Optional, Bool) Indicate whether to delete cluster instance directly or not. Default is false. If set true, the cluster and its `All RELATED INSTANCES` will be deleted instead of staying recycle bin. Note: works for both `PREPAID` and `POSTPAID_BY_HOUR` cluster.
* `instance_cpu_core` - (Optional, Int) The number of CPU cores of read-write type instance in the CynosDB cluster. Required while creating normal cluster. Note: modification of this field will take effect immediately, if want to upgrade on maintenance window, please upgrade from console.
+* `instance_init_infos` - (Optional, List, ForceNew) Instance initialization configuration information, mainly used to select instances of different specifications when purchasing a cluster.
* `instance_maintain_duration` - (Optional, Int) Duration time for maintenance, unit in second. `3600` by default.
* `instance_maintain_start_time` - (Optional, Int) Offset time from 00:00, unit in second. For example, 03:00am should be `10800`. `10800` by default.
* `instance_maintain_weekdays` - (Optional, Set: [`String`]) Weekdays for maintenance. `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` by default.
@@ -229,6 +244,18 @@ The following arguments are supported:
* `storage_pay_mode` - (Optional, Int) Cluster storage billing mode, pay-as-you-go: `0`-yearly/monthly: `1`-The default is pay-as-you-go. When the DbType is MYSQL, when the cluster computing billing mode is post-paid (including DbMode is SERVERLESS), the storage billing mode can only be billing by volume; rollback and cloning do not support yearly subscriptions monthly storage.
* `tags` - (Optional, Map) The tags of the CynosDB cluster.
+The `instance_init_infos` object supports the following:
+
+* `cpu` - (Required, Int, ForceNew) CPU of instance.
+* `instance_count` - (Required, Int, ForceNew) Instance count. Range: [1, 15].
+* `instance_type` - (Required, String, ForceNew) Instance type. Value: `rw`, `ro`.
+* `memory` - (Required, Int, ForceNew) Memory of instance.
+* `device_type` - (Optional, String, ForceNew) Instance machine type. Values: `common`, `exclusive`.
+* `max_ro_count` - (Optional, Int, ForceNew) Maximum number of Serverless instances. Range [1,15].
+* `max_ro_cpu` - (Optional, Float64, ForceNew) Maximum Serverless Instance Specifications.
+* `min_ro_count` - (Optional, Int, ForceNew) Minimum number of Serverless instances. Range [1,15].
+* `min_ro_cpu` - (Optional, Float64, ForceNew) Minimum Serverless Instance Specifications.
+
The `param_items` object supports the following:
* `current_value` - (Required, String) Param expected value to set.