浏览代码

Generated 2014-11-11, 2018-05-10 for Cdn.

sdk-team 5 年之前
父节点
当前提交
c3decad345
共有 43 个文件被更改,包括 1557 次插入41 次删除
  1. 4 0
      ChangeLog.txt
  2. 114 0
      services/cdn/create_cdn_certificate_signing_request.go
  3. 106 0
      services/cdn/delete_specific_staging_config.go
  4. 2 2
      services/cdn/describe_cdn_domain_configs.go
  5. 106 0
      services/cdn/describe_cdn_domain_staging_config.go
  6. 105 0
      services/cdn/describe_certificate_info_by_id.go
  7. 109 0
      services/cdn/describe_config_of_version.go
  8. 1 1
      services/cdn/describe_domain_cname.go
  9. 1 0
      services/cdn/describe_domain_real_time_detail_data.go
  10. 112 0
      services/cdn/describe_domain_src_qps_data.go
  11. 3 3
      services/cdn/describe_live_stream_record_content.go
  12. 3 3
      services/cdn/describe_live_stream_record_index_file.go
  13. 3 3
      services/cdn/describe_live_stream_record_index_files.go
  14. 3 3
      services/cdn/describe_live_streams_control_history.go
  15. 3 3
      services/cdn/describe_live_streams_online_list.go
  16. 2 0
      services/cdn/describe_refresh_quota.go
  17. 104 0
      services/cdn/describe_staging_ip.go
  18. 3 3
      services/cdn/forbid_live_stream.go
  19. 3 3
      services/cdn/modify_cdn_domain.go
  20. 105 0
      services/cdn/publish_staging_config_to_production.go
  21. 3 3
      services/cdn/resume_live_stream.go
  22. 105 0
      services/cdn/rollback_staging_config.go
  23. 105 0
      services/cdn/set_cdn_domain_csr_certificate.go
  24. 105 0
      services/cdn/set_cdn_domain_staging_config.go
  25. 111 0
      services/cdn/set_config_of_version.go
  26. 1 1
      services/cdn/set_error_page_config.go
  27. 2 2
      services/cdn/set_http_header_config.go
  28. 1 1
      services/cdn/set_path_cache_expired_config.go
  29. 2 2
      services/cdn/set_referer_config.go
  30. 3 3
      services/cdn/set_req_header_config.go
  31. 3 0
      services/cdn/struct_cert_info.go
  32. 21 0
      services/cdn/struct_cert_infos_in_describe_certificate_info_by_id.go
  33. 4 4
      services/cdn/struct_domain_config.go
  34. 27 1
      services/cdn/struct_domain_configs.go
  35. 21 0
      services/cdn/struct_domain_configs_in_describe_cdn_domain_staging_config.go
  36. 21 0
      services/cdn/struct_function_args_in_describe_cdn_domain_configs.go
  37. 21 0
      services/cdn/struct_function_args_in_describe_cdn_domain_staging_config.go
  38. 21 0
      services/cdn/struct_function_args_in_describe_config_of_version.go
  39. 21 0
      services/cdn/struct_ipv4s.go
  40. 1 0
      services/cdn/struct_resource_package_info.go
  41. 21 0
      services/cdn/struct_src_qps_data_per_interval.go
  42. 24 0
      services/cdn/struct_version_config.go
  43. 21 0
      services/cdn/struct_version_configs.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-02-13 Version: v1.60.363
+- Generated 2014-11-11, 2018-05-10 for `Cdn`.
+- Add Staging apis.
+
 2020-02-13 Version: v1.60.362
 - Generated 2018-11-01 for `dms-enterprise`.
 - Fix GetDataCorrectOrderDetail API return empty database information.

+ 114 - 0
services/cdn/create_cdn_certificate_signing_request.go

@@ -0,0 +1,114 @@
+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"
+)
+
+// CreateCdnCertificateSigningRequest invokes the cdn.CreateCdnCertificateSigningRequest API synchronously
+// api document: https://help.aliyun.com/api/cdn/createcdncertificatesigningrequest.html
+func (client *Client) CreateCdnCertificateSigningRequest(request *CreateCdnCertificateSigningRequestRequest) (response *CreateCdnCertificateSigningRequestResponse, err error) {
+	response = CreateCreateCdnCertificateSigningRequestResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateCdnCertificateSigningRequestWithChan invokes the cdn.CreateCdnCertificateSigningRequest API asynchronously
+// api document: https://help.aliyun.com/api/cdn/createcdncertificatesigningrequest.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCdnCertificateSigningRequestWithChan(request *CreateCdnCertificateSigningRequestRequest) (<-chan *CreateCdnCertificateSigningRequestResponse, <-chan error) {
+	responseChan := make(chan *CreateCdnCertificateSigningRequestResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateCdnCertificateSigningRequest(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateCdnCertificateSigningRequestWithCallback invokes the cdn.CreateCdnCertificateSigningRequest API asynchronously
+// api document: https://help.aliyun.com/api/cdn/createcdncertificatesigningrequest.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCdnCertificateSigningRequestWithCallback(request *CreateCdnCertificateSigningRequestRequest, callback func(response *CreateCdnCertificateSigningRequestResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateCdnCertificateSigningRequestResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateCdnCertificateSigningRequest(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateCdnCertificateSigningRequestRequest is the request struct for api CreateCdnCertificateSigningRequest
+type CreateCdnCertificateSigningRequestRequest struct {
+	*requests.RpcRequest
+	Country          string           `position:"Query" name:"Country"`
+	City             string           `position:"Query" name:"City"`
+	CommonName       string           `position:"Query" name:"CommonName"`
+	State            string           `position:"Query" name:"State"`
+	Email            string           `position:"Query" name:"Email"`
+	SANs             string           `position:"Query" name:"SANs"`
+	OwnerId          requests.Integer `position:"Query" name:"OwnerId"`
+	Organization     string           `position:"Query" name:"Organization"`
+	OrganizationUnit string           `position:"Query" name:"OrganizationUnit"`
+}
+
+// CreateCdnCertificateSigningRequestResponse is the response struct for api CreateCdnCertificateSigningRequest
+type CreateCdnCertificateSigningRequestResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	CommonName string `json:"CommonName" xml:"CommonName"`
+	Csr        string `json:"Csr" xml:"Csr"`
+	PubMd5     string `json:"PubMd5" xml:"PubMd5"`
+}
+
+// CreateCreateCdnCertificateSigningRequestRequest creates a request to invoke CreateCdnCertificateSigningRequest API
+func CreateCreateCdnCertificateSigningRequestRequest() (request *CreateCdnCertificateSigningRequestRequest) {
+	request = &CreateCdnCertificateSigningRequestRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "CreateCdnCertificateSigningRequest", "", "")
+	return
+}
+
+// CreateCreateCdnCertificateSigningRequestResponse creates a response to parse from CreateCdnCertificateSigningRequest response
+func CreateCreateCdnCertificateSigningRequestResponse() (response *CreateCdnCertificateSigningRequestResponse) {
+	response = &CreateCdnCertificateSigningRequestResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cdn/delete_specific_staging_config.go

@@ -0,0 +1,106 @@
+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"
+)
+
+// DeleteSpecificStagingConfig invokes the cdn.DeleteSpecificStagingConfig API synchronously
+// api document: https://help.aliyun.com/api/cdn/deletespecificstagingconfig.html
+func (client *Client) DeleteSpecificStagingConfig(request *DeleteSpecificStagingConfigRequest) (response *DeleteSpecificStagingConfigResponse, err error) {
+	response = CreateDeleteSpecificStagingConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteSpecificStagingConfigWithChan invokes the cdn.DeleteSpecificStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/deletespecificstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSpecificStagingConfigWithChan(request *DeleteSpecificStagingConfigRequest) (<-chan *DeleteSpecificStagingConfigResponse, <-chan error) {
+	responseChan := make(chan *DeleteSpecificStagingConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteSpecificStagingConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteSpecificStagingConfigWithCallback invokes the cdn.DeleteSpecificStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/deletespecificstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteSpecificStagingConfigWithCallback(request *DeleteSpecificStagingConfigRequest, callback func(response *DeleteSpecificStagingConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteSpecificStagingConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteSpecificStagingConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteSpecificStagingConfigRequest is the request struct for api DeleteSpecificStagingConfig
+type DeleteSpecificStagingConfigRequest struct {
+	*requests.RpcRequest
+	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	ConfigId      string           `position:"Query" name:"ConfigId"`
+}
+
+// DeleteSpecificStagingConfigResponse is the response struct for api DeleteSpecificStagingConfig
+type DeleteSpecificStagingConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteSpecificStagingConfigRequest creates a request to invoke DeleteSpecificStagingConfig API
+func CreateDeleteSpecificStagingConfigRequest() (request *DeleteSpecificStagingConfigRequest) {
+	request = &DeleteSpecificStagingConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DeleteSpecificStagingConfig", "", "")
+	return
+}
+
+// CreateDeleteSpecificStagingConfigResponse creates a response to parse from DeleteSpecificStagingConfig response
+func CreateDeleteSpecificStagingConfigResponse() (response *DeleteSpecificStagingConfigResponse) {
+	response = &DeleteSpecificStagingConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/cdn/describe_cdn_domain_configs.go

@@ -85,8 +85,8 @@ type DescribeCdnDomainConfigsRequest struct {
 // DescribeCdnDomainConfigsResponse is the response struct for api DescribeCdnDomainConfigs
 type DescribeCdnDomainConfigsResponse struct {
 	*responses.BaseResponse
-	RequestId     string        `json:"RequestId" xml:"RequestId"`
-	DomainConfigs DomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"`
+	RequestId     string                                  `json:"RequestId" xml:"RequestId"`
+	DomainConfigs DomainConfigsInDescribeCdnDomainConfigs `json:"DomainConfigs" xml:"DomainConfigs"`
 }
 
 // CreateDescribeCdnDomainConfigsRequest creates a request to invoke DescribeCdnDomainConfigs API

+ 106 - 0
services/cdn/describe_cdn_domain_staging_config.go

@@ -0,0 +1,106 @@
+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"
+)
+
+// DescribeCdnDomainStagingConfig invokes the cdn.DescribeCdnDomainStagingConfig API synchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainstagingconfig.html
+func (client *Client) DescribeCdnDomainStagingConfig(request *DescribeCdnDomainStagingConfigRequest) (response *DescribeCdnDomainStagingConfigResponse, err error) {
+	response = CreateDescribeCdnDomainStagingConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCdnDomainStagingConfigWithChan invokes the cdn.DescribeCdnDomainStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCdnDomainStagingConfigWithChan(request *DescribeCdnDomainStagingConfigRequest) (<-chan *DescribeCdnDomainStagingConfigResponse, <-chan error) {
+	responseChan := make(chan *DescribeCdnDomainStagingConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCdnDomainStagingConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCdnDomainStagingConfigWithCallback invokes the cdn.DescribeCdnDomainStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecdndomainstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCdnDomainStagingConfigWithCallback(request *DescribeCdnDomainStagingConfigRequest, callback func(response *DescribeCdnDomainStagingConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCdnDomainStagingConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCdnDomainStagingConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCdnDomainStagingConfigRequest is the request struct for api DescribeCdnDomainStagingConfig
+type DescribeCdnDomainStagingConfigRequest struct {
+	*requests.RpcRequest
+	FunctionNames string           `position:"Query" name:"FunctionNames"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeCdnDomainStagingConfigResponse is the response struct for api DescribeCdnDomainStagingConfig
+type DescribeCdnDomainStagingConfigResponse struct {
+	*responses.BaseResponse
+	RequestId     string         `json:"RequestId" xml:"RequestId"`
+	DomainConfigs []DomainConfig `json:"DomainConfigs" xml:"DomainConfigs"`
+}
+
+// CreateDescribeCdnDomainStagingConfigRequest creates a request to invoke DescribeCdnDomainStagingConfig API
+func CreateDescribeCdnDomainStagingConfigRequest() (request *DescribeCdnDomainStagingConfigRequest) {
+	request = &DescribeCdnDomainStagingConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeCdnDomainStagingConfig", "", "")
+	return
+}
+
+// CreateDescribeCdnDomainStagingConfigResponse creates a response to parse from DescribeCdnDomainStagingConfig response
+func CreateDescribeCdnDomainStagingConfigResponse() (response *DescribeCdnDomainStagingConfigResponse) {
+	response = &DescribeCdnDomainStagingConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/cdn/describe_certificate_info_by_id.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// DescribeCertificateInfoByID invokes the cdn.DescribeCertificateInfoByID API synchronously
+// api document: https://help.aliyun.com/api/cdn/describecertificateinfobyid.html
+func (client *Client) DescribeCertificateInfoByID(request *DescribeCertificateInfoByIDRequest) (response *DescribeCertificateInfoByIDResponse, err error) {
+	response = CreateDescribeCertificateInfoByIDResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCertificateInfoByIDWithChan invokes the cdn.DescribeCertificateInfoByID API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecertificateinfobyid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCertificateInfoByIDWithChan(request *DescribeCertificateInfoByIDRequest) (<-chan *DescribeCertificateInfoByIDResponse, <-chan error) {
+	responseChan := make(chan *DescribeCertificateInfoByIDResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCertificateInfoByID(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCertificateInfoByIDWithCallback invokes the cdn.DescribeCertificateInfoByID API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describecertificateinfobyid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCertificateInfoByIDWithCallback(request *DescribeCertificateInfoByIDRequest, callback func(response *DescribeCertificateInfoByIDResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCertificateInfoByIDResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCertificateInfoByID(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCertificateInfoByIDRequest is the request struct for api DescribeCertificateInfoByID
+type DescribeCertificateInfoByIDRequest struct {
+	*requests.RpcRequest
+	CertId  string           `position:"Query" name:"CertId"`
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeCertificateInfoByIDResponse is the response struct for api DescribeCertificateInfoByID
+type DescribeCertificateInfoByIDResponse struct {
+	*responses.BaseResponse
+	RequestId string                                 `json:"RequestId" xml:"RequestId"`
+	CertInfos CertInfosInDescribeCertificateInfoByID `json:"CertInfos" xml:"CertInfos"`
+}
+
+// CreateDescribeCertificateInfoByIDRequest creates a request to invoke DescribeCertificateInfoByID API
+func CreateDescribeCertificateInfoByIDRequest() (request *DescribeCertificateInfoByIDRequest) {
+	request = &DescribeCertificateInfoByIDRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeCertificateInfoByID", "", "")
+	return
+}
+
+// CreateDescribeCertificateInfoByIDResponse creates a response to parse from DescribeCertificateInfoByID response
+func CreateDescribeCertificateInfoByIDResponse() (response *DescribeCertificateInfoByIDResponse) {
+	response = &DescribeCertificateInfoByIDResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/cdn/describe_config_of_version.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// DescribeConfigOfVersion invokes the cdn.DescribeConfigOfVersion API synchronously
+// api document: https://help.aliyun.com/api/cdn/describeconfigofversion.html
+func (client *Client) DescribeConfigOfVersion(request *DescribeConfigOfVersionRequest) (response *DescribeConfigOfVersionResponse, err error) {
+	response = CreateDescribeConfigOfVersionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeConfigOfVersionWithChan invokes the cdn.DescribeConfigOfVersion API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describeconfigofversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConfigOfVersionWithChan(request *DescribeConfigOfVersionRequest) (<-chan *DescribeConfigOfVersionResponse, <-chan error) {
+	responseChan := make(chan *DescribeConfigOfVersionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeConfigOfVersion(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeConfigOfVersionWithCallback invokes the cdn.DescribeConfigOfVersion API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describeconfigofversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConfigOfVersionWithCallback(request *DescribeConfigOfVersionRequest, callback func(response *DescribeConfigOfVersionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeConfigOfVersionResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeConfigOfVersion(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeConfigOfVersionRequest is the request struct for api DescribeConfigOfVersion
+type DescribeConfigOfVersionRequest struct {
+	*requests.RpcRequest
+	VersionId     string           `position:"Query" name:"VersionId"`
+	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	FunctionName  string           `position:"Query" name:"FunctionName"`
+	GroupId       requests.Integer `position:"Query" name:"GroupId"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	FunctionId    requests.Integer `position:"Query" name:"FunctionId"`
+}
+
+// DescribeConfigOfVersionResponse is the response struct for api DescribeConfigOfVersion
+type DescribeConfigOfVersionResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	VersionConfigs VersionConfigs `json:"VersionConfigs" xml:"VersionConfigs"`
+}
+
+// CreateDescribeConfigOfVersionRequest creates a request to invoke DescribeConfigOfVersion API
+func CreateDescribeConfigOfVersionRequest() (request *DescribeConfigOfVersionRequest) {
+	request = &DescribeConfigOfVersionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeConfigOfVersion", "", "")
+	return
+}
+
+// CreateDescribeConfigOfVersionResponse creates a response to parse from DescribeConfigOfVersion response
+func CreateDescribeConfigOfVersionResponse() (response *DescribeConfigOfVersionResponse) {
+	response = &DescribeConfigOfVersionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cdn/describe_domain_cname.go

@@ -92,7 +92,7 @@ func CreateDescribeDomainCnameRequest() (request *DescribeDomainCnameRequest) {
 	request = &DescribeDomainCnameRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeDomainCname", "", "")
+	request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainCname", "", "")
 	return
 }
 

+ 1 - 0
services/cdn/describe_domain_real_time_detail_data.go

@@ -82,6 +82,7 @@ type DescribeDomainRealTimeDetailDataRequest struct {
 	Merge          string           `position:"Query" name:"Merge"`
 	DomainName     string           `position:"Query" name:"DomainName"`
 	EndTime        string           `position:"Query" name:"EndTime"`
+	MergeLocIsp    string           `position:"Query" name:"MergeLocIsp"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	Field          string           `position:"Query" name:"Field"`
 }

+ 112 - 0
services/cdn/describe_domain_src_qps_data.go

@@ -0,0 +1,112 @@
+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"
+)
+
+// DescribeDomainSrcQpsData invokes the cdn.DescribeDomainSrcQpsData API synchronously
+// api document: https://help.aliyun.com/api/cdn/describedomainsrcqpsdata.html
+func (client *Client) DescribeDomainSrcQpsData(request *DescribeDomainSrcQpsDataRequest) (response *DescribeDomainSrcQpsDataResponse, err error) {
+	response = CreateDescribeDomainSrcQpsDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDomainSrcQpsDataWithChan invokes the cdn.DescribeDomainSrcQpsData API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describedomainsrcqpsdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainSrcQpsDataWithChan(request *DescribeDomainSrcQpsDataRequest) (<-chan *DescribeDomainSrcQpsDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeDomainSrcQpsDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDomainSrcQpsData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDomainSrcQpsDataWithCallback invokes the cdn.DescribeDomainSrcQpsData API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describedomainsrcqpsdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainSrcQpsDataWithCallback(request *DescribeDomainSrcQpsDataRequest, callback func(response *DescribeDomainSrcQpsDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDomainSrcQpsDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDomainSrcQpsData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDomainSrcQpsDataRequest is the request struct for api DescribeDomainSrcQpsData
+type DescribeDomainSrcQpsDataRequest 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"`
+	Interval   string           `position:"Query" name:"Interval"`
+}
+
+// DescribeDomainSrcQpsDataResponse is the response struct for api DescribeDomainSrcQpsData
+type DescribeDomainSrcQpsDataResponse struct {
+	*responses.BaseResponse
+	RequestId             string                `json:"RequestId" xml:"RequestId"`
+	DomainName            string                `json:"DomainName" xml:"DomainName"`
+	StartTime             string                `json:"StartTime" xml:"StartTime"`
+	EndTime               string                `json:"EndTime" xml:"EndTime"`
+	DataInterval          string                `json:"DataInterval" xml:"DataInterval"`
+	SrcQpsDataPerInterval SrcQpsDataPerInterval `json:"SrcQpsDataPerInterval" xml:"SrcQpsDataPerInterval"`
+}
+
+// CreateDescribeDomainSrcQpsDataRequest creates a request to invoke DescribeDomainSrcQpsData API
+func CreateDescribeDomainSrcQpsDataRequest() (request *DescribeDomainSrcQpsDataRequest) {
+	request = &DescribeDomainSrcQpsDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeDomainSrcQpsData", "", "")
+	return
+}
+
+// CreateDescribeDomainSrcQpsDataResponse creates a response to parse from DescribeDomainSrcQpsData response
+func CreateDescribeDomainSrcQpsDataResponse() (response *DescribeDomainSrcQpsDataResponse) {
+	response = &DescribeDomainSrcQpsDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/cdn/describe_live_stream_record_content.go

@@ -76,13 +76,13 @@ func (client *Client) DescribeLiveStreamRecordContentWithCallback(request *Descr
 // DescribeLiveStreamRecordContentRequest is the request struct for api DescribeLiveStreamRecordContent
 type DescribeLiveStreamRecordContentRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	EndTime       string           `position:"Query" name:"EndTime"`
 	StartTime     string           `position:"Query" name:"StartTime"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	AppName       string           `position:"Query" name:"AppName"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	StreamName    string           `position:"Query" name:"StreamName"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	EndTime       string           `position:"Query" name:"EndTime"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveStreamRecordContentResponse is the response struct for api DescribeLiveStreamRecordContent

+ 3 - 3
services/cdn/describe_live_stream_record_index_file.go

@@ -76,12 +76,12 @@ func (client *Client) DescribeLiveStreamRecordIndexFileWithCallback(request *Des
 // DescribeLiveStreamRecordIndexFileRequest is the request struct for api DescribeLiveStreamRecordIndexFile
 type DescribeLiveStreamRecordIndexFileRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
-	RecordId      string           `position:"Query" name:"RecordId"`
 	AppName       string           `position:"Query" name:"AppName"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	StreamName    string           `position:"Query" name:"StreamName"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	RecordId      string           `position:"Query" name:"RecordId"`
 }
 
 // DescribeLiveStreamRecordIndexFileResponse is the response struct for api DescribeLiveStreamRecordIndexFile

+ 3 - 3
services/cdn/describe_live_stream_record_index_files.go

@@ -76,13 +76,13 @@ func (client *Client) DescribeLiveStreamRecordIndexFilesWithCallback(request *De
 // DescribeLiveStreamRecordIndexFilesRequest is the request struct for api DescribeLiveStreamRecordIndexFiles
 type DescribeLiveStreamRecordIndexFilesRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	EndTime       string           `position:"Query" name:"EndTime"`
 	StartTime     string           `position:"Query" name:"StartTime"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	AppName       string           `position:"Query" name:"AppName"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	StreamName    string           `position:"Query" name:"StreamName"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	EndTime       string           `position:"Query" name:"EndTime"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveStreamRecordIndexFilesResponse is the response struct for api DescribeLiveStreamRecordIndexFiles

+ 3 - 3
services/cdn/describe_live_streams_control_history.go

@@ -76,12 +76,12 @@ func (client *Client) DescribeLiveStreamsControlHistoryWithCallback(request *Des
 // DescribeLiveStreamsControlHistoryRequest is the request struct for api DescribeLiveStreamsControlHistory
 type DescribeLiveStreamsControlHistoryRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	EndTime       string           `position:"Query" name:"EndTime"`
 	StartTime     string           `position:"Query" name:"StartTime"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	AppName       string           `position:"Query" name:"AppName"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	EndTime       string           `position:"Query" name:"EndTime"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveStreamsControlHistoryResponse is the response struct for api DescribeLiveStreamsControlHistory

+ 3 - 3
services/cdn/describe_live_streams_online_list.go

@@ -76,13 +76,13 @@ func (client *Client) DescribeLiveStreamsOnlineListWithCallback(request *Describ
 // DescribeLiveStreamsOnlineListRequest is the request struct for api DescribeLiveStreamsOnlineList
 type DescribeLiveStreamsOnlineListRequest struct {
 	*requests.RpcRequest
-	StreamType    string           `position:"Query" name:"StreamType"`
-	DomainName    string           `position:"Query" name:"DomainName"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	PageNum       requests.Integer `position:"Query" name:"PageNum"`
 	AppName       string           `position:"Query" name:"AppName"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	StreamType    string           `position:"Query" name:"StreamType"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveStreamsOnlineListResponse is the response struct for api DescribeLiveStreamsOnlineList

+ 2 - 0
services/cdn/describe_refresh_quota.go

@@ -92,6 +92,8 @@ type DescribeRefreshQuotaResponse struct {
 	BlockQuota    string `json:"BlockQuota" xml:"BlockQuota"`
 	PreloadRemain string `json:"PreloadRemain" xml:"PreloadRemain"`
 	BlockRemain   string `json:"blockRemain" xml:"blockRemain"`
+	RegexQuota    string `json:"RegexQuota" xml:"RegexQuota"`
+	RegexRemain   string `json:"RegexRemain" xml:"RegexRemain"`
 }
 
 // CreateDescribeRefreshQuotaRequest creates a request to invoke DescribeRefreshQuota API

+ 104 - 0
services/cdn/describe_staging_ip.go

@@ -0,0 +1,104 @@
+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"
+)
+
+// DescribeStagingIp invokes the cdn.DescribeStagingIp API synchronously
+// api document: https://help.aliyun.com/api/cdn/describestagingip.html
+func (client *Client) DescribeStagingIp(request *DescribeStagingIpRequest) (response *DescribeStagingIpResponse, err error) {
+	response = CreateDescribeStagingIpResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeStagingIpWithChan invokes the cdn.DescribeStagingIp API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describestagingip.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeStagingIpWithChan(request *DescribeStagingIpRequest) (<-chan *DescribeStagingIpResponse, <-chan error) {
+	responseChan := make(chan *DescribeStagingIpResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeStagingIp(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeStagingIpWithCallback invokes the cdn.DescribeStagingIp API asynchronously
+// api document: https://help.aliyun.com/api/cdn/describestagingip.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeStagingIpWithCallback(request *DescribeStagingIpRequest, callback func(response *DescribeStagingIpResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeStagingIpResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeStagingIp(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeStagingIpRequest is the request struct for api DescribeStagingIp
+type DescribeStagingIpRequest struct {
+	*requests.RpcRequest
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeStagingIpResponse is the response struct for api DescribeStagingIp
+type DescribeStagingIpResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	IPV4s     IPV4s  `json:"IPV4s" xml:"IPV4s"`
+}
+
+// CreateDescribeStagingIpRequest creates a request to invoke DescribeStagingIp API
+func CreateDescribeStagingIpRequest() (request *DescribeStagingIpRequest) {
+	request = &DescribeStagingIpRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "DescribeStagingIp", "", "")
+	return
+}
+
+// CreateDescribeStagingIpResponse creates a response to parse from DescribeStagingIp response
+func CreateDescribeStagingIpResponse() (response *DescribeStagingIpResponse) {
+	response = &DescribeStagingIpResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/cdn/forbid_live_stream.go

@@ -76,13 +76,13 @@ func (client *Client) ForbidLiveStreamWithCallback(request *ForbidLiveStreamRequ
 // ForbidLiveStreamRequest is the request struct for api ForbidLiveStream
 type ForbidLiveStreamRequest struct {
 	*requests.RpcRequest
+	AppName        string           `position:"Query" name:"AppName"`
+	SecurityToken  string           `position:"Query" name:"SecurityToken"`
+	StreamName     string           `position:"Query" name:"StreamName"`
 	ResumeTime     string           `position:"Query" name:"ResumeTime"`
 	LiveStreamType string           `position:"Query" name:"LiveStreamType"`
 	DomainName     string           `position:"Query" name:"DomainName"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	AppName        string           `position:"Query" name:"AppName"`
-	SecurityToken  string           `position:"Query" name:"SecurityToken"`
-	StreamName     string           `position:"Query" name:"StreamName"`
 }
 
 // ForbidLiveStreamResponse is the response struct for api ForbidLiveStream

+ 3 - 3
services/cdn/modify_cdn_domain.go

@@ -76,12 +76,12 @@ func (client *Client) ModifyCdnDomainWithCallback(request *ModifyCdnDomainReques
 // ModifyCdnDomainRequest is the request struct for api ModifyCdnDomain
 type ModifyCdnDomainRequest 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"`
 }
 
 // ModifyCdnDomainResponse is the response struct for api ModifyCdnDomain

+ 105 - 0
services/cdn/publish_staging_config_to_production.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// PublishStagingConfigToProduction invokes the cdn.PublishStagingConfigToProduction API synchronously
+// api document: https://help.aliyun.com/api/cdn/publishstagingconfigtoproduction.html
+func (client *Client) PublishStagingConfigToProduction(request *PublishStagingConfigToProductionRequest) (response *PublishStagingConfigToProductionResponse, err error) {
+	response = CreatePublishStagingConfigToProductionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PublishStagingConfigToProductionWithChan invokes the cdn.PublishStagingConfigToProduction API asynchronously
+// api document: https://help.aliyun.com/api/cdn/publishstagingconfigtoproduction.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PublishStagingConfigToProductionWithChan(request *PublishStagingConfigToProductionRequest) (<-chan *PublishStagingConfigToProductionResponse, <-chan error) {
+	responseChan := make(chan *PublishStagingConfigToProductionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PublishStagingConfigToProduction(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PublishStagingConfigToProductionWithCallback invokes the cdn.PublishStagingConfigToProduction API asynchronously
+// api document: https://help.aliyun.com/api/cdn/publishstagingconfigtoproduction.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PublishStagingConfigToProductionWithCallback(request *PublishStagingConfigToProductionRequest, callback func(response *PublishStagingConfigToProductionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PublishStagingConfigToProductionResponse
+		var err error
+		defer close(result)
+		response, err = client.PublishStagingConfigToProduction(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PublishStagingConfigToProductionRequest is the request struct for api PublishStagingConfigToProduction
+type PublishStagingConfigToProductionRequest struct {
+	*requests.RpcRequest
+	FunctionName string           `position:"Query" name:"FunctionName"`
+	DomainName   string           `position:"Query" name:"DomainName"`
+	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// PublishStagingConfigToProductionResponse is the response struct for api PublishStagingConfigToProduction
+type PublishStagingConfigToProductionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreatePublishStagingConfigToProductionRequest creates a request to invoke PublishStagingConfigToProduction API
+func CreatePublishStagingConfigToProductionRequest() (request *PublishStagingConfigToProductionRequest) {
+	request = &PublishStagingConfigToProductionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "PublishStagingConfigToProduction", "", "")
+	return
+}
+
+// CreatePublishStagingConfigToProductionResponse creates a response to parse from PublishStagingConfigToProduction response
+func CreatePublishStagingConfigToProductionResponse() (response *PublishStagingConfigToProductionResponse) {
+	response = &PublishStagingConfigToProductionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/cdn/resume_live_stream.go

@@ -76,12 +76,12 @@ func (client *Client) ResumeLiveStreamWithCallback(request *ResumeLiveStreamRequ
 // ResumeLiveStreamRequest is the request struct for api ResumeLiveStream
 type ResumeLiveStreamRequest struct {
 	*requests.RpcRequest
-	LiveStreamType string           `position:"Query" name:"LiveStreamType"`
-	DomainName     string           `position:"Query" name:"DomainName"`
-	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	AppName        string           `position:"Query" name:"AppName"`
 	SecurityToken  string           `position:"Query" name:"SecurityToken"`
 	StreamName     string           `position:"Query" name:"StreamName"`
+	LiveStreamType string           `position:"Query" name:"LiveStreamType"`
+	DomainName     string           `position:"Query" name:"DomainName"`
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // ResumeLiveStreamResponse is the response struct for api ResumeLiveStream

+ 105 - 0
services/cdn/rollback_staging_config.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// RollbackStagingConfig invokes the cdn.RollbackStagingConfig API synchronously
+// api document: https://help.aliyun.com/api/cdn/rollbackstagingconfig.html
+func (client *Client) RollbackStagingConfig(request *RollbackStagingConfigRequest) (response *RollbackStagingConfigResponse, err error) {
+	response = CreateRollbackStagingConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RollbackStagingConfigWithChan invokes the cdn.RollbackStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/rollbackstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RollbackStagingConfigWithChan(request *RollbackStagingConfigRequest) (<-chan *RollbackStagingConfigResponse, <-chan error) {
+	responseChan := make(chan *RollbackStagingConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RollbackStagingConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RollbackStagingConfigWithCallback invokes the cdn.RollbackStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/rollbackstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RollbackStagingConfigWithCallback(request *RollbackStagingConfigRequest, callback func(response *RollbackStagingConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RollbackStagingConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.RollbackStagingConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RollbackStagingConfigRequest is the request struct for api RollbackStagingConfig
+type RollbackStagingConfigRequest struct {
+	*requests.RpcRequest
+	FunctionName string           `position:"Query" name:"FunctionName"`
+	DomainName   string           `position:"Query" name:"DomainName"`
+	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// RollbackStagingConfigResponse is the response struct for api RollbackStagingConfig
+type RollbackStagingConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRollbackStagingConfigRequest creates a request to invoke RollbackStagingConfig API
+func CreateRollbackStagingConfigRequest() (request *RollbackStagingConfigRequest) {
+	request = &RollbackStagingConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "RollbackStagingConfig", "", "")
+	return
+}
+
+// CreateRollbackStagingConfigResponse creates a response to parse from RollbackStagingConfig response
+func CreateRollbackStagingConfigResponse() (response *RollbackStagingConfigResponse) {
+	response = &RollbackStagingConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/cdn/set_cdn_domain_csr_certificate.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// SetCdnDomainCSRCertificate invokes the cdn.SetCdnDomainCSRCertificate API synchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomaincsrcertificate.html
+func (client *Client) SetCdnDomainCSRCertificate(request *SetCdnDomainCSRCertificateRequest) (response *SetCdnDomainCSRCertificateResponse, err error) {
+	response = CreateSetCdnDomainCSRCertificateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetCdnDomainCSRCertificateWithChan invokes the cdn.SetCdnDomainCSRCertificate API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomaincsrcertificate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetCdnDomainCSRCertificateWithChan(request *SetCdnDomainCSRCertificateRequest) (<-chan *SetCdnDomainCSRCertificateResponse, <-chan error) {
+	responseChan := make(chan *SetCdnDomainCSRCertificateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetCdnDomainCSRCertificate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetCdnDomainCSRCertificateWithCallback invokes the cdn.SetCdnDomainCSRCertificate API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomaincsrcertificate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetCdnDomainCSRCertificateWithCallback(request *SetCdnDomainCSRCertificateRequest, callback func(response *SetCdnDomainCSRCertificateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetCdnDomainCSRCertificateResponse
+		var err error
+		defer close(result)
+		response, err = client.SetCdnDomainCSRCertificate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetCdnDomainCSRCertificateRequest is the request struct for api SetCdnDomainCSRCertificate
+type SetCdnDomainCSRCertificateRequest struct {
+	*requests.RpcRequest
+	Certificate string           `position:"Query" name:"Certificate"`
+	DomainName  string           `position:"Query" name:"DomainName"`
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// SetCdnDomainCSRCertificateResponse is the response struct for api SetCdnDomainCSRCertificate
+type SetCdnDomainCSRCertificateResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetCdnDomainCSRCertificateRequest creates a request to invoke SetCdnDomainCSRCertificate API
+func CreateSetCdnDomainCSRCertificateRequest() (request *SetCdnDomainCSRCertificateRequest) {
+	request = &SetCdnDomainCSRCertificateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "SetCdnDomainCSRCertificate", "", "")
+	return
+}
+
+// CreateSetCdnDomainCSRCertificateResponse creates a response to parse from SetCdnDomainCSRCertificate response
+func CreateSetCdnDomainCSRCertificateResponse() (response *SetCdnDomainCSRCertificateResponse) {
+	response = &SetCdnDomainCSRCertificateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/cdn/set_cdn_domain_staging_config.go

@@ -0,0 +1,105 @@
+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"
+)
+
+// SetCdnDomainStagingConfig invokes the cdn.SetCdnDomainStagingConfig API synchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomainstagingconfig.html
+func (client *Client) SetCdnDomainStagingConfig(request *SetCdnDomainStagingConfigRequest) (response *SetCdnDomainStagingConfigResponse, err error) {
+	response = CreateSetCdnDomainStagingConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetCdnDomainStagingConfigWithChan invokes the cdn.SetCdnDomainStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomainstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetCdnDomainStagingConfigWithChan(request *SetCdnDomainStagingConfigRequest) (<-chan *SetCdnDomainStagingConfigResponse, <-chan error) {
+	responseChan := make(chan *SetCdnDomainStagingConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetCdnDomainStagingConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetCdnDomainStagingConfigWithCallback invokes the cdn.SetCdnDomainStagingConfig API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setcdndomainstagingconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetCdnDomainStagingConfigWithCallback(request *SetCdnDomainStagingConfigRequest, callback func(response *SetCdnDomainStagingConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetCdnDomainStagingConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.SetCdnDomainStagingConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetCdnDomainStagingConfigRequest is the request struct for api SetCdnDomainStagingConfig
+type SetCdnDomainStagingConfigRequest struct {
+	*requests.RpcRequest
+	Functions  string           `position:"Query" name:"Functions"`
+	DomainName string           `position:"Query" name:"DomainName"`
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// SetCdnDomainStagingConfigResponse is the response struct for api SetCdnDomainStagingConfig
+type SetCdnDomainStagingConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetCdnDomainStagingConfigRequest creates a request to invoke SetCdnDomainStagingConfig API
+func CreateSetCdnDomainStagingConfigRequest() (request *SetCdnDomainStagingConfigRequest) {
+	request = &SetCdnDomainStagingConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "SetCdnDomainStagingConfig", "", "")
+	return
+}
+
+// CreateSetCdnDomainStagingConfigResponse creates a response to parse from SetCdnDomainStagingConfig response
+func CreateSetCdnDomainStagingConfigResponse() (response *SetCdnDomainStagingConfigResponse) {
+	response = &SetCdnDomainStagingConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/cdn/set_config_of_version.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// SetConfigOfVersion invokes the cdn.SetConfigOfVersion API synchronously
+// api document: https://help.aliyun.com/api/cdn/setconfigofversion.html
+func (client *Client) SetConfigOfVersion(request *SetConfigOfVersionRequest) (response *SetConfigOfVersionResponse, err error) {
+	response = CreateSetConfigOfVersionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetConfigOfVersionWithChan invokes the cdn.SetConfigOfVersion API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setconfigofversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetConfigOfVersionWithChan(request *SetConfigOfVersionRequest) (<-chan *SetConfigOfVersionResponse, <-chan error) {
+	responseChan := make(chan *SetConfigOfVersionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetConfigOfVersion(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetConfigOfVersionWithCallback invokes the cdn.SetConfigOfVersion API asynchronously
+// api document: https://help.aliyun.com/api/cdn/setconfigofversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetConfigOfVersionWithCallback(request *SetConfigOfVersionRequest, callback func(response *SetConfigOfVersionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetConfigOfVersionResponse
+		var err error
+		defer close(result)
+		response, err = client.SetConfigOfVersion(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetConfigOfVersionRequest is the request struct for api SetConfigOfVersion
+type SetConfigOfVersionRequest struct {
+	*requests.RpcRequest
+	FunctionMatches string           `position:"Query" name:"FunctionMatches"`
+	VersionId       string           `position:"Query" name:"VersionId"`
+	SecurityToken   string           `position:"Query" name:"SecurityToken"`
+	FunctionName    string           `position:"Query" name:"FunctionName"`
+	FunctionArgs    string           `position:"Query" name:"FunctionArgs"`
+	OwnerAccount    string           `position:"Query" name:"OwnerAccount"`
+	OwnerId         requests.Integer `position:"Query" name:"OwnerId"`
+	FunctionId      requests.Integer `position:"Query" name:"FunctionId"`
+	ConfigId        string           `position:"Query" name:"ConfigId"`
+}
+
+// SetConfigOfVersionResponse is the response struct for api SetConfigOfVersion
+type SetConfigOfVersionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetConfigOfVersionRequest creates a request to invoke SetConfigOfVersion API
+func CreateSetConfigOfVersionRequest() (request *SetConfigOfVersionRequest) {
+	request = &SetConfigOfVersionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cdn", "2018-05-10", "SetConfigOfVersion", "", "")
+	return
+}
+
+// CreateSetConfigOfVersionResponse creates a response to parse from SetConfigOfVersion response
+func CreateSetConfigOfVersionResponse() (response *SetConfigOfVersionResponse) {
+	response = &SetConfigOfVersionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cdn/set_error_page_config.go

@@ -77,10 +77,10 @@ func (client *Client) SetErrorPageConfigWithCallback(request *SetErrorPageConfig
 type SetErrorPageConfigRequest struct {
 	*requests.RpcRequest
 	PageType      string           `position:"Query" name:"PageType"`
+	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	DomainName    string           `position:"Query" name:"DomainName"`
 	CustomPageUrl string           `position:"Query" name:"CustomPageUrl"`
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
-	SecurityToken string           `position:"Query" name:"SecurityToken"`
 }
 
 // SetErrorPageConfigResponse is the response struct for api SetErrorPageConfig

+ 2 - 2
services/cdn/set_http_header_config.go

@@ -76,10 +76,10 @@ func (client *Client) SetHttpHeaderConfigWithCallback(request *SetHttpHeaderConf
 // SetHttpHeaderConfigRequest is the request struct for api SetHttpHeaderConfig
 type SetHttpHeaderConfigRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	HeaderValue   string           `position:"Query" name:"HeaderValue"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	ConfigId      requests.Integer `position:"Query" name:"ConfigId"`
 	HeaderKey     string           `position:"Query" name:"HeaderKey"`
 }

+ 1 - 1
services/cdn/set_path_cache_expired_config.go

@@ -76,12 +76,12 @@ func (client *Client) SetPathCacheExpiredConfigWithCallback(request *SetPathCach
 // SetPathCacheExpiredConfigRequest is the request struct for api SetPathCacheExpiredConfig
 type SetPathCacheExpiredConfigRequest struct {
 	*requests.RpcRequest
+	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	DomainName    string           `position:"Query" name:"DomainName"`
 	Weight        string           `position:"Query" name:"Weight"`
 	CacheContent  string           `position:"Query" name:"CacheContent"`
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	TTL           string           `position:"Query" name:"TTL"`
-	SecurityToken string           `position:"Query" name:"SecurityToken"`
 }
 
 // SetPathCacheExpiredConfigResponse is the response struct for api SetPathCacheExpiredConfig

+ 2 - 2
services/cdn/set_referer_config.go

@@ -77,11 +77,11 @@ func (client *Client) SetRefererConfigWithCallback(request *SetRefererConfigRequ
 type SetRefererConfigRequest struct {
 	*requests.RpcRequest
 	ReferList     string           `position:"Query" name:"ReferList"`
-	DomainName    string           `position:"Query" name:"DomainName"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
 	ReferType     string           `position:"Query" name:"ReferType"`
 	DisableAst    string           `position:"Query" name:"DisableAst"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	AllowEmpty    string           `position:"Query" name:"AllowEmpty"`
 }
 

+ 3 - 3
services/cdn/set_req_header_config.go

@@ -76,12 +76,12 @@ func (client *Client) SetReqHeaderConfigWithCallback(request *SetReqHeaderConfig
 // SetReqHeaderConfigRequest is the request struct for api SetReqHeaderConfig
 type SetReqHeaderConfigRequest struct {
 	*requests.RpcRequest
-	DomainName    string           `position:"Query" name:"DomainName"`
-	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
-	ConfigId      requests.Integer `position:"Query" name:"ConfigId"`
 	Value         string           `position:"Query" name:"Value"`
 	Key           string           `position:"Query" name:"Key"`
+	DomainName    string           `position:"Query" name:"DomainName"`
+	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
+	ConfigId      requests.Integer `position:"Query" name:"ConfigId"`
 }
 
 // SetReqHeaderConfigResponse is the response struct for api SetReqHeaderConfig

+ 3 - 0
services/cdn/struct_cert_info.go

@@ -21,12 +21,14 @@ type CertInfo struct {
 	CertOrg                 string `json:"CertOrg" xml:"CertOrg"`
 	DomainList              string `json:"DomainList" xml:"DomainList"`
 	Issuer                  string `json:"Issuer" xml:"Issuer"`
+	HttpsCrt                string `json:"HttpsCrt" xml:"HttpsCrt"`
 	DomainNames             string `json:"DomainNames" xml:"DomainNames"`
 	CertExpireTime          string `json:"CertExpireTime" xml:"CertExpireTime"`
 	CertStatus              string `json:"CertStatus" xml:"CertStatus"`
 	CertType                string `json:"CertType" xml:"CertType"`
 	DomainName              string `json:"DomainName" xml:"DomainName"`
 	DomainCnameStatus       string `json:"DomainCnameStatus" xml:"DomainCnameStatus"`
+	CreateTime              string `json:"CreateTime" xml:"CreateTime"`
 	ServerCertificate       string `json:"ServerCertificate" xml:"ServerCertificate"`
 	ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"`
 	CertUpdateTime          string `json:"CertUpdateTime" xml:"CertUpdateTime"`
@@ -38,4 +40,5 @@ type CertInfo struct {
 	CertDomainName          string `json:"CertDomainName" xml:"CertDomainName"`
 	CertLife                string `json:"CertLife" xml:"CertLife"`
 	CertStartTime           string `json:"CertStartTime" xml:"CertStartTime"`
+	CertId                  string `json:"CertId" xml:"CertId"`
 }

+ 21 - 0
services/cdn/struct_cert_infos_in_describe_certificate_info_by_id.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.
+
+// CertInfosInDescribeCertificateInfoByID is a nested struct in cdn response
+type CertInfosInDescribeCertificateInfoByID struct {
+	CertInfo []CertInfo `json:"CertInfo" xml:"CertInfo"`
+}

+ 4 - 4
services/cdn/struct_domain_config.go

@@ -17,8 +17,8 @@ package cdn
 
 // 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"`
+	ConfigId     string                                 `json:"ConfigId" xml:"ConfigId"`
+	Status       string                                 `json:"Status" xml:"Status"`
+	FunctionName string                                 `json:"FunctionName" xml:"FunctionName"`
+	FunctionArgs FunctionArgsInDescribeCdnDomainConfigs `json:"FunctionArgs" xml:"FunctionArgs"`
 }

+ 27 - 1
services/cdn/struct_domain_configs.go

@@ -17,5 +17,31 @@ package cdn
 
 // DomainConfigs is a nested struct in cdn response
 type DomainConfigs struct {
-	DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"`
+	NotifyUrlConfig         NotifyUrlConfig         `json:"NotifyUrlConfig" xml:"NotifyUrlConfig"`
+	PageCompressConfig      PageCompressConfig      `json:"PageCompressConfig" xml:"PageCompressConfig"`
+	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"`
+	CcConfig                CcConfig                `json:"CcConfig" xml:"CcConfig"`
+	SrcHostConfig           SrcHostConfig           `json:"SrcHostConfig" xml:"SrcHostConfig"`
+	MacServiceConfig        MacServiceConfig        `json:"MacServiceConfig" xml:"MacServiceConfig"`
+	IgnoreQueryStringConfig IgnoreQueryStringConfig `json:"IgnoreQueryStringConfig" xml:"IgnoreQueryStringConfig"`
+	L2OssKeyConfig          L2OssKeyConfig          `json:"L2OssKeyConfig" xml:"L2OssKeyConfig"`
+	WafConfig               WafConfig               `json:"WafConfig" xml:"WafConfig"`
+	RedirectTypeConfig      RedirectTypeConfig      `json:"RedirectTypeConfig" xml:"RedirectTypeConfig"`
+	GreenManagerConfig      GreenManagerConfig      `json:"GreenManagerConfig" xml:"GreenManagerConfig"`
+	RemoveQueryStringConfig RemoveQueryStringConfig `json:"RemoveQueryStringConfig" xml:"RemoveQueryStringConfig"`
+	HttpsOptionConfig       HttpsOptionConfig       `json:"HttpsOptionConfig" xml:"HttpsOptionConfig"`
+	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"`
+	SetVarsConfigs          SetVarsConfigs          `json:"SetVarsConfigs" xml:"SetVarsConfigs"`
+	HttpErrorPageConfigs    HttpErrorPageConfigs    `json:"HttpErrorPageConfigs" xml:"HttpErrorPageConfigs"`
 }

+ 21 - 0
services/cdn/struct_domain_configs_in_describe_cdn_domain_staging_config.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.
+
+// DomainConfigsInDescribeCdnDomainStagingConfig is a nested struct in cdn response
+type DomainConfigsInDescribeCdnDomainStagingConfig struct {
+	DomainConfig []DomainConfig `json:"DomainConfig" xml:"DomainConfig"`
+}

+ 21 - 0
services/cdn/struct_function_args_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.
+
+// FunctionArgsInDescribeCdnDomainConfigs is a nested struct in cdn response
+type FunctionArgsInDescribeCdnDomainConfigs struct {
+	FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"`
+}

+ 21 - 0
services/cdn/struct_function_args_in_describe_cdn_domain_staging_config.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.
+
+// FunctionArgsInDescribeCdnDomainStagingConfig is a nested struct in cdn response
+type FunctionArgsInDescribeCdnDomainStagingConfig struct {
+	FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"`
+}

+ 21 - 0
services/cdn/struct_function_args_in_describe_config_of_version.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.
+
+// FunctionArgsInDescribeConfigOfVersion is a nested struct in cdn response
+type FunctionArgsInDescribeConfigOfVersion struct {
+	FunctionArg []FunctionArg `json:"FunctionArg" xml:"FunctionArg"`
+}

+ 21 - 0
services/cdn/struct_ipv4s.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.
+
+// IPV4s is a nested struct in cdn response
+type IPV4s struct {
+	IPV4 []string `json:"IPV4" xml:"IPV4"`
+}

+ 1 - 0
services/cdn/struct_resource_package_info.go

@@ -21,6 +21,7 @@ type ResourcePackageInfo struct {
 	InitCapacity  string `json:"InitCapacity" xml:"InitCapacity"`
 	CommodityCode string `json:"CommodityCode" xml:"CommodityCode"`
 	DisplayName   string `json:"DisplayName" xml:"DisplayName"`
+	TemplateName  string `json:"TemplateName" xml:"TemplateName"`
 	InstanceId    string `json:"InstanceId" xml:"InstanceId"`
 	Status        string `json:"Status" xml:"Status"`
 	StartTime     string `json:"StartTime" xml:"StartTime"`

+ 21 - 0
services/cdn/struct_src_qps_data_per_interval.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.
+
+// SrcQpsDataPerInterval is a nested struct in cdn response
+type SrcQpsDataPerInterval struct {
+	DataModule []DataModule `json:"DataModule" xml:"DataModule"`
+}

+ 24 - 0
services/cdn/struct_version_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.
+
+// VersionConfig is a nested struct in cdn response
+type VersionConfig struct {
+	Status       string                                `json:"Status" xml:"Status"`
+	ConfigId     string                                `json:"ConfigId" xml:"ConfigId"`
+	FunctionName string                                `json:"FunctionName" xml:"FunctionName"`
+	FunctionArgs FunctionArgsInDescribeConfigOfVersion `json:"FunctionArgs" xml:"FunctionArgs"`
+}

+ 21 - 0
services/cdn/struct_version_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.
+
+// VersionConfigs is a nested struct in cdn response
+type VersionConfigs struct {
+	VersionConfig []VersionConfig `json:"VersionConfig" xml:"VersionConfig"`
+}