Browse Source

由智久发起的CDN SDK自动发布, 版本号:1.12.1

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
1c9ff51e1e

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-05-11 Version: 1.12.1
+1, Add Function Compute interface,support Function Compute.
+
 2018-05-09 Version: 1.12.0
 1, Add apis for domain broker.
 

+ 102 - 0
services/cdn/add_fc_trigger.go

@@ -0,0 +1,102 @@
+package cdn
+
+//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"
+)
+
+// AddFCTrigger invokes the cdn.AddFCTrigger API synchronously
+// api document: https://help.aliyun.com/api/cdn/addfctrigger.html
+func (client *Client) AddFCTrigger(request *AddFCTriggerRequest) (response *AddFCTriggerResponse, err error) {
+	response = CreateAddFCTriggerResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddFCTriggerWithChan invokes the cdn.AddFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/addfctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddFCTriggerWithChan(request *AddFCTriggerRequest) (<-chan *AddFCTriggerResponse, <-chan error) {
+	responseChan := make(chan *AddFCTriggerResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddFCTrigger(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddFCTriggerWithCallback invokes the cdn.AddFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/addfctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddFCTriggerWithCallback(request *AddFCTriggerRequest, callback func(response *AddFCTriggerResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddFCTriggerResponse
+		var err error
+		defer close(result)
+		response, err = client.AddFCTrigger(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddFCTriggerRequest is the request struct for api AddFCTrigger
+type AddFCTriggerRequest struct {
+	*requests.RpcRequest
+}
+
+// AddFCTriggerResponse is the response struct for api AddFCTrigger
+type AddFCTriggerResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateAddFCTriggerRequest creates a request to invoke AddFCTrigger API
+func CreateAddFCTriggerRequest() (request *AddFCTriggerRequest) {
+	request = &AddFCTriggerRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "AddFCTrigger", "", "")
+	return
+}
+
+// CreateAddFCTriggerResponse creates a response to parse from AddFCTrigger response
+func CreateAddFCTriggerResponse() (response *AddFCTriggerResponse) {
+	response = &AddFCTriggerResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 102 - 0
services/cdn/delete_fc_trigger.go

@@ -0,0 +1,102 @@
+package cdn
+
+//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"
+)
+
+// DeleteFCTrigger invokes the cdn.DeleteFCTrigger API synchronously
+// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html
+func (client *Client) DeleteFCTrigger(request *DeleteFCTriggerRequest) (response *DeleteFCTriggerResponse, err error) {
+	response = CreateDeleteFCTriggerResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteFCTriggerWithChan invokes the cdn.DeleteFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteFCTriggerWithChan(request *DeleteFCTriggerRequest) (<-chan *DeleteFCTriggerResponse, <-chan error) {
+	responseChan := make(chan *DeleteFCTriggerResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteFCTrigger(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteFCTriggerWithCallback invokes the cdn.DeleteFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/deletefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteFCTriggerWithCallback(request *DeleteFCTriggerRequest, callback func(response *DeleteFCTriggerResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteFCTriggerResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteFCTrigger(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteFCTriggerRequest is the request struct for api DeleteFCTrigger
+type DeleteFCTriggerRequest struct {
+	*requests.RpcRequest
+}
+
+// DeleteFCTriggerResponse is the response struct for api DeleteFCTrigger
+type DeleteFCTriggerResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteFCTriggerRequest creates a request to invoke DeleteFCTrigger API
+func CreateDeleteFCTriggerRequest() (request *DeleteFCTriggerRequest) {
+	request = &DeleteFCTriggerRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "DeleteFCTrigger", "", "")
+	return
+}
+
+// CreateDeleteFCTriggerResponse creates a response to parse from DeleteFCTrigger response
+func CreateDeleteFCTriggerResponse() (response *DeleteFCTriggerResponse) {
+	response = &DeleteFCTriggerResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/cdn/describe_cdn_domain_configs.go

@@ -0,0 +1,107 @@
+package cdn
+
+//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"
+)
+
+// DescribeCdnDomainConfigs invokes the cdn.DescribeCdnDomainConfigs API synchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html
+func (client *Client) DescribeCdnDomainConfigs(request *DescribeCdnDomainConfigsRequest) (response *DescribeCdnDomainConfigsResponse, err error) {
+	response = CreateDescribeCdnDomainConfigsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCdnDomainConfigsWithChan invokes the cdn.DescribeCdnDomainConfigs API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCdnDomainConfigsWithChan(request *DescribeCdnDomainConfigsRequest) (<-chan *DescribeCdnDomainConfigsResponse, <-chan error) {
+	responseChan := make(chan *DescribeCdnDomainConfigsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCdnDomainConfigs(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCdnDomainConfigsWithCallback invokes the cdn.DescribeCdnDomainConfigs API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainconfigs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCdnDomainConfigsWithCallback(request *DescribeCdnDomainConfigsRequest, callback func(response *DescribeCdnDomainConfigsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCdnDomainConfigsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCdnDomainConfigs(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCdnDomainConfigsRequest is the request struct for api DescribeCdnDomainConfigs
+type DescribeCdnDomainConfigsRequest struct {
+	*requests.RpcRequest
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	FunctionNames string           `position:"Query" name:"FunctionNames"`
+}
+
+// DescribeCdnDomainConfigsResponse is the response struct for api DescribeCdnDomainConfigs
+type DescribeCdnDomainConfigsResponse struct {
+	*responses.BaseResponse
+	RequestId     string                                  `json:"RequestId" xml:"RequestId"`
+	DomainConfigs DomainConfigsInDescribeCdnDomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"`
+}
+
+// CreateDescribeCdnDomainConfigsRequest creates a request to invoke DescribeCdnDomainConfigs API
+func CreateDescribeCdnDomainConfigsRequest() (request *DescribeCdnDomainConfigsRequest) {
+	request = &DescribeCdnDomainConfigsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeCdnDomainConfigs", "", "")
+	return
+}
+
+// CreateDescribeCdnDomainConfigsResponse creates a response to parse from DescribeCdnDomainConfigs response
+func CreateDescribeCdnDomainConfigsResponse() (response *DescribeCdnDomainConfigsResponse) {
+	response = &DescribeCdnDomainConfigsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/cdn/describe_domain_certificate_info.go

@@ -0,0 +1,103 @@
+package cdn
+
+//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"
+)
+
+// DescribeDomainCertificateInfo invokes the cdn.DescribeDomainCertificateInfo API synchronously
+// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html
+func (client *Client) DescribeDomainCertificateInfo(request *DescribeDomainCertificateInfoRequest) (response *DescribeDomainCertificateInfoResponse, err error) {
+	response = CreateDescribeDomainCertificateInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDomainCertificateInfoWithChan invokes the cdn.DescribeDomainCertificateInfo API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainCertificateInfoWithChan(request *DescribeDomainCertificateInfoRequest) (<-chan *DescribeDomainCertificateInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeDomainCertificateInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDomainCertificateInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDomainCertificateInfoWithCallback invokes the cdn.DescribeDomainCertificateInfo API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describedomaincertificateinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainCertificateInfoWithCallback(request *DescribeDomainCertificateInfoRequest, callback func(response *DescribeDomainCertificateInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDomainCertificateInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDomainCertificateInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDomainCertificateInfoRequest is the request struct for api DescribeDomainCertificateInfo
+type DescribeDomainCertificateInfoRequest struct {
+	*requests.RpcRequest
+}
+
+// DescribeDomainCertificateInfoResponse is the response struct for api DescribeDomainCertificateInfo
+type DescribeDomainCertificateInfoResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	CertInfos CertInfos `json:"CertInfos" xml:"CertInfos"`
+}
+
+// CreateDescribeDomainCertificateInfoRequest creates a request to invoke DescribeDomainCertificateInfo API
+func CreateDescribeDomainCertificateInfoRequest() (request *DescribeDomainCertificateInfoRequest) {
+	request = &DescribeDomainCertificateInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCertificateInfo", "", "")
+	return
+}
+
+// CreateDescribeDomainCertificateInfoResponse creates a response to parse from DescribeDomainCertificateInfo response
+func CreateDescribeDomainCertificateInfoResponse() (response *DescribeDomainCertificateInfoResponse) {
+	response = &DescribeDomainCertificateInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/cdn/describe_fc_trigger.go

@@ -0,0 +1,103 @@
+package cdn
+
+//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"
+)
+
+// DescribeFCTrigger invokes the cdn.DescribeFCTrigger API synchronously
+// api document: https://help.aliyun.com/api/cdn/describefctrigger.html
+func (client *Client) DescribeFCTrigger(request *DescribeFCTriggerRequest) (response *DescribeFCTriggerResponse, err error) {
+	response = CreateDescribeFCTriggerResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeFCTriggerWithChan invokes the cdn.DescribeFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeFCTriggerWithChan(request *DescribeFCTriggerRequest) (<-chan *DescribeFCTriggerResponse, <-chan error) {
+	responseChan := make(chan *DescribeFCTriggerResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeFCTrigger(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeFCTriggerWithCallback invokes the cdn.DescribeFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeFCTriggerWithCallback(request *DescribeFCTriggerRequest, callback func(response *DescribeFCTriggerResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeFCTriggerResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeFCTrigger(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeFCTriggerRequest is the request struct for api DescribeFCTrigger
+type DescribeFCTriggerRequest struct {
+	*requests.RpcRequest
+}
+
+// DescribeFCTriggerResponse is the response struct for api DescribeFCTrigger
+type DescribeFCTriggerResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	FCTrigger FCTrigger `json:"FCTrigger" xml:"FCTrigger"`
+}
+
+// CreateDescribeFCTriggerRequest creates a request to invoke DescribeFCTrigger API
+func CreateDescribeFCTriggerRequest() (request *DescribeFCTriggerRequest) {
+	request = &DescribeFCTriggerRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeFCTrigger", "", "")
+	return
+}
+
+// CreateDescribeFCTriggerResponse creates a response to parse from DescribeFCTrigger response
+func CreateDescribeFCTriggerResponse() (response *DescribeFCTriggerResponse) {
+	response = &DescribeFCTriggerResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 7 - 0
services/cdn/describe_live_streams_online_list.go

@@ -80,12 +80,19 @@ type DescribeLiveStreamsOnlineListRequest struct {
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	DomainName    string           `position:"Query" name:"DomainName"`
 	AppName       string           `position:"Query" name:"AppName"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	PageNum       requests.Integer `position:"Query" name:"PageNum"`
+	StreamType    string           `position:"Query" name:"StreamType"`
 }
 
 // DescribeLiveStreamsOnlineListResponse is the response struct for api DescribeLiveStreamsOnlineList
 type DescribeLiveStreamsOnlineListResponse struct {
 	*responses.BaseResponse
 	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	PageNum    int        `json:"PageNum" xml:"PageNum"`
+	PageSize   int        `json:"PageSize" xml:"PageSize"`
+	TotalNum   int        `json:"TotalNum" xml:"TotalNum"`
+	TotalPage  int        `json:"TotalPage" xml:"TotalPage"`
 	OnlineInfo OnlineInfo `json:"OnlineInfo" xml:"OnlineInfo"`
 }
 

+ 1 - 0
services/cdn/set_domain_server_certificate.go

@@ -84,6 +84,7 @@ type SetDomainServerCertificateRequest struct {
 	ServerCertificate       string           `position:"Query" name:"ServerCertificate"`
 	PrivateKey              string           `position:"Query" name:"PrivateKey"`
 	Region                  string           `position:"Query" name:"Region"`
+	CertType                string           `position:"Query" name:"CertType"`
 }
 
 // SetDomainServerCertificateResponse is the response struct for api SetDomainServerCertificate

+ 1 - 0
services/cdn/set_http_header_config.go

@@ -81,6 +81,7 @@ type SetHttpHeaderConfigRequest struct {
 	DomainName    string           `position:"Query" name:"DomainName"`
 	HeaderKey     string           `position:"Query" name:"HeaderKey"`
 	HeaderValue   string           `position:"Query" name:"HeaderValue"`
+	ConfigId      requests.Integer `position:"Query" name:"ConfigId"`
 }
 
 // SetHttpHeaderConfigResponse is the response struct for api SetHttpHeaderConfig

+ 29 - 0
services/cdn/struct_cert_info.go

@@ -0,0 +1,29 @@
+package cdn
+
+//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.
+
+// CertInfo is a nested struct in cdn response
+type CertInfo struct {
+	DomainName              string `json:"DomainName" xml:"DomainName"`
+	CertName                string `json:"CertName" xml:"CertName"`
+	CertDomainName          string `json:"CertDomainName" xml:"CertDomainName"`
+	CertExpireTime          string `json:"CertExpireTime" xml:"CertExpireTime"`
+	CertLife                string `json:"CertLife" xml:"CertLife"`
+	CertOrg                 string `json:"CertOrg" xml:"CertOrg"`
+	CertType                string `json:"CertType" xml:"CertType"`
+	ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"`
+	Status                  string `json:"Status" xml:"Status"`
+}

+ 21 - 0
services/cdn/struct_cert_infos.go

@@ -0,0 +1,21 @@
+package cdn
+
+//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.
+
+// CertInfos is a nested struct in cdn response
+type CertInfos struct {
+	CertInfo []CertInfo `json:"CertInfo" xml:"CertInfo"`
+}

+ 24 - 0
services/cdn/struct_domain_config.go

@@ -0,0 +1,24 @@
+package cdn
+
+//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.
+
+// DomainConfig is a nested struct in cdn response
+type DomainConfig struct {
+	FunctionName string       `json:"FunctionName" xml:"FunctionName"`
+	ConfigId     string       `json:"ConfigId" xml:"ConfigId"`
+	Status       string       `json:"Status" xml:"Status"`
+	FunctionArgs FunctionArgs `json:"FunctionArgs" xml:"FunctionArgs"`
+}

+ 16 - 16
services/cdn/struct_domain_configs.go

@@ -17,31 +17,31 @@ package cdn
 
 // DomainConfigs is a nested struct in cdn response
 type DomainConfigs struct {
-	CcConfig                CcConfig                `json:"CcConfig" xml:"CcConfig"`
-	ErrorPageConfig         ErrorPageConfig         `json:"ErrorPageConfig" xml:"ErrorPageConfig"`
-	OptimizeConfig          OptimizeConfig          `json:"OptimizeConfig" xml:"OptimizeConfig"`
+	NotifyUrlConfig         NotifyUrlConfig         `json:"NotifyUrlConfig" xml:"NotifyUrlConfig"`
 	PageCompressConfig      PageCompressConfig      `json:"PageCompressConfig" xml:"PageCompressConfig"`
-	IgnoreQueryStringConfig IgnoreQueryStringConfig `json:"IgnoreQueryStringConfig" xml:"IgnoreQueryStringConfig"`
+	OptimizeConfig          OptimizeConfig          `json:"OptimizeConfig" xml:"OptimizeConfig"`
+	ReqAuthConfig           ReqAuthConfig           `json:"ReqAuthConfig" xml:"ReqAuthConfig"`
 	RangeConfig             RangeConfig             `json:"RangeConfig" xml:"RangeConfig"`
+	IpAllowListConfig       IpAllowListConfig       `json:"IpAllowListConfig" xml:"IpAllowListConfig"`
+	ErrorPageConfig         ErrorPageConfig         `json:"ErrorPageConfig" xml:"ErrorPageConfig"`
+	ForwardSchemeConfig     ForwardSchemeConfig     `json:"ForwardSchemeConfig" xml:"ForwardSchemeConfig"`
+	AliBusinessConfig       AliBusinessConfig       `json:"AliBusinessConfig" xml:"AliBusinessConfig"`
 	RefererConfig           RefererConfig           `json:"RefererConfig" xml:"RefererConfig"`
-	ReqAuthConfig           ReqAuthConfig           `json:"ReqAuthConfig" xml:"ReqAuthConfig"`
+	CcConfig                CcConfig                `json:"CcConfig" xml:"CcConfig"`
 	SrcHostConfig           SrcHostConfig           `json:"SrcHostConfig" xml:"SrcHostConfig"`
-	VideoSeekConfig         VideoSeekConfig         `json:"VideoSeekConfig" xml:"VideoSeekConfig"`
+	MacServiceConfig        MacServiceConfig        `json:"MacServiceConfig" xml:"MacServiceConfig"`
+	IgnoreQueryStringConfig IgnoreQueryStringConfig `json:"IgnoreQueryStringConfig" xml:"IgnoreQueryStringConfig"`
+	L2OssKeyConfig          L2OssKeyConfig          `json:"L2OssKeyConfig" xml:"L2OssKeyConfig"`
 	WafConfig               WafConfig               `json:"WafConfig" xml:"WafConfig"`
-	NotifyUrlConfig         NotifyUrlConfig         `json:"NotifyUrlConfig" xml:"NotifyUrlConfig"`
 	RedirectTypeConfig      RedirectTypeConfig      `json:"RedirectTypeConfig" xml:"RedirectTypeConfig"`
-	ForwardSchemeConfig     ForwardSchemeConfig     `json:"ForwardSchemeConfig" xml:"ForwardSchemeConfig"`
-	RemoveQueryStringConfig RemoveQueryStringConfig `json:"RemoveQueryStringConfig" xml:"RemoveQueryStringConfig"`
-	L2OssKeyConfig          L2OssKeyConfig          `json:"L2OssKeyConfig" xml:"L2OssKeyConfig"`
-	MacServiceConfig        MacServiceConfig        `json:"MacServiceConfig" xml:"MacServiceConfig"`
 	GreenManagerConfig      GreenManagerConfig      `json:"GreenManagerConfig" xml:"GreenManagerConfig"`
+	RemoveQueryStringConfig RemoveQueryStringConfig `json:"RemoveQueryStringConfig" xml:"RemoveQueryStringConfig"`
 	HttpsOptionConfig       HttpsOptionConfig       `json:"HttpsOptionConfig" xml:"HttpsOptionConfig"`
-	AliBusinessConfig       AliBusinessConfig       `json:"AliBusinessConfig" xml:"AliBusinessConfig"`
-	IpAllowListConfig       IpAllowListConfig       `json:"IpAllowListConfig" xml:"IpAllowListConfig"`
-	CacheExpiredConfigs     CacheExpiredConfigs     `json:"CacheExpiredConfigs" xml:"CacheExpiredConfigs"`
-	HttpErrorPageConfigs    HttpErrorPageConfigs    `json:"HttpErrorPageConfigs" xml:"HttpErrorPageConfigs"`
+	VideoSeekConfig         VideoSeekConfig         `json:"VideoSeekConfig" xml:"VideoSeekConfig"`
+	ReqHeaderConfigs        ReqHeaderConfigs        `json:"ReqHeaderConfigs" xml:"ReqHeaderConfigs"`
 	HttpHeaderConfigs       HttpHeaderConfigs       `json:"HttpHeaderConfigs" xml:"HttpHeaderConfigs"`
+	CacheExpiredConfigs     CacheExpiredConfigs     `json:"CacheExpiredConfigs" xml:"CacheExpiredConfigs"`
 	DynamicConfigs          DynamicConfigs          `json:"DynamicConfigs" xml:"DynamicConfigs"`
-	ReqHeaderConfigs        ReqHeaderConfigs        `json:"ReqHeaderConfigs" xml:"ReqHeaderConfigs"`
 	SetVarsConfigs          SetVarsConfigs          `json:"SetVarsConfigs" xml:"SetVarsConfigs"`
+	HttpErrorPageConfigs    HttpErrorPageConfigs    `json:"HttpErrorPageConfigs" xml:"HttpErrorPageConfigs"`
 }

+ 21 - 0
services/cdn/struct_domain_configs_in_describe_cdn_domain_configs.go

@@ -0,0 +1,21 @@
+package cdn
+
+//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.
+
+// DomainConfigsInDescribeCdnDomainConfigs is a nested struct in cdn response
+type DomainConfigsInDescribeCdnDomainConfigs struct {
+	DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"`
+}

+ 1 - 0
services/cdn/struct_dynamic_config.go

@@ -18,6 +18,7 @@ package cdn
 // DynamicConfig is a nested struct in cdn response
 type DynamicConfig struct {
 	ConfigId            string `json:"ConfigId" xml:"ConfigId"`
+	Enable              string `json:"Enable" xml:"Enable"`
 	DynamicOrigin       string `json:"DynamicOrigin" xml:"DynamicOrigin"`
 	StaticType          string `json:"StaticType" xml:"StaticType"`
 	StaticUri           string `json:"StaticUri" xml:"StaticUri"`

+ 26 - 0
services/cdn/struct_fc_trigger.go

@@ -0,0 +1,26 @@
+package cdn
+
+//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.
+
+// FCTrigger is a nested struct in cdn response
+type FCTrigger struct {
+	EventMetaName    string `json:"EventMetaName" xml:"EventMetaName"`
+	EventMetaVersion string `json:"EventMetaVersion" xml:"EventMetaVersion"`
+	TriggerARN       string `json:"TriggerARN" xml:"TriggerARN"`
+	RoleARN          string `json:"RoleARN" xml:"RoleARN"`
+	SourceArn        string `json:"SourceArn" xml:"SourceArn"`
+	Notes            string `json:"Notes" xml:"Notes"`
+}

+ 22 - 0
services/cdn/struct_function_arg.go

@@ -0,0 +1,22 @@
+package cdn
+
+//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.
+
+// FunctionArg is a nested struct in cdn response
+type FunctionArg struct {
+	ArgName  string `json:"ArgName" xml:"ArgName"`
+	ArgValue string `json:"ArgValue" xml:"ArgValue"`
+}

+ 21 - 0
services/cdn/struct_function_args.go

@@ -0,0 +1,21 @@
+package cdn
+
+//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.
+
+// FunctionArgs is a nested struct in cdn response
+type FunctionArgs struct {
+	FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"`
+}

+ 102 - 0
services/cdn/update_fc_trigger.go

@@ -0,0 +1,102 @@
+package cdn
+
+//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"
+)
+
+// UpdateFCTrigger invokes the cdn.UpdateFCTrigger API synchronously
+// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html
+func (client *Client) UpdateFCTrigger(request *UpdateFCTriggerRequest) (response *UpdateFCTriggerResponse, err error) {
+	response = CreateUpdateFCTriggerResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateFCTriggerWithChan invokes the cdn.UpdateFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateFCTriggerWithChan(request *UpdateFCTriggerRequest) (<-chan *UpdateFCTriggerResponse, <-chan error) {
+	responseChan := make(chan *UpdateFCTriggerResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateFCTrigger(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateFCTriggerWithCallback invokes the cdn.UpdateFCTrigger API asynchronously
+// api document: https://help.aliyun.com/api/cdn/updatefctrigger.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateFCTriggerWithCallback(request *UpdateFCTriggerRequest, callback func(response *UpdateFCTriggerResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateFCTriggerResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateFCTrigger(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateFCTriggerRequest is the request struct for api UpdateFCTrigger
+type UpdateFCTriggerRequest struct {
+	*requests.RpcRequest
+}
+
+// UpdateFCTriggerResponse is the response struct for api UpdateFCTrigger
+type UpdateFCTriggerResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUpdateFCTriggerRequest creates a request to invoke UpdateFCTrigger API
+func CreateUpdateFCTriggerRequest() (request *UpdateFCTriggerRequest) {
+	request = &UpdateFCTriggerRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2014-11-11", "UpdateFCTrigger", "", "")
+	return
+}
+
+// CreateUpdateFCTriggerResponse creates a response to parse from UpdateFCTrigger response
+func CreateUpdateFCTriggerResponse() (response *UpdateFCTriggerResponse) {
+	response = &UpdateFCTriggerResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}