From 94d9a43e89007761ee053bfb6bc345067f5992f6 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 31 Mar 2023 13:52:16 +0000 Subject: [PATCH] Generated 2015-12-01 for Dds. --- ChangeLog.txt | 4 + services/dds/create_db_instance.go | 71 ++++++------ .../dds/create_global_security_ip_group.go | 109 ++++++++++++++++++ services/dds/create_sharding_db_instance.go | 59 +++++----- .../dds/delete_global_security_ip_group.go | 106 +++++++++++++++++ .../dds/describe_global_security_ip_group.go | 106 +++++++++++++++++ ...cribe_global_security_ip_group_relation.go | 107 +++++++++++++++++ .../modify_db_instance_connection_string.go | 1 + .../dds/modify_global_security_ip_group.go | 109 ++++++++++++++++++ .../modify_global_security_ip_group_name.go | 107 +++++++++++++++++ ...odify_global_security_ip_group_relation.go | 106 +++++++++++++++++ services/dds/reset_account_password.go | 1 + ...es_in_describe_global_security_ip_group.go | 21 ++++ ...roup_in_create_global_security_ip_group.go | 21 ++++ ...up_in_describe_global_security_ip_group.go | 21 ++++ ...in_modify_global_security_ip_group_name.go | 21 ++++ .../struct_global_security_ip_group_item.go | 27 +++++ .../struct_global_security_ip_group_rel.go | 21 ++++ ...truct_global_security_ip_group_rel_item.go | 25 ++++ services/dds/struct_parameter.go | 1 + 20 files changed, 980 insertions(+), 64 deletions(-) create mode 100644 services/dds/create_global_security_ip_group.go create mode 100644 services/dds/delete_global_security_ip_group.go create mode 100644 services/dds/describe_global_security_ip_group.go create mode 100644 services/dds/describe_global_security_ip_group_relation.go create mode 100644 services/dds/modify_global_security_ip_group.go create mode 100644 services/dds/modify_global_security_ip_group_name.go create mode 100644 services/dds/modify_global_security_ip_group_relation.go create mode 100644 services/dds/struct_db_instances_in_describe_global_security_ip_group.go create mode 100644 services/dds/struct_global_security_ip_group_in_create_global_security_ip_group.go create mode 100644 services/dds/struct_global_security_ip_group_in_describe_global_security_ip_group.go create mode 100644 services/dds/struct_global_security_ip_group_in_modify_global_security_ip_group_name.go create mode 100644 services/dds/struct_global_security_ip_group_item.go create mode 100644 services/dds/struct_global_security_ip_group_rel.go create mode 100644 services/dds/struct_global_security_ip_group_rel_item.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 9d0ae53c75..b0b7275a15 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-03-31 Version: v1.62.266 +- Generated 2015-12-01 for `Dds`. +- Update by SDK platform. + 2023-03-31 Version: v1.62.265 - Generated 2020-05-18 for `dataworks-public`. diff --git a/services/dds/create_db_instance.go b/services/dds/create_db_instance.go index bd5df871bd..4d02e52d62 100644 --- a/services/dds/create_db_instance.go +++ b/services/dds/create_db_instance.go @@ -71,41 +71,42 @@ func (client *Client) CreateDBInstanceWithCallback(request *CreateDBInstanceRequ // CreateDBInstanceRequest is the request struct for api CreateDBInstance type CreateDBInstanceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` - SecondaryZoneId string `position:"Query" name:"SecondaryZoneId"` - CouponNo string `position:"Query" name:"CouponNo"` - EngineVersion string `position:"Query" name:"EngineVersion"` - NetworkType string `position:"Query" name:"NetworkType"` - StorageType string `position:"Query" name:"StorageType"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` - Tag *[]CreateDBInstanceTag `position:"Query" name:"Tag" type:"Repeated"` - BusinessInfo string `position:"Query" name:"BusinessInfo"` - Period requests.Integer `position:"Query" name:"Period"` - BackupId string `position:"Query" name:"BackupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DBInstanceClass string `position:"Query" name:"DBInstanceClass"` - SecurityIPList string `position:"Query" name:"SecurityIPList"` - VSwitchId string `position:"Query" name:"VSwitchId"` - AutoRenew string `position:"Query" name:"AutoRenew"` - ZoneId string `position:"Query" name:"ZoneId"` - ClientToken string `position:"Query" name:"ClientToken"` - ReadonlyReplicas string `position:"Query" name:"ReadonlyReplicas"` - ReplicationFactor string `position:"Query" name:"ReplicationFactor"` - StorageEngine string `position:"Query" name:"StorageEngine"` - DatabaseNames string `position:"Query" name:"DatabaseNames"` - Engine string `position:"Query" name:"Engine"` - HiddenZoneId string `position:"Query" name:"HiddenZoneId"` - RestoreTime string `position:"Query" name:"RestoreTime"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - SrcDBInstanceId string `position:"Query" name:"SrcDBInstanceId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - ClusterId string `position:"Query" name:"ClusterId"` - AccountPassword string `position:"Query" name:"AccountPassword"` - VpcId string `position:"Query" name:"VpcId"` - ChargeType string `position:"Query" name:"ChargeType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DBInstanceStorage requests.Integer `position:"Query" name:"DBInstanceStorage"` + SecondaryZoneId string `position:"Query" name:"SecondaryZoneId"` + CouponNo string `position:"Query" name:"CouponNo"` + EngineVersion string `position:"Query" name:"EngineVersion"` + NetworkType string `position:"Query" name:"NetworkType"` + StorageType string `position:"Query" name:"StorageType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + Tag *[]CreateDBInstanceTag `position:"Query" name:"Tag" type:"Repeated"` + GlobalSecurityGroupIds string `position:"Query" name:"GlobalSecurityGroupIds"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` + Period requests.Integer `position:"Query" name:"Period"` + BackupId string `position:"Query" name:"BackupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DBInstanceClass string `position:"Query" name:"DBInstanceClass"` + SecurityIPList string `position:"Query" name:"SecurityIPList"` + VSwitchId string `position:"Query" name:"VSwitchId"` + AutoRenew string `position:"Query" name:"AutoRenew"` + ZoneId string `position:"Query" name:"ZoneId"` + ClientToken string `position:"Query" name:"ClientToken"` + ReadonlyReplicas string `position:"Query" name:"ReadonlyReplicas"` + ReplicationFactor string `position:"Query" name:"ReplicationFactor"` + StorageEngine string `position:"Query" name:"StorageEngine"` + DatabaseNames string `position:"Query" name:"DatabaseNames"` + Engine string `position:"Query" name:"Engine"` + HiddenZoneId string `position:"Query" name:"HiddenZoneId"` + RestoreTime string `position:"Query" name:"RestoreTime"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SrcDBInstanceId string `position:"Query" name:"SrcDBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ClusterId string `position:"Query" name:"ClusterId"` + AccountPassword string `position:"Query" name:"AccountPassword"` + VpcId string `position:"Query" name:"VpcId"` + ChargeType string `position:"Query" name:"ChargeType"` } // CreateDBInstanceTag is a repeated param struct in CreateDBInstanceRequest diff --git a/services/dds/create_global_security_ip_group.go b/services/dds/create_global_security_ip_group.go new file mode 100644 index 0000000000..82d8ca3883 --- /dev/null +++ b/services/dds/create_global_security_ip_group.go @@ -0,0 +1,109 @@ +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" +) + +// CreateGlobalSecurityIPGroup invokes the dds.CreateGlobalSecurityIPGroup API synchronously +func (client *Client) CreateGlobalSecurityIPGroup(request *CreateGlobalSecurityIPGroupRequest) (response *CreateGlobalSecurityIPGroupResponse, err error) { + response = CreateCreateGlobalSecurityIPGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateGlobalSecurityIPGroupWithChan invokes the dds.CreateGlobalSecurityIPGroup API asynchronously +func (client *Client) CreateGlobalSecurityIPGroupWithChan(request *CreateGlobalSecurityIPGroupRequest) (<-chan *CreateGlobalSecurityIPGroupResponse, <-chan error) { + responseChan := make(chan *CreateGlobalSecurityIPGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGlobalSecurityIPGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGlobalSecurityIPGroupWithCallback invokes the dds.CreateGlobalSecurityIPGroup API asynchronously +func (client *Client) CreateGlobalSecurityIPGroupWithCallback(request *CreateGlobalSecurityIPGroupRequest, callback func(response *CreateGlobalSecurityIPGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGlobalSecurityIPGroupResponse + var err error + defer close(result) + response, err = client.CreateGlobalSecurityIPGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGlobalSecurityIPGroupRequest is the request struct for api CreateGlobalSecurityIPGroup +type CreateGlobalSecurityIPGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GIpList string `position:"Query" name:"GIpList"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + SecurityIPType string `position:"Query" name:"SecurityIPType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + WhitelistNetType string `position:"Query" name:"WhitelistNetType"` + GlobalIgName string `position:"Query" name:"GlobalIgName"` +} + +// CreateGlobalSecurityIPGroupResponse is the response struct for api CreateGlobalSecurityIPGroup +type CreateGlobalSecurityIPGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalSecurityIPGroup []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} + +// CreateCreateGlobalSecurityIPGroupRequest creates a request to invoke CreateGlobalSecurityIPGroup API +func CreateCreateGlobalSecurityIPGroupRequest() (request *CreateGlobalSecurityIPGroupRequest) { + request = &CreateGlobalSecurityIPGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "CreateGlobalSecurityIPGroup", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateGlobalSecurityIPGroupResponse creates a response to parse from CreateGlobalSecurityIPGroup response +func CreateCreateGlobalSecurityIPGroupResponse() (response *CreateGlobalSecurityIPGroupResponse) { + response = &CreateGlobalSecurityIPGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/create_sharding_db_instance.go b/services/dds/create_sharding_db_instance.go index 6ae86337a3..77f5bbece5 100644 --- a/services/dds/create_sharding_db_instance.go +++ b/services/dds/create_sharding_db_instance.go @@ -71,35 +71,36 @@ func (client *Client) CreateShardingDBInstanceWithCallback(request *CreateShardi // CreateShardingDBInstanceRequest is the request struct for api CreateShardingDBInstance type CreateShardingDBInstanceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecondaryZoneId string `position:"Query" name:"SecondaryZoneId"` - EngineVersion string `position:"Query" name:"EngineVersion"` - NetworkType string `position:"Query" name:"NetworkType"` - ReplicaSet *[]CreateShardingDBInstanceReplicaSet `position:"Query" name:"ReplicaSet" type:"Repeated"` - StorageType string `position:"Query" name:"StorageType"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` - Period requests.Integer `position:"Query" name:"Period"` - ConfigServer *[]CreateShardingDBInstanceConfigServer `position:"Query" name:"ConfigServer" type:"Repeated"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityIPList string `position:"Query" name:"SecurityIPList"` - VSwitchId string `position:"Query" name:"VSwitchId"` - Mongos *[]CreateShardingDBInstanceMongos `position:"Query" name:"Mongos" type:"Repeated"` - AutoRenew string `position:"Query" name:"AutoRenew"` - ZoneId string `position:"Query" name:"ZoneId"` - ClientToken string `position:"Query" name:"ClientToken"` - StorageEngine string `position:"Query" name:"StorageEngine"` - Engine string `position:"Query" name:"Engine"` - HiddenZoneId string `position:"Query" name:"HiddenZoneId"` - RestoreTime string `position:"Query" name:"RestoreTime"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - SrcDBInstanceId string `position:"Query" name:"SrcDBInstanceId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AccountPassword string `position:"Query" name:"AccountPassword"` - VpcId string `position:"Query" name:"VpcId"` - ProtocolType string `position:"Query" name:"ProtocolType"` - ChargeType string `position:"Query" name:"ChargeType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecondaryZoneId string `position:"Query" name:"SecondaryZoneId"` + EngineVersion string `position:"Query" name:"EngineVersion"` + NetworkType string `position:"Query" name:"NetworkType"` + ReplicaSet *[]CreateShardingDBInstanceReplicaSet `position:"Query" name:"ReplicaSet" type:"Repeated"` + StorageType string `position:"Query" name:"StorageType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + DBInstanceDescription string `position:"Query" name:"DBInstanceDescription"` + GlobalSecurityGroupIds string `position:"Query" name:"GlobalSecurityGroupIds"` + Period requests.Integer `position:"Query" name:"Period"` + ConfigServer *[]CreateShardingDBInstanceConfigServer `position:"Query" name:"ConfigServer" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityIPList string `position:"Query" name:"SecurityIPList"` + VSwitchId string `position:"Query" name:"VSwitchId"` + Mongos *[]CreateShardingDBInstanceMongos `position:"Query" name:"Mongos" type:"Repeated"` + AutoRenew string `position:"Query" name:"AutoRenew"` + ZoneId string `position:"Query" name:"ZoneId"` + ClientToken string `position:"Query" name:"ClientToken"` + StorageEngine string `position:"Query" name:"StorageEngine"` + Engine string `position:"Query" name:"Engine"` + HiddenZoneId string `position:"Query" name:"HiddenZoneId"` + RestoreTime string `position:"Query" name:"RestoreTime"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SrcDBInstanceId string `position:"Query" name:"SrcDBInstanceId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AccountPassword string `position:"Query" name:"AccountPassword"` + VpcId string `position:"Query" name:"VpcId"` + ProtocolType string `position:"Query" name:"ProtocolType"` + ChargeType string `position:"Query" name:"ChargeType"` } // CreateShardingDBInstanceReplicaSet is a repeated param struct in CreateShardingDBInstanceRequest diff --git a/services/dds/delete_global_security_ip_group.go b/services/dds/delete_global_security_ip_group.go new file mode 100644 index 0000000000..7d32afc341 --- /dev/null +++ b/services/dds/delete_global_security_ip_group.go @@ -0,0 +1,106 @@ +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" +) + +// DeleteGlobalSecurityIPGroup invokes the dds.DeleteGlobalSecurityIPGroup API synchronously +func (client *Client) DeleteGlobalSecurityIPGroup(request *DeleteGlobalSecurityIPGroupRequest) (response *DeleteGlobalSecurityIPGroupResponse, err error) { + response = CreateDeleteGlobalSecurityIPGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGlobalSecurityIPGroupWithChan invokes the dds.DeleteGlobalSecurityIPGroup API asynchronously +func (client *Client) DeleteGlobalSecurityIPGroupWithChan(request *DeleteGlobalSecurityIPGroupRequest) (<-chan *DeleteGlobalSecurityIPGroupResponse, <-chan error) { + responseChan := make(chan *DeleteGlobalSecurityIPGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGlobalSecurityIPGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGlobalSecurityIPGroupWithCallback invokes the dds.DeleteGlobalSecurityIPGroup API asynchronously +func (client *Client) DeleteGlobalSecurityIPGroupWithCallback(request *DeleteGlobalSecurityIPGroupRequest, callback func(response *DeleteGlobalSecurityIPGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGlobalSecurityIPGroupResponse + var err error + defer close(result) + response, err = client.DeleteGlobalSecurityIPGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGlobalSecurityIPGroupRequest is the request struct for api DeleteGlobalSecurityIPGroup +type DeleteGlobalSecurityIPGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + GlobalSecurityGroupId string `position:"Query" name:"GlobalSecurityGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + GlobalIgName string `position:"Query" name:"GlobalIgName"` +} + +// DeleteGlobalSecurityIPGroupResponse is the response struct for api DeleteGlobalSecurityIPGroup +type DeleteGlobalSecurityIPGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteGlobalSecurityIPGroupRequest creates a request to invoke DeleteGlobalSecurityIPGroup API +func CreateDeleteGlobalSecurityIPGroupRequest() (request *DeleteGlobalSecurityIPGroupRequest) { + request = &DeleteGlobalSecurityIPGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "DeleteGlobalSecurityIPGroup", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteGlobalSecurityIPGroupResponse creates a response to parse from DeleteGlobalSecurityIPGroup response +func CreateDeleteGlobalSecurityIPGroupResponse() (response *DeleteGlobalSecurityIPGroupResponse) { + response = &DeleteGlobalSecurityIPGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/describe_global_security_ip_group.go b/services/dds/describe_global_security_ip_group.go new file mode 100644 index 0000000000..207cc71234 --- /dev/null +++ b/services/dds/describe_global_security_ip_group.go @@ -0,0 +1,106 @@ +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" +) + +// DescribeGlobalSecurityIPGroup invokes the dds.DescribeGlobalSecurityIPGroup API synchronously +func (client *Client) DescribeGlobalSecurityIPGroup(request *DescribeGlobalSecurityIPGroupRequest) (response *DescribeGlobalSecurityIPGroupResponse, err error) { + response = CreateDescribeGlobalSecurityIPGroupResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGlobalSecurityIPGroupWithChan invokes the dds.DescribeGlobalSecurityIPGroup API asynchronously +func (client *Client) DescribeGlobalSecurityIPGroupWithChan(request *DescribeGlobalSecurityIPGroupRequest) (<-chan *DescribeGlobalSecurityIPGroupResponse, <-chan error) { + responseChan := make(chan *DescribeGlobalSecurityIPGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGlobalSecurityIPGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGlobalSecurityIPGroupWithCallback invokes the dds.DescribeGlobalSecurityIPGroup API asynchronously +func (client *Client) DescribeGlobalSecurityIPGroupWithCallback(request *DescribeGlobalSecurityIPGroupRequest, callback func(response *DescribeGlobalSecurityIPGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGlobalSecurityIPGroupResponse + var err error + defer close(result) + response, err = client.DescribeGlobalSecurityIPGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGlobalSecurityIPGroupRequest is the request struct for api DescribeGlobalSecurityIPGroup +type DescribeGlobalSecurityIPGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + GlobalSecurityGroupId string `position:"Query" name:"GlobalSecurityGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeGlobalSecurityIPGroupResponse is the response struct for api DescribeGlobalSecurityIPGroup +type DescribeGlobalSecurityIPGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalSecurityIPGroup []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} + +// CreateDescribeGlobalSecurityIPGroupRequest creates a request to invoke DescribeGlobalSecurityIPGroup API +func CreateDescribeGlobalSecurityIPGroupRequest() (request *DescribeGlobalSecurityIPGroupRequest) { + request = &DescribeGlobalSecurityIPGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "DescribeGlobalSecurityIPGroup", "dds", "openAPI") + request.Method = requests.GET + return +} + +// CreateDescribeGlobalSecurityIPGroupResponse creates a response to parse from DescribeGlobalSecurityIPGroup response +func CreateDescribeGlobalSecurityIPGroupResponse() (response *DescribeGlobalSecurityIPGroupResponse) { + response = &DescribeGlobalSecurityIPGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/describe_global_security_ip_group_relation.go b/services/dds/describe_global_security_ip_group_relation.go new file mode 100644 index 0000000000..8b2638eba3 --- /dev/null +++ b/services/dds/describe_global_security_ip_group_relation.go @@ -0,0 +1,107 @@ +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" +) + +// DescribeGlobalSecurityIPGroupRelation invokes the dds.DescribeGlobalSecurityIPGroupRelation API synchronously +func (client *Client) DescribeGlobalSecurityIPGroupRelation(request *DescribeGlobalSecurityIPGroupRelationRequest) (response *DescribeGlobalSecurityIPGroupRelationResponse, err error) { + response = CreateDescribeGlobalSecurityIPGroupRelationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGlobalSecurityIPGroupRelationWithChan invokes the dds.DescribeGlobalSecurityIPGroupRelation API asynchronously +func (client *Client) DescribeGlobalSecurityIPGroupRelationWithChan(request *DescribeGlobalSecurityIPGroupRelationRequest) (<-chan *DescribeGlobalSecurityIPGroupRelationResponse, <-chan error) { + responseChan := make(chan *DescribeGlobalSecurityIPGroupRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGlobalSecurityIPGroupRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGlobalSecurityIPGroupRelationWithCallback invokes the dds.DescribeGlobalSecurityIPGroupRelation API asynchronously +func (client *Client) DescribeGlobalSecurityIPGroupRelationWithCallback(request *DescribeGlobalSecurityIPGroupRelationRequest, callback func(response *DescribeGlobalSecurityIPGroupRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGlobalSecurityIPGroupRelationResponse + var err error + defer close(result) + response, err = client.DescribeGlobalSecurityIPGroupRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGlobalSecurityIPGroupRelationRequest is the request struct for api DescribeGlobalSecurityIPGroupRelation +type DescribeGlobalSecurityIPGroupRelationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DBClusterId string `position:"Query" name:"DBClusterId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeGlobalSecurityIPGroupRelationResponse is the response struct for api DescribeGlobalSecurityIPGroupRelation +type DescribeGlobalSecurityIPGroupRelationResponse struct { + *responses.BaseResponse + DBClusterId string `json:"DBClusterId" xml:"DBClusterId"` + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalSecurityIPGroupRel []GlobalSecurityIPGroupRelItem `json:"GlobalSecurityIPGroupRel" xml:"GlobalSecurityIPGroupRel"` +} + +// CreateDescribeGlobalSecurityIPGroupRelationRequest creates a request to invoke DescribeGlobalSecurityIPGroupRelation API +func CreateDescribeGlobalSecurityIPGroupRelationRequest() (request *DescribeGlobalSecurityIPGroupRelationRequest) { + request = &DescribeGlobalSecurityIPGroupRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "DescribeGlobalSecurityIPGroupRelation", "dds", "openAPI") + request.Method = requests.GET + return +} + +// CreateDescribeGlobalSecurityIPGroupRelationResponse creates a response to parse from DescribeGlobalSecurityIPGroupRelation response +func CreateDescribeGlobalSecurityIPGroupRelationResponse() (response *DescribeGlobalSecurityIPGroupRelationResponse) { + response = &DescribeGlobalSecurityIPGroupRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/modify_db_instance_connection_string.go b/services/dds/modify_db_instance_connection_string.go index 3849fb0ec0..d1e7c5a75d 100644 --- a/services/dds/modify_db_instance_connection_string.go +++ b/services/dds/modify_db_instance_connection_string.go @@ -77,6 +77,7 @@ type ModifyDBInstanceConnectionStringRequest struct { NodeId string `position:"Query" name:"NodeId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + NewPort requests.Integer `position:"Query" name:"NewPort"` NewConnectionString string `position:"Query" name:"NewConnectionString"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` CurrentConnectionString string `position:"Query" name:"CurrentConnectionString"` diff --git a/services/dds/modify_global_security_ip_group.go b/services/dds/modify_global_security_ip_group.go new file mode 100644 index 0000000000..2f34937b7b --- /dev/null +++ b/services/dds/modify_global_security_ip_group.go @@ -0,0 +1,109 @@ +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" +) + +// ModifyGlobalSecurityIPGroup invokes the dds.ModifyGlobalSecurityIPGroup API synchronously +func (client *Client) ModifyGlobalSecurityIPGroup(request *ModifyGlobalSecurityIPGroupRequest) (response *ModifyGlobalSecurityIPGroupResponse, err error) { + response = CreateModifyGlobalSecurityIPGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGlobalSecurityIPGroupWithChan invokes the dds.ModifyGlobalSecurityIPGroup API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupWithChan(request *ModifyGlobalSecurityIPGroupRequest) (<-chan *ModifyGlobalSecurityIPGroupResponse, <-chan error) { + responseChan := make(chan *ModifyGlobalSecurityIPGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGlobalSecurityIPGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGlobalSecurityIPGroupWithCallback invokes the dds.ModifyGlobalSecurityIPGroup API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupWithCallback(request *ModifyGlobalSecurityIPGroupRequest, callback func(response *ModifyGlobalSecurityIPGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGlobalSecurityIPGroupResponse + var err error + defer close(result) + response, err = client.ModifyGlobalSecurityIPGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGlobalSecurityIPGroupRequest is the request struct for api ModifyGlobalSecurityIPGroup +type ModifyGlobalSecurityIPGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + GIpList string `position:"Query" name:"GIpList"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + GlobalSecurityGroupId string `position:"Query" name:"GlobalSecurityGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + SecurityIPType string `position:"Query" name:"SecurityIPType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + WhitelistNetType string `position:"Query" name:"WhitelistNetType"` + GlobalIgName string `position:"Query" name:"GlobalIgName"` +} + +// ModifyGlobalSecurityIPGroupResponse is the response struct for api ModifyGlobalSecurityIPGroup +type ModifyGlobalSecurityIPGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGlobalSecurityIPGroupRequest creates a request to invoke ModifyGlobalSecurityIPGroup API +func CreateModifyGlobalSecurityIPGroupRequest() (request *ModifyGlobalSecurityIPGroupRequest) { + request = &ModifyGlobalSecurityIPGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "ModifyGlobalSecurityIPGroup", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyGlobalSecurityIPGroupResponse creates a response to parse from ModifyGlobalSecurityIPGroup response +func CreateModifyGlobalSecurityIPGroupResponse() (response *ModifyGlobalSecurityIPGroupResponse) { + response = &ModifyGlobalSecurityIPGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/modify_global_security_ip_group_name.go b/services/dds/modify_global_security_ip_group_name.go new file mode 100644 index 0000000000..4ac838756f --- /dev/null +++ b/services/dds/modify_global_security_ip_group_name.go @@ -0,0 +1,107 @@ +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" +) + +// ModifyGlobalSecurityIPGroupName invokes the dds.ModifyGlobalSecurityIPGroupName API synchronously +func (client *Client) ModifyGlobalSecurityIPGroupName(request *ModifyGlobalSecurityIPGroupNameRequest) (response *ModifyGlobalSecurityIPGroupNameResponse, err error) { + response = CreateModifyGlobalSecurityIPGroupNameResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGlobalSecurityIPGroupNameWithChan invokes the dds.ModifyGlobalSecurityIPGroupName API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupNameWithChan(request *ModifyGlobalSecurityIPGroupNameRequest) (<-chan *ModifyGlobalSecurityIPGroupNameResponse, <-chan error) { + responseChan := make(chan *ModifyGlobalSecurityIPGroupNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGlobalSecurityIPGroupName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGlobalSecurityIPGroupNameWithCallback invokes the dds.ModifyGlobalSecurityIPGroupName API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupNameWithCallback(request *ModifyGlobalSecurityIPGroupNameRequest, callback func(response *ModifyGlobalSecurityIPGroupNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGlobalSecurityIPGroupNameResponse + var err error + defer close(result) + response, err = client.ModifyGlobalSecurityIPGroupName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGlobalSecurityIPGroupNameRequest is the request struct for api ModifyGlobalSecurityIPGroupName +type ModifyGlobalSecurityIPGroupNameRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + GlobalSecurityGroupId string `position:"Query" name:"GlobalSecurityGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + GlobalIgName string `position:"Query" name:"GlobalIgName"` +} + +// ModifyGlobalSecurityIPGroupNameResponse is the response struct for api ModifyGlobalSecurityIPGroupName +type ModifyGlobalSecurityIPGroupNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + GlobalSecurityIPGroup []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} + +// CreateModifyGlobalSecurityIPGroupNameRequest creates a request to invoke ModifyGlobalSecurityIPGroupName API +func CreateModifyGlobalSecurityIPGroupNameRequest() (request *ModifyGlobalSecurityIPGroupNameRequest) { + request = &ModifyGlobalSecurityIPGroupNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "ModifyGlobalSecurityIPGroupName", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyGlobalSecurityIPGroupNameResponse creates a response to parse from ModifyGlobalSecurityIPGroupName response +func CreateModifyGlobalSecurityIPGroupNameResponse() (response *ModifyGlobalSecurityIPGroupNameResponse) { + response = &ModifyGlobalSecurityIPGroupNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/modify_global_security_ip_group_relation.go b/services/dds/modify_global_security_ip_group_relation.go new file mode 100644 index 0000000000..f7650b0720 --- /dev/null +++ b/services/dds/modify_global_security_ip_group_relation.go @@ -0,0 +1,106 @@ +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" +) + +// ModifyGlobalSecurityIPGroupRelation invokes the dds.ModifyGlobalSecurityIPGroupRelation API synchronously +func (client *Client) ModifyGlobalSecurityIPGroupRelation(request *ModifyGlobalSecurityIPGroupRelationRequest) (response *ModifyGlobalSecurityIPGroupRelationResponse, err error) { + response = CreateModifyGlobalSecurityIPGroupRelationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyGlobalSecurityIPGroupRelationWithChan invokes the dds.ModifyGlobalSecurityIPGroupRelation API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupRelationWithChan(request *ModifyGlobalSecurityIPGroupRelationRequest) (<-chan *ModifyGlobalSecurityIPGroupRelationResponse, <-chan error) { + responseChan := make(chan *ModifyGlobalSecurityIPGroupRelationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyGlobalSecurityIPGroupRelation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyGlobalSecurityIPGroupRelationWithCallback invokes the dds.ModifyGlobalSecurityIPGroupRelation API asynchronously +func (client *Client) ModifyGlobalSecurityIPGroupRelationWithCallback(request *ModifyGlobalSecurityIPGroupRelationRequest, callback func(response *ModifyGlobalSecurityIPGroupRelationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyGlobalSecurityIPGroupRelationResponse + var err error + defer close(result) + response, err = client.ModifyGlobalSecurityIPGroupRelation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyGlobalSecurityIPGroupRelationRequest is the request struct for api ModifyGlobalSecurityIPGroupRelation +type ModifyGlobalSecurityIPGroupRelationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + GlobalSecurityGroupId string `position:"Query" name:"GlobalSecurityGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DBClusterId string `position:"Query" name:"DBClusterId"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyGlobalSecurityIPGroupRelationResponse is the response struct for api ModifyGlobalSecurityIPGroupRelation +type ModifyGlobalSecurityIPGroupRelationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyGlobalSecurityIPGroupRelationRequest creates a request to invoke ModifyGlobalSecurityIPGroupRelation API +func CreateModifyGlobalSecurityIPGroupRelationRequest() (request *ModifyGlobalSecurityIPGroupRelationRequest) { + request = &ModifyGlobalSecurityIPGroupRelationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dds", "2015-12-01", "ModifyGlobalSecurityIPGroupRelation", "dds", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyGlobalSecurityIPGroupRelationResponse creates a response to parse from ModifyGlobalSecurityIPGroupRelation response +func CreateModifyGlobalSecurityIPGroupRelationResponse() (response *ModifyGlobalSecurityIPGroupRelationResponse) { + response = &ModifyGlobalSecurityIPGroupRelationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dds/reset_account_password.go b/services/dds/reset_account_password.go index 80bda5d7e7..cd0cbfd518 100644 --- a/services/dds/reset_account_password.go +++ b/services/dds/reset_account_password.go @@ -79,6 +79,7 @@ type ResetAccountPasswordRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` AccountPassword string `position:"Query" name:"AccountPassword"` + CharacterType string `position:"Query" name:"CharacterType"` } // ResetAccountPasswordResponse is the response struct for api ResetAccountPassword diff --git a/services/dds/struct_db_instances_in_describe_global_security_ip_group.go b/services/dds/struct_db_instances_in_describe_global_security_ip_group.go new file mode 100644 index 0000000000..d1dbf18477 --- /dev/null +++ b/services/dds/struct_db_instances_in_describe_global_security_ip_group.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. + +// DBInstancesInDescribeGlobalSecurityIPGroup is a nested struct in dds response +type DBInstancesInDescribeGlobalSecurityIPGroup struct { + DBInstances []string `json:"DBInstances" xml:"DBInstances"` +} diff --git a/services/dds/struct_global_security_ip_group_in_create_global_security_ip_group.go b/services/dds/struct_global_security_ip_group_in_create_global_security_ip_group.go new file mode 100644 index 0000000000..1ccb795214 --- /dev/null +++ b/services/dds/struct_global_security_ip_group_in_create_global_security_ip_group.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. + +// GlobalSecurityIPGroupInCreateGlobalSecurityIPGroup is a nested struct in dds response +type GlobalSecurityIPGroupInCreateGlobalSecurityIPGroup struct { + GlobalSecurityIPGroupItem []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} diff --git a/services/dds/struct_global_security_ip_group_in_describe_global_security_ip_group.go b/services/dds/struct_global_security_ip_group_in_describe_global_security_ip_group.go new file mode 100644 index 0000000000..60a04efb18 --- /dev/null +++ b/services/dds/struct_global_security_ip_group_in_describe_global_security_ip_group.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. + +// GlobalSecurityIPGroupInDescribeGlobalSecurityIPGroup is a nested struct in dds response +type GlobalSecurityIPGroupInDescribeGlobalSecurityIPGroup struct { + GlobalSecurityIPGroupItem []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} diff --git a/services/dds/struct_global_security_ip_group_in_modify_global_security_ip_group_name.go b/services/dds/struct_global_security_ip_group_in_modify_global_security_ip_group_name.go new file mode 100644 index 0000000000..d03386a012 --- /dev/null +++ b/services/dds/struct_global_security_ip_group_in_modify_global_security_ip_group_name.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. + +// GlobalSecurityIPGroupInModifyGlobalSecurityIPGroupName is a nested struct in dds response +type GlobalSecurityIPGroupInModifyGlobalSecurityIPGroupName struct { + GlobalSecurityIPGroupItem []GlobalSecurityIPGroupItem `json:"GlobalSecurityIPGroup" xml:"GlobalSecurityIPGroup"` +} diff --git a/services/dds/struct_global_security_ip_group_item.go b/services/dds/struct_global_security_ip_group_item.go new file mode 100644 index 0000000000..eb4e6d7a8a --- /dev/null +++ b/services/dds/struct_global_security_ip_group_item.go @@ -0,0 +1,27 @@ +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. + +// GlobalSecurityIPGroupItem is a nested struct in dds response +type GlobalSecurityIPGroupItem struct { + GIpList string `json:"GIpList" xml:"GIpList"` + SecurityIPType string `json:"SecurityIPType" xml:"SecurityIPType"` + RegionId string `json:"RegionId" xml:"RegionId"` + WhitelistNetType string `json:"WhitelistNetType" xml:"WhitelistNetType"` + GlobalSecurityGroupId string `json:"GlobalSecurityGroupId" xml:"GlobalSecurityGroupId"` + GlobalIgName string `json:"GlobalIgName" xml:"GlobalIgName"` + DBInstances []string `json:"DBInstances" xml:"DBInstances"` +} diff --git a/services/dds/struct_global_security_ip_group_rel.go b/services/dds/struct_global_security_ip_group_rel.go new file mode 100644 index 0000000000..c50fd562ae --- /dev/null +++ b/services/dds/struct_global_security_ip_group_rel.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. + +// GlobalSecurityIPGroupRel is a nested struct in dds response +type GlobalSecurityIPGroupRel struct { + GlobalSecurityIPGroupRelItem []GlobalSecurityIPGroupRelItem `json:"GlobalSecurityIPGroupRel" xml:"GlobalSecurityIPGroupRel"` +} diff --git a/services/dds/struct_global_security_ip_group_rel_item.go b/services/dds/struct_global_security_ip_group_rel_item.go new file mode 100644 index 0000000000..f791212b22 --- /dev/null +++ b/services/dds/struct_global_security_ip_group_rel_item.go @@ -0,0 +1,25 @@ +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. + +// GlobalSecurityIPGroupRelItem is a nested struct in dds response +type GlobalSecurityIPGroupRelItem struct { + GlobalSecurityGroupId string `json:"GlobalSecurityGroupId" xml:"GlobalSecurityGroupId"` + GIpList string `json:"GIpList" xml:"GIpList"` + RegionId string `json:"RegionId" xml:"RegionId"` + WhitelistNetType string `json:"WhitelistNetType" xml:"WhitelistNetType"` + GlobalIgName string `json:"GlobalIgName" xml:"GlobalIgName"` +} diff --git a/services/dds/struct_parameter.go b/services/dds/struct_parameter.go index 6e6c4a65ce..607d09a314 100644 --- a/services/dds/struct_parameter.go +++ b/services/dds/struct_parameter.go @@ -18,6 +18,7 @@ package dds // Parameter is a nested struct in dds response type Parameter struct { ParameterName string `json:"ParameterName" xml:"ParameterName"` + CharacterType string `json:"CharacterType" xml:"CharacterType"` ParameterDescription string `json:"ParameterDescription" xml:"ParameterDescription"` CheckingCode string `json:"CheckingCode" xml:"CheckingCode"` ModifiableStatus string `json:"ModifiableStatus" xml:"ModifiableStatus"`