diff --git a/ChangeLog.txt b/ChangeLog.txt index 8b575a810b..d44399d569 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2022-10-27 Version: v1.61.1832 +- Generated 2018-01-15 for `dcdn`. +- Update BatchAddDcdnDomain,add error code. + 2022-10-27 Version: v1.61.1831 - Generated 2018-01-20 for `Iot`. - Iot_20180120 Old sdk. diff --git a/services/dcdn/add_dcdn_domain.go b/services/dcdn/add_dcdn_domain.go index 881233277b..e1b61d3a9c 100644 --- a/services/dcdn/add_dcdn_domain.go +++ b/services/dcdn/add_dcdn_domain.go @@ -71,15 +71,22 @@ func (client *Client) AddDcdnDomainWithCallback(request *AddDcdnDomainRequest, c // AddDcdnDomainRequest is the request struct for api AddDcdnDomain type AddDcdnDomainRequest struct { *requests.RpcRequest - Sources string `position:"Query" name:"Sources"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - Scope string `position:"Query" name:"Scope"` - TopLevelDomain string `position:"Query" name:"TopLevelDomain"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DomainName string `position:"Query" name:"DomainName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CheckUrl string `position:"Query" name:"CheckUrl"` + Sources string `position:"Query" name:"Sources"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Scope string `position:"Query" name:"Scope"` + Tag *[]AddDcdnDomainTag `position:"Query" name:"Tag" type:"Repeated"` + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CheckUrl string `position:"Query" name:"CheckUrl"` +} + +// AddDcdnDomainTag is a repeated param struct in AddDcdnDomainRequest +type AddDcdnDomainTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // AddDcdnDomainResponse is the response struct for api AddDcdnDomain diff --git a/services/dcdn/batch_create_dcdn_waf_rules.go b/services/dcdn/batch_create_dcdn_waf_rules.go index 08cb68626b..624d73ad23 100644 --- a/services/dcdn/batch_create_dcdn_waf_rules.go +++ b/services/dcdn/batch_create_dcdn_waf_rules.go @@ -79,7 +79,8 @@ type BatchCreateDcdnWafRulesRequest struct { // BatchCreateDcdnWafRulesResponse is the response struct for api BatchCreateDcdnWafRules type BatchCreateDcdnWafRulesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + RuleIds RuleIds `json:"RuleIds" xml:"RuleIds"` } // CreateBatchCreateDcdnWafRulesRequest creates a request to invoke BatchCreateDcdnWafRules API diff --git a/services/dcdn/batch_modify_dcdn_waf_rules.go b/services/dcdn/batch_modify_dcdn_waf_rules.go new file mode 100644 index 0000000000..774c774cc5 --- /dev/null +++ b/services/dcdn/batch_modify_dcdn_waf_rules.go @@ -0,0 +1,100 @@ +package dcdn + +//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" +) + +// BatchModifyDcdnWafRules invokes the dcdn.BatchModifyDcdnWafRules API synchronously +func (client *Client) BatchModifyDcdnWafRules(request *BatchModifyDcdnWafRulesRequest) (response *BatchModifyDcdnWafRulesResponse, err error) { + response = CreateBatchModifyDcdnWafRulesResponse() + err = client.DoAction(request, response) + return +} + +// BatchModifyDcdnWafRulesWithChan invokes the dcdn.BatchModifyDcdnWafRules API asynchronously +func (client *Client) BatchModifyDcdnWafRulesWithChan(request *BatchModifyDcdnWafRulesRequest) (<-chan *BatchModifyDcdnWafRulesResponse, <-chan error) { + responseChan := make(chan *BatchModifyDcdnWafRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchModifyDcdnWafRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchModifyDcdnWafRulesWithCallback invokes the dcdn.BatchModifyDcdnWafRules API asynchronously +func (client *Client) BatchModifyDcdnWafRulesWithCallback(request *BatchModifyDcdnWafRulesRequest, callback func(response *BatchModifyDcdnWafRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchModifyDcdnWafRulesResponse + var err error + defer close(result) + response, err = client.BatchModifyDcdnWafRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchModifyDcdnWafRulesRequest is the request struct for api BatchModifyDcdnWafRules +type BatchModifyDcdnWafRulesRequest struct { + *requests.RpcRequest + PolicyId requests.Integer `position:"Body" name:"PolicyId"` + RuleConfigs string `position:"Body" name:"RuleConfigs"` +} + +// BatchModifyDcdnWafRulesResponse is the response struct for api BatchModifyDcdnWafRules +type BatchModifyDcdnWafRulesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBatchModifyDcdnWafRulesRequest creates a request to invoke BatchModifyDcdnWafRules API +func CreateBatchModifyDcdnWafRulesRequest() (request *BatchModifyDcdnWafRulesRequest) { + request = &BatchModifyDcdnWafRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("dcdn", "2018-01-15", "BatchModifyDcdnWafRules", "", "") + request.Method = requests.POST + return +} + +// CreateBatchModifyDcdnWafRulesResponse creates a response to parse from BatchModifyDcdnWafRules response +func CreateBatchModifyDcdnWafRulesResponse() (response *BatchModifyDcdnWafRulesResponse) { + response = &BatchModifyDcdnWafRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/dcdn/batch_start_dcdn_domain.go b/services/dcdn/batch_start_dcdn_domain.go deleted file mode 100644 index ccec0e05af..0000000000 --- a/services/dcdn/batch_start_dcdn_domain.go +++ /dev/null @@ -1,101 +0,0 @@ -package dcdn - -//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" -) - -// BatchStartDcdnDomain invokes the dcdn.BatchStartDcdnDomain API synchronously -func (client *Client) BatchStartDcdnDomain(request *BatchStartDcdnDomainRequest) (response *BatchStartDcdnDomainResponse, err error) { - response = CreateBatchStartDcdnDomainResponse() - err = client.DoAction(request, response) - return -} - -// BatchStartDcdnDomainWithChan invokes the dcdn.BatchStartDcdnDomain API asynchronously -func (client *Client) BatchStartDcdnDomainWithChan(request *BatchStartDcdnDomainRequest) (<-chan *BatchStartDcdnDomainResponse, <-chan error) { - responseChan := make(chan *BatchStartDcdnDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.BatchStartDcdnDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// BatchStartDcdnDomainWithCallback invokes the dcdn.BatchStartDcdnDomain API asynchronously -func (client *Client) BatchStartDcdnDomainWithCallback(request *BatchStartDcdnDomainRequest, callback func(response *BatchStartDcdnDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *BatchStartDcdnDomainResponse - var err error - defer close(result) - response, err = client.BatchStartDcdnDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// BatchStartDcdnDomainRequest is the request struct for api BatchStartDcdnDomain -type BatchStartDcdnDomainRequest struct { - *requests.RpcRequest - DomainNames string `position:"Query" name:"DomainNames"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` -} - -// BatchStartDcdnDomainResponse is the response struct for api BatchStartDcdnDomain -type BatchStartDcdnDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateBatchStartDcdnDomainRequest creates a request to invoke BatchStartDcdnDomain API -func CreateBatchStartDcdnDomainRequest() (request *BatchStartDcdnDomainRequest) { - request = &BatchStartDcdnDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("dcdn", "2018-01-15", "BatchStartDcdnDomain", "", "") - request.Method = requests.POST - return -} - -// CreateBatchStartDcdnDomainResponse creates a response to parse from BatchStartDcdnDomain response -func CreateBatchStartDcdnDomainResponse() (response *BatchStartDcdnDomainResponse) { - response = &BatchStartDcdnDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/dcdn/batch_stop_dcdn_domain.go b/services/dcdn/batch_stop_dcdn_domain.go deleted file mode 100644 index 170ef1e24b..0000000000 --- a/services/dcdn/batch_stop_dcdn_domain.go +++ /dev/null @@ -1,101 +0,0 @@ -package dcdn - -//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" -) - -// BatchStopDcdnDomain invokes the dcdn.BatchStopDcdnDomain API synchronously -func (client *Client) BatchStopDcdnDomain(request *BatchStopDcdnDomainRequest) (response *BatchStopDcdnDomainResponse, err error) { - response = CreateBatchStopDcdnDomainResponse() - err = client.DoAction(request, response) - return -} - -// BatchStopDcdnDomainWithChan invokes the dcdn.BatchStopDcdnDomain API asynchronously -func (client *Client) BatchStopDcdnDomainWithChan(request *BatchStopDcdnDomainRequest) (<-chan *BatchStopDcdnDomainResponse, <-chan error) { - responseChan := make(chan *BatchStopDcdnDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.BatchStopDcdnDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// BatchStopDcdnDomainWithCallback invokes the dcdn.BatchStopDcdnDomain API asynchronously -func (client *Client) BatchStopDcdnDomainWithCallback(request *BatchStopDcdnDomainRequest, callback func(response *BatchStopDcdnDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *BatchStopDcdnDomainResponse - var err error - defer close(result) - response, err = client.BatchStopDcdnDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// BatchStopDcdnDomainRequest is the request struct for api BatchStopDcdnDomain -type BatchStopDcdnDomainRequest struct { - *requests.RpcRequest - DomainNames string `position:"Query" name:"DomainNames"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` -} - -// BatchStopDcdnDomainResponse is the response struct for api BatchStopDcdnDomain -type BatchStopDcdnDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateBatchStopDcdnDomainRequest creates a request to invoke BatchStopDcdnDomain API -func CreateBatchStopDcdnDomainRequest() (request *BatchStopDcdnDomainRequest) { - request = &BatchStopDcdnDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("dcdn", "2018-01-15", "BatchStopDcdnDomain", "", "") - request.Method = requests.POST - return -} - -// CreateBatchStopDcdnDomainResponse creates a response to parse from BatchStopDcdnDomain response -func CreateBatchStopDcdnDomainResponse() (response *BatchStopDcdnDomainResponse) { - response = &BatchStopDcdnDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/dcdn/create_wasm.go b/services/dcdn/create_wasm.go deleted file mode 100644 index ce13c60461..0000000000 --- a/services/dcdn/create_wasm.go +++ /dev/null @@ -1,102 +0,0 @@ -package dcdn - -//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" -) - -// CreateWasm invokes the dcdn.CreateWasm API synchronously -func (client *Client) CreateWasm(request *CreateWasmRequest) (response *CreateWasmResponse, err error) { - response = CreateCreateWasmResponse() - err = client.DoAction(request, response) - return -} - -// CreateWasmWithChan invokes the dcdn.CreateWasm API asynchronously -func (client *Client) CreateWasmWithChan(request *CreateWasmRequest) (<-chan *CreateWasmResponse, <-chan error) { - responseChan := make(chan *CreateWasmResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateWasm(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateWasmWithCallback invokes the dcdn.CreateWasm API asynchronously -func (client *Client) CreateWasmWithCallback(request *CreateWasmRequest, callback func(response *CreateWasmResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateWasmResponse - var err error - defer close(result) - response, err = client.CreateWasm(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateWasmRequest is the request struct for api CreateWasm -type CreateWasmRequest struct { - *requests.RpcRequest - Description string `position:"Body" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Body" name:"Name"` -} - -// CreateWasmResponse is the response struct for api CreateWasm -type CreateWasmResponse struct { - *responses.BaseResponse - Content map[string]interface{} `json:"Content" xml:"Content"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreateWasmRequest creates a request to invoke CreateWasm API -func CreateCreateWasmRequest() (request *CreateWasmRequest) { - request = &CreateWasmRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("dcdn", "2018-01-15", "CreateWasm", "", "") - request.Method = requests.POST - return -} - -// CreateCreateWasmResponse creates a response to parse from CreateWasm response -func CreateCreateWasmResponse() (response *CreateWasmResponse) { - response = &CreateWasmResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/dcdn/describe_dcdn_ddos_service.go b/services/dcdn/describe_dcdn_ddos_service.go deleted file mode 100644 index 73a7e22e08..0000000000 --- a/services/dcdn/describe_dcdn_ddos_service.go +++ /dev/null @@ -1,114 +0,0 @@ -package dcdn - -//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" -) - -// DescribeDcdnDdosService invokes the dcdn.DescribeDcdnDdosService API synchronously -func (client *Client) DescribeDcdnDdosService(request *DescribeDcdnDdosServiceRequest) (response *DescribeDcdnDdosServiceResponse, err error) { - response = CreateDescribeDcdnDdosServiceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDcdnDdosServiceWithChan invokes the dcdn.DescribeDcdnDdosService API asynchronously -func (client *Client) DescribeDcdnDdosServiceWithChan(request *DescribeDcdnDdosServiceRequest) (<-chan *DescribeDcdnDdosServiceResponse, <-chan error) { - responseChan := make(chan *DescribeDcdnDdosServiceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDcdnDdosService(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDcdnDdosServiceWithCallback invokes the dcdn.DescribeDcdnDdosService API asynchronously -func (client *Client) DescribeDcdnDdosServiceWithCallback(request *DescribeDcdnDdosServiceRequest, callback func(response *DescribeDcdnDdosServiceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDcdnDdosServiceResponse - var err error - defer close(result) - response, err = client.DescribeDcdnDdosService(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDcdnDdosServiceRequest is the request struct for api DescribeDcdnDdosService -type DescribeDcdnDdosServiceRequest struct { - *requests.RpcRequest - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` -} - -// DescribeDcdnDdosServiceResponse is the response struct for api DescribeDcdnDdosService -type DescribeDcdnDdosServiceResponse struct { - *responses.BaseResponse - Status string `json:"Status" xml:"Status"` - ChangingAffectTime string `json:"ChangingAffectTime" xml:"ChangingAffectTime"` - OpeningTime string `json:"OpeningTime" xml:"OpeningTime"` - ChangingEdition string `json:"ChangingEdition" xml:"ChangingEdition"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - DomianNum int `json:"DomianNum" xml:"DomianNum"` - ChangingProtectNum int `json:"ChangingProtectNum" xml:"ChangingProtectNum"` - ChangingDomianNum int `json:"ChangingDomianNum" xml:"ChangingDomianNum"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Edition string `json:"Edition" xml:"Edition"` - ChangingChargeType string `json:"ChangingChargeType" xml:"ChangingChargeType"` - RequestId string `json:"RequestId" xml:"RequestId"` - ProtectNum int `json:"ProtectNum" xml:"ProtectNum"` - Enabled string `json:"Enabled" xml:"Enabled"` - EndingTime string `json:"EndingTime" xml:"EndingTime"` -} - -// CreateDescribeDcdnDdosServiceRequest creates a request to invoke DescribeDcdnDdosService API -func CreateDescribeDcdnDdosServiceRequest() (request *DescribeDcdnDdosServiceRequest) { - request = &DescribeDcdnDdosServiceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnDdosService", "", "") - request.Method = requests.POST - return -} - -// CreateDescribeDcdnDdosServiceResponse creates a response to parse from DescribeDcdnDdosService response -func CreateDescribeDcdnDdosServiceResponse() (response *DescribeDcdnDdosServiceResponse) { - response = &DescribeDcdnDdosServiceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/dcdn/describe_dcdn_domain_multi_usage_data.go b/services/dcdn/describe_dcdn_domain_multi_usage_data.go index aac2240414..08b117ee81 100644 --- a/services/dcdn/describe_dcdn_domain_multi_usage_data.go +++ b/services/dcdn/describe_dcdn_domain_multi_usage_data.go @@ -80,11 +80,11 @@ type DescribeDcdnDomainMultiUsageDataRequest struct { // DescribeDcdnDomainMultiUsageDataResponse is the response struct for api DescribeDcdnDomainMultiUsageData type DescribeDcdnDomainMultiUsageDataResponse struct { *responses.BaseResponse - EndTime string `json:"EndTime" xml:"EndTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - RequestPerInterval RequestPerInterval `json:"RequestPerInterval" xml:"RequestPerInterval"` - TrafficPerInterval TrafficPerIntervalInDescribeDcdnDomainMultiUsageData `json:"TrafficPerInterval" xml:"TrafficPerInterval"` + EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + RequestId string `json:"RequestId" xml:"RequestId"` + RequestPerInterval RequestPerInterval `json:"RequestPerInterval" xml:"RequestPerInterval"` + TrafficPerInterval TrafficPerInterval `json:"TrafficPerInterval" xml:"TrafficPerInterval"` } // CreateDescribeDcdnDomainMultiUsageDataRequest creates a request to invoke DescribeDcdnDomainMultiUsageData API diff --git a/services/dcdn/describe_dcdn_ipa_domain_multi_usage_data.go b/services/dcdn/describe_dcdn_ipa_domain_multi_usage_data.go deleted file mode 100644 index 38fc128ae9..0000000000 --- a/services/dcdn/describe_dcdn_ipa_domain_multi_usage_data.go +++ /dev/null @@ -1,105 +0,0 @@ -package dcdn - -//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" -) - -// DescribeDcdnIpaDomainMultiUsageData invokes the dcdn.DescribeDcdnIpaDomainMultiUsageData API synchronously -func (client *Client) DescribeDcdnIpaDomainMultiUsageData(request *DescribeDcdnIpaDomainMultiUsageDataRequest) (response *DescribeDcdnIpaDomainMultiUsageDataResponse, err error) { - response = CreateDescribeDcdnIpaDomainMultiUsageDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDcdnIpaDomainMultiUsageDataWithChan invokes the dcdn.DescribeDcdnIpaDomainMultiUsageData API asynchronously -func (client *Client) DescribeDcdnIpaDomainMultiUsageDataWithChan(request *DescribeDcdnIpaDomainMultiUsageDataRequest) (<-chan *DescribeDcdnIpaDomainMultiUsageDataResponse, <-chan error) { - responseChan := make(chan *DescribeDcdnIpaDomainMultiUsageDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDcdnIpaDomainMultiUsageData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDcdnIpaDomainMultiUsageDataWithCallback invokes the dcdn.DescribeDcdnIpaDomainMultiUsageData API asynchronously -func (client *Client) DescribeDcdnIpaDomainMultiUsageDataWithCallback(request *DescribeDcdnIpaDomainMultiUsageDataRequest, callback func(response *DescribeDcdnIpaDomainMultiUsageDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDcdnIpaDomainMultiUsageDataResponse - var err error - defer close(result) - response, err = client.DescribeDcdnIpaDomainMultiUsageData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDcdnIpaDomainMultiUsageDataRequest is the request struct for api DescribeDcdnIpaDomainMultiUsageData -type DescribeDcdnIpaDomainMultiUsageDataRequest struct { - *requests.RpcRequest - StartTime string `position:"Query" name:"StartTime"` - DomainName string `position:"Query" name:"DomainName"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeDcdnIpaDomainMultiUsageDataResponse is the response struct for api DescribeDcdnIpaDomainMultiUsageData -type DescribeDcdnIpaDomainMultiUsageDataResponse struct { - *responses.BaseResponse - EndTime string `json:"EndTime" xml:"EndTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - TrafficPerInterval TrafficPerIntervalInDescribeDcdnIpaDomainMultiUsageData `json:"TrafficPerInterval" xml:"TrafficPerInterval"` -} - -// CreateDescribeDcdnIpaDomainMultiUsageDataRequest creates a request to invoke DescribeDcdnIpaDomainMultiUsageData API -func CreateDescribeDcdnIpaDomainMultiUsageDataRequest() (request *DescribeDcdnIpaDomainMultiUsageDataRequest) { - request = &DescribeDcdnIpaDomainMultiUsageDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("dcdn", "2018-01-15", "DescribeDcdnIpaDomainMultiUsageData", "", "") - request.Method = requests.POST - return -} - -// CreateDescribeDcdnIpaDomainMultiUsageDataResponse creates a response to parse from DescribeDcdnIpaDomainMultiUsageData response -func CreateDescribeDcdnIpaDomainMultiUsageDataResponse() (response *DescribeDcdnIpaDomainMultiUsageDataResponse) { - response = &DescribeDcdnIpaDomainMultiUsageDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/dcdn/struct_domain_config.go b/services/dcdn/struct_domain_config.go index 91dea0a656..b94037f7bf 100644 --- a/services/dcdn/struct_domain_config.go +++ b/services/dcdn/struct_domain_config.go @@ -17,6 +17,7 @@ package dcdn // DomainConfig is a nested struct in dcdn response type DomainConfig struct { + ParentId string `json:"ParentId" xml:"ParentId"` ConfigId string `json:"ConfigId" xml:"ConfigId"` Status string `json:"Status" xml:"Status"` FunctionName string `json:"FunctionName" xml:"FunctionName"` diff --git a/services/dcdn/struct_domain_detail.go b/services/dcdn/struct_domain_detail.go index a50e984bbe..60c9e02665 100644 --- a/services/dcdn/struct_domain_detail.go +++ b/services/dcdn/struct_domain_detail.go @@ -19,15 +19,14 @@ package dcdn type DomainDetail struct { Cname string `json:"Cname" xml:"Cname"` CertName string `json:"CertName" xml:"CertName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` DomainName string `json:"DomainName" xml:"DomainName"` GmtModified string `json:"GmtModified" xml:"GmtModified"` SSLPub string `json:"SSLPub" xml:"SSLPub"` SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` - GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` Scope string `json:"Scope" xml:"Scope"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` Description string `json:"Description" xml:"Description"` - TenantID string `json:"TenantID" xml:"TenantID"` Sources SourcesInDescribeDcdnDomainDetail `json:"Sources" xml:"Sources"` } diff --git a/services/dcdn/struct_page_data.go b/services/dcdn/struct_page_data.go index 4cfa28ab3a..a399e0cf4a 100644 --- a/services/dcdn/struct_page_data.go +++ b/services/dcdn/struct_page_data.go @@ -18,16 +18,15 @@ package dcdn // PageData is a nested struct in dcdn response type PageData struct { Cname string `json:"Cname" xml:"Cname"` + Sandbox string `json:"Sandbox" xml:"Sandbox"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` DomainId int64 `json:"DomainId" xml:"DomainId"` DomainName string `json:"DomainName" xml:"DomainName"` GmtModified string `json:"GmtModified" xml:"GmtModified"` SSLProtocol string `json:"SSLProtocol" xml:"SSLProtocol"` GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` - Sandbox string `json:"Sandbox" xml:"Sandbox"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` Description string `json:"Description" xml:"Description"` - TenantID string `json:"TenantID" xml:"TenantID"` SslProtocol string `json:"SslProtocol" xml:"SslProtocol"` Sources SourcesInDescribeDcdnIpaUserDomains `json:"Sources" xml:"Sources"` } diff --git a/services/dcdn/struct_policy.go b/services/dcdn/struct_policy.go index 0259a5b7a2..38bf2d2901 100644 --- a/services/dcdn/struct_policy.go +++ b/services/dcdn/struct_policy.go @@ -20,6 +20,7 @@ type Policy struct { PolicyStatus string `json:"PolicyStatus" xml:"PolicyStatus"` DefenseScene string `json:"DefenseScene" xml:"DefenseScene"` DomainCount int `json:"DomainCount" xml:"DomainCount"` + RuleConfigs string `json:"RuleConfigs" xml:"RuleConfigs"` PolicyName string `json:"PolicyName" xml:"PolicyName"` PolicyId int64 `json:"PolicyId" xml:"PolicyId"` RuleCount int64 `json:"RuleCount" xml:"RuleCount"` diff --git a/services/dcdn/struct_traffic_per_interval_in_describe_dcdn_ipa_domain_multi_usage_data.go b/services/dcdn/struct_rule_ids.go similarity index 73% rename from services/dcdn/struct_traffic_per_interval_in_describe_dcdn_ipa_domain_multi_usage_data.go rename to services/dcdn/struct_rule_ids.go index 067b9b8b9e..6f9a642a8b 100644 --- a/services/dcdn/struct_traffic_per_interval_in_describe_dcdn_ipa_domain_multi_usage_data.go +++ b/services/dcdn/struct_rule_ids.go @@ -15,7 +15,7 @@ package dcdn // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// TrafficPerIntervalInDescribeDcdnIpaDomainMultiUsageData is a nested struct in dcdn response -type TrafficPerIntervalInDescribeDcdnIpaDomainMultiUsageData struct { - TrafficDataModule []TrafficDataModule `json:"TrafficDataModule" xml:"TrafficDataModule"` +// RuleIds is a nested struct in dcdn response +type RuleIds struct { + RuleId []string `json:"RuleId" xml:"RuleId"` } diff --git a/services/dcdn/struct_traffic_data_module.go b/services/dcdn/struct_traffic_data_module.go index 551612a230..9fb44e4f2e 100644 --- a/services/dcdn/struct_traffic_data_module.go +++ b/services/dcdn/struct_traffic_data_module.go @@ -17,9 +17,9 @@ package dcdn // TrafficDataModule is a nested struct in dcdn response type TrafficDataModule struct { + Type string `json:"Type" xml:"Type"` Domain string `json:"Domain" xml:"Domain"` - Area string `json:"Area" xml:"Area"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + Area string `json:"Area" xml:"Area"` Bps float64 `json:"Bps" xml:"Bps"` - Type string `json:"Type" xml:"Type"` } diff --git a/services/dcdn/struct_traffic_per_interval_in_describe_dcdn_domain_multi_usage_data.go b/services/dcdn/struct_traffic_per_interval.go similarity index 83% rename from services/dcdn/struct_traffic_per_interval_in_describe_dcdn_domain_multi_usage_data.go rename to services/dcdn/struct_traffic_per_interval.go index 684b1eda1e..1ccd9362c1 100644 --- a/services/dcdn/struct_traffic_per_interval_in_describe_dcdn_domain_multi_usage_data.go +++ b/services/dcdn/struct_traffic_per_interval.go @@ -15,7 +15,7 @@ package dcdn // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// TrafficPerIntervalInDescribeDcdnDomainMultiUsageData is a nested struct in dcdn response -type TrafficPerIntervalInDescribeDcdnDomainMultiUsageData struct { +// TrafficPerInterval is a nested struct in dcdn response +type TrafficPerInterval struct { TrafficDataModule []TrafficDataModule `json:"TrafficDataModule" xml:"TrafficDataModule"` }