diff --git a/ChangeLog.txt b/ChangeLog.txt index 95ecd07058..ff292e65e5 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-05-04 Version: v1.62.303 +- Generated 2017-05-25 for `Dyplsapi`. +- Add new API. + 2023-05-03 Version: v1.62.302 - Generated 2016-04-28 for `Vpc`. - Supported Zone for AllocateEipAddress. diff --git a/services/dyplsapi/bind_batch_axg.go b/services/dyplsapi/bind_batch_axg.go new file mode 100644 index 0000000000..66cfcf35da --- /dev/null +++ b/services/dyplsapi/bind_batch_axg.go @@ -0,0 +1,124 @@ +package dyplsapi + +//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" +) + +// BindBatchAxg invokes the dyplsapi.BindBatchAxg API synchronously +func (client *Client) BindBatchAxg(request *BindBatchAxgRequest) (response *BindBatchAxgResponse, err error) { + response = CreateBindBatchAxgResponse() + err = client.DoAction(request, response) + return +} + +// BindBatchAxgWithChan invokes the dyplsapi.BindBatchAxg API asynchronously +func (client *Client) BindBatchAxgWithChan(request *BindBatchAxgRequest) (<-chan *BindBatchAxgResponse, <-chan error) { + responseChan := make(chan *BindBatchAxgResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindBatchAxg(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindBatchAxgWithCallback invokes the dyplsapi.BindBatchAxg API asynchronously +func (client *Client) BindBatchAxgWithCallback(request *BindBatchAxgRequest, callback func(response *BindBatchAxgResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindBatchAxgResponse + var err error + defer close(result) + response, err = client.BindBatchAxg(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindBatchAxgRequest is the request struct for api BindBatchAxg +type BindBatchAxgRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AxgBindList *[]BindBatchAxgAxgBindList `position:"Query" name:"AxgBindList" type:"Json"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PoolKey string `position:"Query" name:"PoolKey"` +} + +// BindBatchAxgAxgBindList is a repeated param struct in BindBatchAxgRequest +type BindBatchAxgAxgBindList struct { + PhoneNoB string `name:"PhoneNoB"` + PhoneNoA string `name:"PhoneNoA"` + ExpectCity string `name:"ExpectCity"` + GroupId string `name:"GroupId"` + CallDisplayType string `name:"CallDisplayType"` + OutOrderId string `name:"OutOrderId"` + PhoneNoX string `name:"PhoneNoX"` + IsRecordingEnabled string `name:"IsRecordingEnabled"` + OutId string `name:"OutId"` + Expiration string `name:"Expiration"` + RingConfig string `name:"RingConfig"` + ASRStatus string `name:"ASRStatus"` + ASRModelId string `name:"ASRModelId"` + CallRestrict string `name:"CallRestrict"` +} + +// BindBatchAxgResponse is the response struct for api BindBatchAxg +type BindBatchAxgResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + SecretBindList SecretBindList `json:"SecretBindList" xml:"SecretBindList"` +} + +// CreateBindBatchAxgRequest creates a request to invoke BindBatchAxg API +func CreateBindBatchAxgRequest() (request *BindBatchAxgRequest) { + request = &BindBatchAxgRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyplsapi", "2017-05-25", "BindBatchAxg", "", "") + request.Method = requests.POST + return +} + +// CreateBindBatchAxgResponse creates a response to parse from BindBatchAxg response +func CreateBindBatchAxgResponse() (response *BindBatchAxgResponse) { + response = &BindBatchAxgResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dyplsapi/delete_axg_group.go b/services/dyplsapi/delete_axg_group.go new file mode 100644 index 0000000000..81c93dd28e --- /dev/null +++ b/services/dyplsapi/delete_axg_group.go @@ -0,0 +1,105 @@ +package dyplsapi + +//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" +) + +// DeleteAxgGroup invokes the dyplsapi.DeleteAxgGroup API synchronously +func (client *Client) DeleteAxgGroup(request *DeleteAxgGroupRequest) (response *DeleteAxgGroupResponse, err error) { + response = CreateDeleteAxgGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAxgGroupWithChan invokes the dyplsapi.DeleteAxgGroup API asynchronously +func (client *Client) DeleteAxgGroupWithChan(request *DeleteAxgGroupRequest) (<-chan *DeleteAxgGroupResponse, <-chan error) { + responseChan := make(chan *DeleteAxgGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAxgGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAxgGroupWithCallback invokes the dyplsapi.DeleteAxgGroup API asynchronously +func (client *Client) DeleteAxgGroupWithCallback(request *DeleteAxgGroupRequest, callback func(response *DeleteAxgGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAxgGroupResponse + var err error + defer close(result) + response, err = client.DeleteAxgGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAxgGroupRequest is the request struct for api DeleteAxgGroup +type DeleteAxgGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PoolKey string `position:"Query" name:"PoolKey"` +} + +// DeleteAxgGroupResponse is the response struct for api DeleteAxgGroup +type DeleteAxgGroupResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAxgGroupRequest creates a request to invoke DeleteAxgGroup API +func CreateDeleteAxgGroupRequest() (request *DeleteAxgGroupRequest) { + request = &DeleteAxgGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Dyplsapi", "2017-05-25", "DeleteAxgGroup", "", "") + request.Method = requests.POST + return +} + +// CreateDeleteAxgGroupResponse creates a response to parse from DeleteAxgGroup response +func CreateDeleteAxgGroupResponse() (response *DeleteAxgGroupResponse) { + response = &DeleteAxgGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dyplsapi/lock_secret_no.go b/services/dyplsapi/lock_secret_no.go index 173889ac26..dfb6e8a581 100644 --- a/services/dyplsapi/lock_secret_no.go +++ b/services/dyplsapi/lock_secret_no.go @@ -72,10 +72,10 @@ func (client *Client) LockSecretNoWithCallback(request *LockSecretNoRequest, cal type LockSecretNoRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecretNo string `position:"Query" name:"SecretNo"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PoolKey string `position:"Query" name:"PoolKey"` - SecretNo string `position:"Query" name:"SecretNo"` } // LockSecretNoResponse is the response struct for api LockSecretNo diff --git a/services/dyplsapi/query_subs_id.go b/services/dyplsapi/query_subs_id.go index 4fceb7b2bf..ee60684673 100644 --- a/services/dyplsapi/query_subs_id.go +++ b/services/dyplsapi/query_subs_id.go @@ -72,10 +72,10 @@ func (client *Client) QuerySubsIdWithCallback(request *QuerySubsIdRequest, callb type QuerySubsIdRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PhoneNoX string `position:"Query" name:"PhoneNoX"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PoolKey string `position:"Query" name:"PoolKey"` - PhoneNoX string `position:"Query" name:"PhoneNoX"` } // QuerySubsIdResponse is the response struct for api QuerySubsId diff --git a/services/dyplsapi/release_secret_no.go b/services/dyplsapi/release_secret_no.go index fd9d43da04..b7c3d90d10 100644 --- a/services/dyplsapi/release_secret_no.go +++ b/services/dyplsapi/release_secret_no.go @@ -72,10 +72,10 @@ func (client *Client) ReleaseSecretNoWithCallback(request *ReleaseSecretNoReques type ReleaseSecretNoRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecretNo string `position:"Query" name:"SecretNo"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PoolKey string `position:"Query" name:"PoolKey"` - SecretNo string `position:"Query" name:"SecretNo"` } // ReleaseSecretNoResponse is the response struct for api ReleaseSecretNo diff --git a/services/dyplsapi/struct_secret_bind.go b/services/dyplsapi/struct_secret_bind.go new file mode 100644 index 0000000000..a6262fa17c --- /dev/null +++ b/services/dyplsapi/struct_secret_bind.go @@ -0,0 +1,27 @@ +package dyplsapi + +//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. + +// SecretBind is a nested struct in dyplsapi response +type SecretBind struct { + SecretNo string `json:"SecretNo" xml:"SecretNo"` + SubsId string `json:"SubsId" xml:"SubsId"` + Extension string `json:"Extension" xml:"Extension"` + GroupId string `json:"GroupId" xml:"GroupId"` + PhoneNoA string `json:"PhoneNoA" xml:"PhoneNoA"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} diff --git a/services/dyplsapi/struct_secret_bind_list.go b/services/dyplsapi/struct_secret_bind_list.go new file mode 100644 index 0000000000..ce709e91e1 --- /dev/null +++ b/services/dyplsapi/struct_secret_bind_list.go @@ -0,0 +1,21 @@ +package dyplsapi + +//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. + +// SecretBindList is a nested struct in dyplsapi response +type SecretBindList struct { + SecretBind []SecretBind `json:"SecretBind" xml:"SecretBind"` +} diff --git a/services/dyplsapi/unlock_secret_no.go b/services/dyplsapi/unlock_secret_no.go index af8dbe7c6c..e7c6f0a6b9 100644 --- a/services/dyplsapi/unlock_secret_no.go +++ b/services/dyplsapi/unlock_secret_no.go @@ -72,10 +72,10 @@ func (client *Client) UnlockSecretNoWithCallback(request *UnlockSecretNoRequest, type UnlockSecretNoRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecretNo string `position:"Query" name:"SecretNo"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PoolKey string `position:"Query" name:"PoolKey"` - SecretNo string `position:"Query" name:"SecretNo"` } // UnlockSecretNoResponse is the response struct for api UnlockSecretNo