diff --git a/ChangeLog.txt b/ChangeLog.txt index debcb162d9..5bfbd807df 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,8 @@ +2020-04-29 Version: v1.61.156 +- Generated 2017-11-15 for `scdn`. +- Add Scdn APIS. +- Sync cdn APIS. + 2020-04-28 Version: v1.61.155 - Generated 2019-03-07 for `Cloudauth`. - Add CompareFaceVerify API. diff --git a/services/scdn/batch_update_scdn_domain.go b/services/scdn/batch_update_scdn_domain.go index 3d9e66523c..00252f9f00 100644 --- a/services/scdn/batch_update_scdn_domain.go +++ b/services/scdn/batch_update_scdn_domain.go @@ -76,12 +76,12 @@ func (client *Client) BatchUpdateScdnDomainWithCallback(request *BatchUpdateScdn // BatchUpdateScdnDomainRequest is the request struct for api BatchUpdateScdnDomain type BatchUpdateScdnDomainRequest struct { *requests.RpcRequest - TopLevelDomain string `position:"Query" name:"TopLevelDomain"` Sources string `position:"Query" name:"Sources"` - DomainName string `position:"Query" name:"DomainName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` SecurityToken string `position:"Query" name:"SecurityToken"` + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // BatchUpdateScdnDomainResponse is the response struct for api BatchUpdateScdnDomain diff --git a/services/scdn/delete_scdn_specific_config.go b/services/scdn/delete_scdn_specific_config.go new file mode 100644 index 0000000000..3219c98193 --- /dev/null +++ b/services/scdn/delete_scdn_specific_config.go @@ -0,0 +1,106 @@ +package scdn + +//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" +) + +// DeleteScdnSpecificConfig invokes the scdn.DeleteScdnSpecificConfig API synchronously +// api document: https://help.aliyun.com/api/scdn/deletescdnspecificconfig.html +func (client *Client) DeleteScdnSpecificConfig(request *DeleteScdnSpecificConfigRequest) (response *DeleteScdnSpecificConfigResponse, err error) { + response = CreateDeleteScdnSpecificConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteScdnSpecificConfigWithChan invokes the scdn.DeleteScdnSpecificConfig API asynchronously +// api document: https://help.aliyun.com/api/scdn/deletescdnspecificconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScdnSpecificConfigWithChan(request *DeleteScdnSpecificConfigRequest) (<-chan *DeleteScdnSpecificConfigResponse, <-chan error) { + responseChan := make(chan *DeleteScdnSpecificConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteScdnSpecificConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteScdnSpecificConfigWithCallback invokes the scdn.DeleteScdnSpecificConfig API asynchronously +// api document: https://help.aliyun.com/api/scdn/deletescdnspecificconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteScdnSpecificConfigWithCallback(request *DeleteScdnSpecificConfigRequest, callback func(response *DeleteScdnSpecificConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteScdnSpecificConfigResponse + var err error + defer close(result) + response, err = client.DeleteScdnSpecificConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteScdnSpecificConfigRequest is the request struct for api DeleteScdnSpecificConfig +type DeleteScdnSpecificConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ConfigId string `position:"Query" name:"ConfigId"` +} + +// DeleteScdnSpecificConfigResponse is the response struct for api DeleteScdnSpecificConfig +type DeleteScdnSpecificConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteScdnSpecificConfigRequest creates a request to invoke DeleteScdnSpecificConfig API +func CreateDeleteScdnSpecificConfigRequest() (request *DeleteScdnSpecificConfigRequest) { + request = &DeleteScdnSpecificConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DeleteScdnSpecificConfig", "", "") + return +} + +// CreateDeleteScdnSpecificConfigResponse creates a response to parse from DeleteScdnSpecificConfig response +func CreateDeleteScdnSpecificConfigResponse() (response *DeleteScdnSpecificConfigResponse) { + response = &DeleteScdnSpecificConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/describe_scdn_cc_qps_info.go b/services/scdn/describe_scdn_cc_qps_info.go new file mode 100644 index 0000000000..0f98b5f679 --- /dev/null +++ b/services/scdn/describe_scdn_cc_qps_info.go @@ -0,0 +1,109 @@ +package scdn + +//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" +) + +// DescribeScdnCcQpsInfo invokes the scdn.DescribeScdnCcQpsInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnccqpsinfo.html +func (client *Client) DescribeScdnCcQpsInfo(request *DescribeScdnCcQpsInfoRequest) (response *DescribeScdnCcQpsInfoResponse, err error) { + response = CreateDescribeScdnCcQpsInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnCcQpsInfoWithChan invokes the scdn.DescribeScdnCcQpsInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnccqpsinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcQpsInfoWithChan(request *DescribeScdnCcQpsInfoRequest) (<-chan *DescribeScdnCcQpsInfoResponse, <-chan error) { + responseChan := make(chan *DescribeScdnCcQpsInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnCcQpsInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnCcQpsInfoWithCallback invokes the scdn.DescribeScdnCcQpsInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnccqpsinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcQpsInfoWithCallback(request *DescribeScdnCcQpsInfoRequest, callback func(response *DescribeScdnCcQpsInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnCcQpsInfoResponse + var err error + defer close(result) + response, err = client.DescribeScdnCcQpsInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnCcQpsInfoRequest is the request struct for api DescribeScdnCcQpsInfo +type DescribeScdnCcQpsInfoRequest 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"` +} + +// DescribeScdnCcQpsInfoResponse is the response struct for api DescribeScdnCcQpsInfo +type DescribeScdnCcQpsInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Totals Totals `json:"Totals" xml:"Totals"` + Attacks Attacks `json:"Attacks" xml:"Attacks"` + TimeScopes TimeScopesInDescribeScdnCcQpsInfo `json:"TimeScopes" xml:"TimeScopes"` +} + +// CreateDescribeScdnCcQpsInfoRequest creates a request to invoke DescribeScdnCcQpsInfo API +func CreateDescribeScdnCcQpsInfoRequest() (request *DescribeScdnCcQpsInfoRequest) { + request = &DescribeScdnCcQpsInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnCcQpsInfo", "", "") + return +} + +// CreateDescribeScdnCcQpsInfoResponse creates a response to parse from DescribeScdnCcQpsInfo response +func CreateDescribeScdnCcQpsInfoResponse() (response *DescribeScdnCcQpsInfoResponse) { + response = &DescribeScdnCcQpsInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/describe_scdn_cc_top_ip.go b/services/scdn/describe_scdn_cc_top_ip.go new file mode 100644 index 0000000000..a712f548a4 --- /dev/null +++ b/services/scdn/describe_scdn_cc_top_ip.go @@ -0,0 +1,111 @@ +package scdn + +//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" +) + +// DescribeScdnCcTopIp invokes the scdn.DescribeScdnCcTopIp API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopip.html +func (client *Client) DescribeScdnCcTopIp(request *DescribeScdnCcTopIpRequest) (response *DescribeScdnCcTopIpResponse, err error) { + response = CreateDescribeScdnCcTopIpResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnCcTopIpWithChan invokes the scdn.DescribeScdnCcTopIp API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcTopIpWithChan(request *DescribeScdnCcTopIpRequest) (<-chan *DescribeScdnCcTopIpResponse, <-chan error) { + responseChan := make(chan *DescribeScdnCcTopIpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnCcTopIp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnCcTopIpWithCallback invokes the scdn.DescribeScdnCcTopIp API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopip.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcTopIpWithCallback(request *DescribeScdnCcTopIpRequest, callback func(response *DescribeScdnCcTopIpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnCcTopIpResponse + var err error + defer close(result) + response, err = client.DescribeScdnCcTopIp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnCcTopIpRequest is the request struct for api DescribeScdnCcTopIp +type DescribeScdnCcTopIpRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber string `position:"Query" name:"PageNumber"` + PageSize string `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnCcTopIpResponse is the response struct for api DescribeScdnCcTopIp +type DescribeScdnCcTopIpResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total string `json:"Total" xml:"Total"` + DomainName string `json:"DomainName" xml:"DomainName"` + AttackIpDataList AttackIpDataList `json:"AttackIpDataList" xml:"AttackIpDataList"` +} + +// CreateDescribeScdnCcTopIpRequest creates a request to invoke DescribeScdnCcTopIp API +func CreateDescribeScdnCcTopIpRequest() (request *DescribeScdnCcTopIpRequest) { + request = &DescribeScdnCcTopIpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnCcTopIp", "", "") + return +} + +// CreateDescribeScdnCcTopIpResponse creates a response to parse from DescribeScdnCcTopIp response +func CreateDescribeScdnCcTopIpResponse() (response *DescribeScdnCcTopIpResponse) { + response = &DescribeScdnCcTopIpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/describe_scdn_cc_top_url.go b/services/scdn/describe_scdn_cc_top_url.go new file mode 100644 index 0000000000..c7fdba2cd7 --- /dev/null +++ b/services/scdn/describe_scdn_cc_top_url.go @@ -0,0 +1,111 @@ +package scdn + +//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" +) + +// DescribeScdnCcTopUrl invokes the scdn.DescribeScdnCcTopUrl API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopurl.html +func (client *Client) DescribeScdnCcTopUrl(request *DescribeScdnCcTopUrlRequest) (response *DescribeScdnCcTopUrlResponse, err error) { + response = CreateDescribeScdnCcTopUrlResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnCcTopUrlWithChan invokes the scdn.DescribeScdnCcTopUrl API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcTopUrlWithChan(request *DescribeScdnCcTopUrlRequest) (<-chan *DescribeScdnCcTopUrlResponse, <-chan error) { + responseChan := make(chan *DescribeScdnCcTopUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnCcTopUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnCcTopUrlWithCallback invokes the scdn.DescribeScdnCcTopUrl API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdncctopurl.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnCcTopUrlWithCallback(request *DescribeScdnCcTopUrlRequest, callback func(response *DescribeScdnCcTopUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnCcTopUrlResponse + var err error + defer close(result) + response, err = client.DescribeScdnCcTopUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnCcTopUrlRequest is the request struct for api DescribeScdnCcTopUrl +type DescribeScdnCcTopUrlRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber string `position:"Query" name:"PageNumber"` + PageSize string `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnCcTopUrlResponse is the response struct for api DescribeScdnCcTopUrl +type DescribeScdnCcTopUrlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total string `json:"Total" xml:"Total"` + DomainName string `json:"DomainName" xml:"DomainName"` + AttackUrlDataList AttackUrlDataList `json:"AttackUrlDataList" xml:"AttackUrlDataList"` +} + +// CreateDescribeScdnCcTopUrlRequest creates a request to invoke DescribeScdnCcTopUrl API +func CreateDescribeScdnCcTopUrlRequest() (request *DescribeScdnCcTopUrlRequest) { + request = &DescribeScdnCcTopUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnCcTopUrl", "", "") + return +} + +// CreateDescribeScdnCcTopUrlResponse creates a response to parse from DescribeScdnCcTopUrl response +func CreateDescribeScdnCcTopUrlResponse() (response *DescribeScdnCcTopUrlResponse) { + response = &DescribeScdnCcTopUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/describe_scdn_ddos_info.go b/services/scdn/describe_scdn_ddos_info.go new file mode 100644 index 0000000000..ea183fafcb --- /dev/null +++ b/services/scdn/describe_scdn_ddos_info.go @@ -0,0 +1,105 @@ +package scdn + +//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" +) + +// DescribeScdnDdosInfo invokes the scdn.DescribeScdnDdosInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddosinfo.html +func (client *Client) DescribeScdnDdosInfo(request *DescribeScdnDdosInfoRequest) (response *DescribeScdnDdosInfoResponse, err error) { + response = CreateDescribeScdnDdosInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDdosInfoWithChan invokes the scdn.DescribeScdnDdosInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddosinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDdosInfoWithChan(request *DescribeScdnDdosInfoRequest) (<-chan *DescribeScdnDdosInfoResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDdosInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDdosInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDdosInfoWithCallback invokes the scdn.DescribeScdnDdosInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddosinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDdosInfoWithCallback(request *DescribeScdnDdosInfoRequest, callback func(response *DescribeScdnDdosInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDdosInfoResponse + var err error + defer close(result) + response, err = client.DescribeScdnDdosInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDdosInfoRequest is the request struct for api DescribeScdnDdosInfo +type DescribeScdnDdosInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDdosInfoResponse is the response struct for api DescribeScdnDdosInfo +type DescribeScdnDdosInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecBandwidth int `json:"SecBandwidth" xml:"SecBandwidth"` + ElasticBandwidth int `json:"ElasticBandwidth" xml:"ElasticBandwidth"` +} + +// CreateDescribeScdnDdosInfoRequest creates a request to invoke DescribeScdnDdosInfo API +func CreateDescribeScdnDdosInfoRequest() (request *DescribeScdnDdosInfoRequest) { + request = &DescribeScdnDdosInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDdosInfo", "", "") + return +} + +// CreateDescribeScdnDdosInfoResponse creates a response to parse from DescribeScdnDdosInfo response +func CreateDescribeScdnDdosInfoResponse() (response *DescribeScdnDdosInfoResponse) { + response = &DescribeScdnDdosInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/describe_scdn_ddos_traffic_info.go b/services/scdn/describe_scdn_ddos_traffic_info.go new file mode 100644 index 0000000000..d5cb628dc5 --- /dev/null +++ b/services/scdn/describe_scdn_ddos_traffic_info.go @@ -0,0 +1,111 @@ +package scdn + +//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" +) + +// DescribeScdnDdosTrafficInfo invokes the scdn.DescribeScdnDdosTrafficInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddostrafficinfo.html +func (client *Client) DescribeScdnDdosTrafficInfo(request *DescribeScdnDdosTrafficInfoRequest) (response *DescribeScdnDdosTrafficInfoResponse, err error) { + response = CreateDescribeScdnDdosTrafficInfoResponse() + err = client.DoAction(request, response) + return +} + +// DescribeScdnDdosTrafficInfoWithChan invokes the scdn.DescribeScdnDdosTrafficInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddostrafficinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDdosTrafficInfoWithChan(request *DescribeScdnDdosTrafficInfoRequest) (<-chan *DescribeScdnDdosTrafficInfoResponse, <-chan error) { + responseChan := make(chan *DescribeScdnDdosTrafficInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeScdnDdosTrafficInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeScdnDdosTrafficInfoWithCallback invokes the scdn.DescribeScdnDdosTrafficInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/describescdnddostrafficinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeScdnDdosTrafficInfoWithCallback(request *DescribeScdnDdosTrafficInfoRequest, callback func(response *DescribeScdnDdosTrafficInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeScdnDdosTrafficInfoResponse + var err error + defer close(result) + response, err = client.DescribeScdnDdosTrafficInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeScdnDdosTrafficInfoRequest is the request struct for api DescribeScdnDdosTrafficInfo +type DescribeScdnDdosTrafficInfoRequest struct { + *requests.RpcRequest + Line string `position:"Query" name:"Line"` + StartTime string `position:"Query" name:"StartTime"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeScdnDdosTrafficInfoResponse is the response struct for api DescribeScdnDdosTrafficInfo +type DescribeScdnDdosTrafficInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + BpsDrops BpsDrops `json:"BpsDrops" xml:"BpsDrops"` + BpsTotals BpsTotals `json:"BpsTotals" xml:"BpsTotals"` + PpsTotals PpsTotals `json:"PpsTotals" xml:"PpsTotals"` + PpsDrops PpsDrops `json:"PpsDrops" xml:"PpsDrops"` + TimeScopes TimeScopesInDescribeScdnDdosTrafficInfo `json:"TimeScopes" xml:"TimeScopes"` +} + +// CreateDescribeScdnDdosTrafficInfoRequest creates a request to invoke DescribeScdnDdosTrafficInfo API +func CreateDescribeScdnDdosTrafficInfoRequest() (request *DescribeScdnDdosTrafficInfoRequest) { + request = &DescribeScdnDdosTrafficInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "DescribeScdnDdosTrafficInfo", "", "") + return +} + +// CreateDescribeScdnDdosTrafficInfoResponse creates a response to parse from DescribeScdnDdosTrafficInfo response +func CreateDescribeScdnDdosTrafficInfoResponse() (response *DescribeScdnDdosTrafficInfoResponse) { + response = &DescribeScdnDdosTrafficInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/set_scdn_bot_info.go b/services/scdn/set_scdn_bot_info.go new file mode 100644 index 0000000000..903407a3d6 --- /dev/null +++ b/services/scdn/set_scdn_bot_info.go @@ -0,0 +1,106 @@ +package scdn + +//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" +) + +// SetScdnBotInfo invokes the scdn.SetScdnBotInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/setscdnbotinfo.html +func (client *Client) SetScdnBotInfo(request *SetScdnBotInfoRequest) (response *SetScdnBotInfoResponse, err error) { + response = CreateSetScdnBotInfoResponse() + err = client.DoAction(request, response) + return +} + +// SetScdnBotInfoWithChan invokes the scdn.SetScdnBotInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnbotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnBotInfoWithChan(request *SetScdnBotInfoRequest) (<-chan *SetScdnBotInfoResponse, <-chan error) { + responseChan := make(chan *SetScdnBotInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetScdnBotInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetScdnBotInfoWithCallback invokes the scdn.SetScdnBotInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnbotinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnBotInfoWithCallback(request *SetScdnBotInfoRequest, callback func(response *SetScdnBotInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetScdnBotInfoResponse + var err error + defer close(result) + response, err = client.SetScdnBotInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetScdnBotInfoRequest is the request struct for api SetScdnBotInfo +type SetScdnBotInfoRequest struct { + *requests.RpcRequest + Enable string `position:"Query" name:"Enable"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Status string `position:"Query" name:"Status"` +} + +// SetScdnBotInfoResponse is the response struct for api SetScdnBotInfo +type SetScdnBotInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetScdnBotInfoRequest creates a request to invoke SetScdnBotInfo API +func CreateSetScdnBotInfoRequest() (request *SetScdnBotInfoRequest) { + request = &SetScdnBotInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "SetScdnBotInfo", "", "") + return +} + +// CreateSetScdnBotInfoResponse creates a response to parse from SetScdnBotInfo response +func CreateSetScdnBotInfoResponse() (response *SetScdnBotInfoResponse) { + response = &SetScdnBotInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/set_scdn_cc_info.go b/services/scdn/set_scdn_cc_info.go new file mode 100644 index 0000000000..111b714caa --- /dev/null +++ b/services/scdn/set_scdn_cc_info.go @@ -0,0 +1,104 @@ +package scdn + +//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" +) + +// SetScdnCcInfo invokes the scdn.SetScdnCcInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/setscdnccinfo.html +func (client *Client) SetScdnCcInfo(request *SetScdnCcInfoRequest) (response *SetScdnCcInfoResponse, err error) { + response = CreateSetScdnCcInfoResponse() + err = client.DoAction(request, response) + return +} + +// SetScdnCcInfoWithChan invokes the scdn.SetScdnCcInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnccinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnCcInfoWithChan(request *SetScdnCcInfoRequest) (<-chan *SetScdnCcInfoResponse, <-chan error) { + responseChan := make(chan *SetScdnCcInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetScdnCcInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetScdnCcInfoWithCallback invokes the scdn.SetScdnCcInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnccinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnCcInfoWithCallback(request *SetScdnCcInfoRequest, callback func(response *SetScdnCcInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetScdnCcInfoResponse + var err error + defer close(result) + response, err = client.SetScdnCcInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetScdnCcInfoRequest is the request struct for api SetScdnCcInfo +type SetScdnCcInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Status string `position:"Query" name:"Status"` +} + +// SetScdnCcInfoResponse is the response struct for api SetScdnCcInfo +type SetScdnCcInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetScdnCcInfoRequest creates a request to invoke SetScdnCcInfo API +func CreateSetScdnCcInfoRequest() (request *SetScdnCcInfoRequest) { + request = &SetScdnCcInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "SetScdnCcInfo", "", "") + return +} + +// CreateSetScdnCcInfoResponse creates a response to parse from SetScdnCcInfo response +func CreateSetScdnCcInfoResponse() (response *SetScdnCcInfoResponse) { + response = &SetScdnCcInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/set_scdn_ddos_info.go b/services/scdn/set_scdn_ddos_info.go new file mode 100644 index 0000000000..8f9b203adf --- /dev/null +++ b/services/scdn/set_scdn_ddos_info.go @@ -0,0 +1,104 @@ +package scdn + +//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" +) + +// SetScdnDdosInfo invokes the scdn.SetScdnDdosInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/setscdnddosinfo.html +func (client *Client) SetScdnDdosInfo(request *SetScdnDdosInfoRequest) (response *SetScdnDdosInfoResponse, err error) { + response = CreateSetScdnDdosInfoResponse() + err = client.DoAction(request, response) + return +} + +// SetScdnDdosInfoWithChan invokes the scdn.SetScdnDdosInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnddosinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDdosInfoWithChan(request *SetScdnDdosInfoRequest) (<-chan *SetScdnDdosInfoResponse, <-chan error) { + responseChan := make(chan *SetScdnDdosInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetScdnDdosInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetScdnDdosInfoWithCallback invokes the scdn.SetScdnDdosInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdnddosinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDdosInfoWithCallback(request *SetScdnDdosInfoRequest, callback func(response *SetScdnDdosInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetScdnDdosInfoResponse + var err error + defer close(result) + response, err = client.SetScdnDdosInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetScdnDdosInfoRequest is the request struct for api SetScdnDdosInfo +type SetScdnDdosInfoRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ElasticBandwidth requests.Integer `position:"Query" name:"ElasticBandwidth"` +} + +// SetScdnDdosInfoResponse is the response struct for api SetScdnDdosInfo +type SetScdnDdosInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetScdnDdosInfoRequest creates a request to invoke SetScdnDdosInfo API +func CreateSetScdnDdosInfoRequest() (request *SetScdnDdosInfoRequest) { + request = &SetScdnDdosInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "SetScdnDdosInfo", "", "") + return +} + +// CreateSetScdnDdosInfoResponse creates a response to parse from SetScdnDdosInfo response +func CreateSetScdnDdosInfoResponse() (response *SetScdnDdosInfoResponse) { + response = &SetScdnDdosInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/set_scdn_domain_biz_info.go b/services/scdn/set_scdn_domain_biz_info.go new file mode 100644 index 0000000000..695c2667ba --- /dev/null +++ b/services/scdn/set_scdn_domain_biz_info.go @@ -0,0 +1,105 @@ +package scdn + +//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" +) + +// SetScdnDomainBizInfo invokes the scdn.SetScdnDomainBizInfo API synchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomainbizinfo.html +func (client *Client) SetScdnDomainBizInfo(request *SetScdnDomainBizInfoRequest) (response *SetScdnDomainBizInfoResponse, err error) { + response = CreateSetScdnDomainBizInfoResponse() + err = client.DoAction(request, response) + return +} + +// SetScdnDomainBizInfoWithChan invokes the scdn.SetScdnDomainBizInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomainbizinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDomainBizInfoWithChan(request *SetScdnDomainBizInfoRequest) (<-chan *SetScdnDomainBizInfoResponse, <-chan error) { + responseChan := make(chan *SetScdnDomainBizInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetScdnDomainBizInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetScdnDomainBizInfoWithCallback invokes the scdn.SetScdnDomainBizInfo API asynchronously +// api document: https://help.aliyun.com/api/scdn/setscdndomainbizinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetScdnDomainBizInfoWithCallback(request *SetScdnDomainBizInfoRequest, callback func(response *SetScdnDomainBizInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetScdnDomainBizInfoResponse + var err error + defer close(result) + response, err = client.SetScdnDomainBizInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetScdnDomainBizInfoRequest is the request struct for api SetScdnDomainBizInfo +type SetScdnDomainBizInfoRequest struct { + *requests.RpcRequest + BizName string `position:"Query" name:"BizName"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// SetScdnDomainBizInfoResponse is the response struct for api SetScdnDomainBizInfo +type SetScdnDomainBizInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetScdnDomainBizInfoRequest creates a request to invoke SetScdnDomainBizInfo API +func CreateSetScdnDomainBizInfoRequest() (request *SetScdnDomainBizInfoRequest) { + request = &SetScdnDomainBizInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("scdn", "2017-11-15", "SetScdnDomainBizInfo", "", "") + return +} + +// CreateSetScdnDomainBizInfoResponse creates a response to parse from SetScdnDomainBizInfo response +func CreateSetScdnDomainBizInfoResponse() (response *SetScdnDomainBizInfoResponse) { + response = &SetScdnDomainBizInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/scdn/struct_attack_ip_data_list.go b/services/scdn/struct_attack_ip_data_list.go new file mode 100644 index 0000000000..7247f08306 --- /dev/null +++ b/services/scdn/struct_attack_ip_data_list.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// AttackIpDataList is a nested struct in scdn response +type AttackIpDataList struct { + AttackIpDatas []AttackIpDatas `json:"AttackIpDatas" xml:"AttackIpDatas"` +} diff --git a/services/scdn/struct_attack_ip_datas.go b/services/scdn/struct_attack_ip_datas.go new file mode 100644 index 0000000000..91bc459261 --- /dev/null +++ b/services/scdn/struct_attack_ip_datas.go @@ -0,0 +1,22 @@ +package scdn + +//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. + +// AttackIpDatas is a nested struct in scdn response +type AttackIpDatas struct { + Ip string `json:"Ip" xml:"Ip"` + AttackCount string `json:"AttackCount" xml:"AttackCount"` +} diff --git a/services/scdn/struct_attack_url_data_list.go b/services/scdn/struct_attack_url_data_list.go new file mode 100644 index 0000000000..e088ac0350 --- /dev/null +++ b/services/scdn/struct_attack_url_data_list.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// AttackUrlDataList is a nested struct in scdn response +type AttackUrlDataList struct { + AttackUrlDatas []AttackUrlDatas `json:"AttackUrlDatas" xml:"AttackUrlDatas"` +} diff --git a/services/scdn/struct_attack_url_datas.go b/services/scdn/struct_attack_url_datas.go new file mode 100644 index 0000000000..de7f831d74 --- /dev/null +++ b/services/scdn/struct_attack_url_datas.go @@ -0,0 +1,22 @@ +package scdn + +//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. + +// AttackUrlDatas is a nested struct in scdn response +type AttackUrlDatas struct { + Url string `json:"Url" xml:"Url"` + AttackCount string `json:"AttackCount" xml:"AttackCount"` +} diff --git a/services/scdn/struct_attacks.go b/services/scdn/struct_attacks.go new file mode 100644 index 0000000000..e9db67c569 --- /dev/null +++ b/services/scdn/struct_attacks.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// Attacks is a nested struct in scdn response +type Attacks struct { + Attack []string `json:"Attack" xml:"Attack"` +} diff --git a/services/scdn/struct_bps_drops.go b/services/scdn/struct_bps_drops.go new file mode 100644 index 0000000000..216a16b24e --- /dev/null +++ b/services/scdn/struct_bps_drops.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// BpsDrops is a nested struct in scdn response +type BpsDrops struct { + BpsDrop []string `json:"BpsDrop" xml:"BpsDrop"` +} diff --git a/services/scdn/struct_bps_totals.go b/services/scdn/struct_bps_totals.go new file mode 100644 index 0000000000..84633fc2f4 --- /dev/null +++ b/services/scdn/struct_bps_totals.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// BpsTotals is a nested struct in scdn response +type BpsTotals struct { + BpsTotal []string `json:"BpsTotal" xml:"BpsTotal"` +} diff --git a/services/scdn/struct_pps_drops.go b/services/scdn/struct_pps_drops.go new file mode 100644 index 0000000000..92f7351ef9 --- /dev/null +++ b/services/scdn/struct_pps_drops.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// PpsDrops is a nested struct in scdn response +type PpsDrops struct { + PpsDrop []string `json:"PpsDrop" xml:"PpsDrop"` +} diff --git a/services/scdn/struct_pps_totals.go b/services/scdn/struct_pps_totals.go new file mode 100644 index 0000000000..e94efe8f11 --- /dev/null +++ b/services/scdn/struct_pps_totals.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// PpsTotals is a nested struct in scdn response +type PpsTotals struct { + PpsTotal []string `json:"PpsTotal" xml:"PpsTotal"` +} diff --git a/services/scdn/struct_time_scope.go b/services/scdn/struct_time_scope.go new file mode 100644 index 0000000000..2a912ed142 --- /dev/null +++ b/services/scdn/struct_time_scope.go @@ -0,0 +1,22 @@ +package scdn + +//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. + +// TimeScope is a nested struct in scdn response +type TimeScope struct { + Interval string `json:"Interval" xml:"Interval"` + Start string `json:"Start" xml:"Start"` +} diff --git a/services/scdn/struct_time_scopes_in_describe_scdn_cc_qps_info.go b/services/scdn/struct_time_scopes_in_describe_scdn_cc_qps_info.go new file mode 100644 index 0000000000..538002d4d2 --- /dev/null +++ b/services/scdn/struct_time_scopes_in_describe_scdn_cc_qps_info.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// TimeScopesInDescribeScdnCcQpsInfo is a nested struct in scdn response +type TimeScopesInDescribeScdnCcQpsInfo struct { + TimeScope []TimeScope `json:"TimeScope" xml:"TimeScope"` +} diff --git a/services/scdn/struct_time_scopes_in_describe_scdn_ddos_traffic_info.go b/services/scdn/struct_time_scopes_in_describe_scdn_ddos_traffic_info.go new file mode 100644 index 0000000000..84724ffa0f --- /dev/null +++ b/services/scdn/struct_time_scopes_in_describe_scdn_ddos_traffic_info.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// TimeScopesInDescribeScdnDdosTrafficInfo is a nested struct in scdn response +type TimeScopesInDescribeScdnDdosTrafficInfo struct { + TimeScope []TimeScope `json:"TimeScope" xml:"TimeScope"` +} diff --git a/services/scdn/struct_totals.go b/services/scdn/struct_totals.go new file mode 100644 index 0000000000..b7532e8b0b --- /dev/null +++ b/services/scdn/struct_totals.go @@ -0,0 +1,21 @@ +package scdn + +//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. + +// Totals is a nested struct in scdn response +type Totals struct { + Total []string `json:"Total" xml:"Total"` +}