diff --git a/ChangeLog.txt b/ChangeLog.txt index 438a769bdd..37261a1a0d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-11-05 Version: v1.63.48 +- Generated 2015-12-01 for `Dds`. +undefined + 2024-11-04 Version: v1.63.47 - Generated 2020-06-16 for `Alb`. - Support Ipv4LocalAddresses and Ipv6LocalAddresses. diff --git a/services/dds/check_recovery_condition.go b/services/dds/check_recovery_condition.go index 5f0d7931fc..89e7caca26 100644 --- a/services/dds/check_recovery_condition.go +++ b/services/dds/check_recovery_condition.go @@ -72,6 +72,7 @@ func (client *Client) CheckRecoveryConditionWithCallback(request *CheckRecoveryC type CheckRecoveryConditionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EngineVersion string `position:"Query" name:"EngineVersion"` SrcRegion string `position:"Query" name:"SrcRegion"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` DatabaseNames string `position:"Query" name:"DatabaseNames"` diff --git a/services/dds/describe_restore_db_instance_list.go b/services/dds/describe_restore_db_instance_list.go new file mode 100644 index 0000000000..4a13bbd912 --- /dev/null +++ b/services/dds/describe_restore_db_instance_list.go @@ -0,0 +1,110 @@ +package dds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeRestoreDBInstanceList invokes the dds.DescribeRestoreDBInstanceList API synchronously +func (client *Client) DescribeRestoreDBInstanceList(request *DescribeRestoreDBInstanceListRequest) (response *DescribeRestoreDBInstanceListResponse, err error) { + response = CreateDescribeRestoreDBInstanceListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeRestoreDBInstanceListWithChan invokes the dds.DescribeRestoreDBInstanceList API asynchronously +func (client *Client) DescribeRestoreDBInstanceListWithChan(request *DescribeRestoreDBInstanceListRequest) (<-chan *DescribeRestoreDBInstanceListResponse, <-chan error) { + responseChan := make(chan *DescribeRestoreDBInstanceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeRestoreDBInstanceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeRestoreDBInstanceListWithCallback invokes the dds.DescribeRestoreDBInstanceList API asynchronously +func (client *Client) DescribeRestoreDBInstanceListWithCallback(request *DescribeRestoreDBInstanceListRequest, callback func(response *DescribeRestoreDBInstanceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeRestoreDBInstanceListResponse + var err error + defer close(result) + response, err = client.DescribeRestoreDBInstanceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeRestoreDBInstanceListRequest is the request struct for api DescribeRestoreDBInstanceList +type DescribeRestoreDBInstanceListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CreationTimeAfter string `position:"Query" name:"CreationTimeAfter"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DBInstanceId string `position:"Query" name:"DBInstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeRestoreDBInstanceListResponse is the response struct for api DescribeRestoreDBInstanceList +type DescribeRestoreDBInstanceListResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + DBInstances DBInstancesInDescribeRestoreDBInstanceList `json:"DBInstances" xml:"DBInstances"` +} + +// CreateDescribeRestoreDBInstanceListRequest creates a request to invoke DescribeRestoreDBInstanceList API +func CreateDescribeRestoreDBInstanceListRequest() (request *DescribeRestoreDBInstanceListRequest) { + request = &DescribeRestoreDBInstanceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "DescribeRestoreDBInstanceList", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeRestoreDBInstanceListResponse creates a response to parse from DescribeRestoreDBInstanceList response +func CreateDescribeRestoreDBInstanceListResponse() (response *DescribeRestoreDBInstanceListResponse) { + response = &DescribeRestoreDBInstanceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/struct_backup.go b/services/dds/struct_backup.go index 21ad4ce01b..fa58e61b2f 100644 --- a/services/dds/struct_backup.go +++ b/services/dds/struct_backup.go @@ -21,6 +21,7 @@ type Backup struct { BackupName string `json:"BackupName" xml:"BackupName"` BackupMode string `json:"BackupMode" xml:"BackupMode"` BackupIntranetDownloadURL string `json:"BackupIntranetDownloadURL" xml:"BackupIntranetDownloadURL"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` BackupEndTime string `json:"BackupEndTime" xml:"BackupEndTime"` BackupDBNames string `json:"BackupDBNames" xml:"BackupDBNames"` BackupMethod string `json:"BackupMethod" xml:"BackupMethod"` diff --git a/services/dds/struct_cluster_backup.go b/services/dds/struct_cluster_backup.go index ed2bccd3ae..d5bb6732a5 100644 --- a/services/dds/struct_cluster_backup.go +++ b/services/dds/struct_cluster_backup.go @@ -26,6 +26,7 @@ type ClusterBackup struct { ClusterBackupMode string `json:"ClusterBackupMode" xml:"ClusterBackupMode"` Progress string `json:"Progress" xml:"Progress"` AttachLogStatus string `json:"AttachLogStatus" xml:"AttachLogStatus"` + EngineVersion string `json:"EngineVersion" xml:"EngineVersion"` ExtraInfo ExtraInfo `json:"ExtraInfo" xml:"ExtraInfo"` Backups []BackupInDescribeClusterBackups `json:"Backups" xml:"Backups"` } diff --git a/services/dds/struct_configserver_attribute.go b/services/dds/struct_configserver_attribute.go index 001b03df44..4cc687d86b 100644 --- a/services/dds/struct_configserver_attribute.go +++ b/services/dds/struct_configserver_attribute.go @@ -17,14 +17,15 @@ package dds // ConfigserverAttribute is a nested struct in dds response type ConfigserverAttribute struct { - MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` - LockMode string `json:"LockMode" xml:"LockMode"` - ConnectString string `json:"ConnectString" xml:"ConnectString"` - NodeClass string `json:"NodeClass" xml:"NodeClass"` - MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - Port int `json:"Port" xml:"Port"` - NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` - NodeId string `json:"NodeId" xml:"NodeId"` - NodeStorage int `json:"NodeStorage" xml:"NodeStorage"` - Status string `json:"Status" xml:"Status"` + MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` + LockMode string `json:"LockMode" xml:"LockMode"` + ConnectString string `json:"ConnectString" xml:"ConnectString"` + NodeClass string `json:"NodeClass" xml:"NodeClass"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + Port int `json:"Port" xml:"Port"` + NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` + NodeId string `json:"NodeId" xml:"NodeId"` + NodeStorage int `json:"NodeStorage" xml:"NodeStorage"` + Status string `json:"Status" xml:"Status"` + CurrentKernelVersion string `json:"CurrentKernelVersion" xml:"CurrentKernelVersion"` } diff --git a/services/dds/struct_db_instance.go b/services/dds/struct_db_instance.go index 426ce82d55..e9f71cfc86 100644 --- a/services/dds/struct_db_instance.go +++ b/services/dds/struct_db_instance.go @@ -49,6 +49,7 @@ type DBInstance struct { ZoneId string `json:"ZoneId" xml:"ZoneId"` ReleaseTime string `json:"ReleaseTime" xml:"ReleaseTime"` MaxMBPS int `json:"MaxMBPS" xml:"MaxMBPS"` + IsDeleted int `json:"IsDeleted" xml:"IsDeleted"` PaymentType string `json:"PaymentType" xml:"PaymentType"` LockMode string `json:"LockMode" xml:"LockMode"` DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"` diff --git a/services/dds/struct_db_instances_in_describe_restore_db_instance_list.go b/services/dds/struct_db_instances_in_describe_restore_db_instance_list.go new file mode 100644 index 0000000000..6a2d299639 --- /dev/null +++ b/services/dds/struct_db_instances_in_describe_restore_db_instance_list.go @@ -0,0 +1,21 @@ +package dds + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DBInstancesInDescribeRestoreDBInstanceList is a nested struct in dds response +type DBInstancesInDescribeRestoreDBInstanceList struct { + DBInstance []DBInstance `json:"DBInstance" xml:"DBInstance"` +} diff --git a/services/dds/struct_mongos_attribute.go b/services/dds/struct_mongos_attribute.go index 5cd9132351..6a7670b20f 100644 --- a/services/dds/struct_mongos_attribute.go +++ b/services/dds/struct_mongos_attribute.go @@ -17,16 +17,17 @@ package dds // MongosAttribute is a nested struct in dds response type MongosAttribute struct { - MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` - Port int `json:"Port" xml:"Port"` - NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` - NodeId string `json:"NodeId" xml:"NodeId"` - MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - VPCId string `json:"VPCId" xml:"VPCId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - ConnectSting string `json:"ConnectSting" xml:"ConnectSting"` - Status string `json:"Status" xml:"Status"` - NodeClass string `json:"NodeClass" xml:"NodeClass"` - VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` - LockMode string `json:"LockMode" xml:"LockMode"` + MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` + Port int `json:"Port" xml:"Port"` + NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` + VPCId string `json:"VPCId" xml:"VPCId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ConnectSting string `json:"ConnectSting" xml:"ConnectSting"` + VpcCloudInstanceId string `json:"VpcCloudInstanceId" xml:"VpcCloudInstanceId"` + NodeId string `json:"NodeId" xml:"NodeId"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + CurrentKernelVersion string `json:"CurrentKernelVersion" xml:"CurrentKernelVersion"` + Status string `json:"Status" xml:"Status"` + NodeClass string `json:"NodeClass" xml:"NodeClass"` + LockMode string `json:"LockMode" xml:"LockMode"` } diff --git a/services/dds/struct_network_address.go b/services/dds/struct_network_address.go index bc06b02a84..25975b9c4d 100644 --- a/services/dds/struct_network_address.go +++ b/services/dds/struct_network_address.go @@ -17,15 +17,17 @@ package dds // NetworkAddress is a nested struct in dds response type NetworkAddress struct { - NodeId string `json:"NodeId" xml:"NodeId"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - Role string `json:"Role" xml:"Role"` VPCId string `json:"VPCId" xml:"VPCId"` Port string `json:"Port" xml:"Port"` VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + IPAddress string `json:"IPAddress" xml:"IPAddress"` + ConnectionType string `json:"ConnectionType" xml:"ConnectionType"` + NodeId string `json:"NodeId" xml:"NodeId"` + TxtRecord string `json:"TxtRecord" xml:"TxtRecord"` + Role string `json:"Role" xml:"Role"` VswitchId string `json:"VswitchId" xml:"VswitchId"` NetworkType string `json:"NetworkType" xml:"NetworkType"` - IPAddress string `json:"IPAddress" xml:"IPAddress"` NodeType string `json:"NodeType" xml:"NodeType"` NetworkAddress string `json:"NetworkAddress" xml:"NetworkAddress"` } diff --git a/services/dds/struct_replica_set.go b/services/dds/struct_replica_set.go index 07d7c1f65b..9a4d0f726f 100644 --- a/services/dds/struct_replica_set.go +++ b/services/dds/struct_replica_set.go @@ -26,4 +26,5 @@ type ReplicaSet struct { ReplicaSetRole string `json:"ReplicaSetRole" xml:"ReplicaSetRole"` ConnectionDomain string `json:"ConnectionDomain" xml:"ConnectionDomain"` NetworkType string `json:"NetworkType" xml:"NetworkType"` + ConnectionType string `json:"ConnectionType" xml:"ConnectionType"` } diff --git a/services/dds/struct_shard_attribute.go b/services/dds/struct_shard_attribute.go index 32feae18e2..1acc5d64a3 100644 --- a/services/dds/struct_shard_attribute.go +++ b/services/dds/struct_shard_attribute.go @@ -17,16 +17,17 @@ package dds // ShardAttribute is a nested struct in dds response type ShardAttribute struct { - MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` - MaxDiskMbps string `json:"MaxDiskMbps" xml:"MaxDiskMbps"` - Port int `json:"Port" xml:"Port"` - NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` - NodeId string `json:"NodeId" xml:"NodeId"` - MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - NodeStorage int `json:"NodeStorage" xml:"NodeStorage"` - Status string `json:"Status" xml:"Status"` - NodeClass string `json:"NodeClass" xml:"NodeClass"` - ConnectString string `json:"ConnectString" xml:"ConnectString"` - LockMode string `json:"LockMode" xml:"LockMode"` - ReadonlyReplicas int `json:"ReadonlyReplicas" xml:"ReadonlyReplicas"` + MaxIOPS int `json:"MaxIOPS" xml:"MaxIOPS"` + MaxDiskMbps string `json:"MaxDiskMbps" xml:"MaxDiskMbps"` + Port int `json:"Port" xml:"Port"` + NodeDescription string `json:"NodeDescription" xml:"NodeDescription"` + NodeStorage int `json:"NodeStorage" xml:"NodeStorage"` + ReadonlyReplicas int `json:"ReadonlyReplicas" xml:"ReadonlyReplicas"` + NodeId string `json:"NodeId" xml:"NodeId"` + MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` + CurrentKernelVersion string `json:"CurrentKernelVersion" xml:"CurrentKernelVersion"` + Status string `json:"Status" xml:"Status"` + NodeClass string `json:"NodeClass" xml:"NodeClass"` + ConnectString string `json:"ConnectString" xml:"ConnectString"` + LockMode string `json:"LockMode" xml:"LockMode"` } diff --git a/services/dds/upgrade_db_instance_engine_version.go b/services/dds/upgrade_db_instance_engine_version.go index cd30adc77f..ccfcb962b2 100644 --- a/services/dds/upgrade_db_instance_engine_version.go +++ b/services/dds/upgrade_db_instance_engine_version.go @@ -73,6 +73,7 @@ type UpgradeDBInstanceEngineVersionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` EngineVersion string `position:"Query" name:"EngineVersion"` + SwitchMode requests.Integer `position:"Query" name:"SwitchMode"` DBInstanceId string `position:"Query" name:"DBInstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/dds/upgrade_db_instance_kernel_version.go b/services/dds/upgrade_db_instance_kernel_version.go index b2f27052db..a714a0f96e 100644 --- a/services/dds/upgrade_db_instance_kernel_version.go +++ b/services/dds/upgrade_db_instance_kernel_version.go @@ -72,6 +72,7 @@ func (client *Client) UpgradeDBInstanceKernelVersionWithCallback(request *Upgrad type UpgradeDBInstanceKernelVersionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SwitchMode string `position:"Query" name:"SwitchMode"` DBInstanceId string `position:"Query" name:"DBInstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"`