Browse Source

CDN SDK Auto Released By wb-czb515173,Version:1.53.67

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
b4d8a528e7

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-19 Version: 1.53.67
+1, Support ' fc ' Source DomainName
+
 2019-03-19 Version: 1.53.66
 1, move fields: tag, associate_person, cid
 

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

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

+ 2 - 2
services/cdn/describe_domain_certificate_info.go

@@ -83,8 +83,8 @@ type DescribeDomainCertificateInfoRequest struct {
 // 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"`
+	RequestId string                                   `json:"RequestId" xml:"RequestId"`
+	CertInfos CertInfosInDescribeDomainCertificateInfo `json:"CertInfos" xml:"CertInfos"`
 }
 
 // CreateDescribeDomainCertificateInfoRequest creates a request to invoke DescribeDomainCertificateInfo API

+ 5 - 7
services/cdn/describe_domain_flow_data.go

@@ -76,17 +76,15 @@ func (client *Client) DescribeDomainFlowDataWithCallback(request *DescribeDomain
 // DescribeDomainFlowDataRequest is the request struct for api DescribeDomainFlowData
 type DescribeDomainFlowDataRequest struct {
 	*requests.RpcRequest
+	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
+	StartTime      string           `position:"Query" name:"StartTime"`
+	IspNameEn      string           `position:"Query" name:"IspNameEn"`
 	DomainType     string           `position:"Query" name:"DomainType"`
-	FixTimeGap     string           `position:"Query" name:"FixTimeGap"`
-	SecurityToken  string           `position:"Query" name:"SecurityToken"`
 	TimeMerge      string           `position:"Query" name:"TimeMerge"`
 	DomainName     string           `position:"Query" name:"DomainName"`
 	EndTime        string           `position:"Query" name:"EndTime"`
-	LocationNameEn string           `position:"Query" name:"LocationNameEn"`
-	Interval       string           `position:"Query" name:"Interval"`
-	StartTime      string           `position:"Query" name:"StartTime"`
-	IspNameEn      string           `position:"Query" name:"IspNameEn"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+	Interval       string           `position:"Query" name:"Interval"`
 }
 
 // DescribeDomainFlowDataResponse is the response struct for api DescribeDomainFlowData
@@ -94,9 +92,9 @@ type DescribeDomainFlowDataResponse struct {
 	*responses.BaseResponse
 	RequestId           string              `json:"RequestId" xml:"RequestId"`
 	DomainName          string              `json:"DomainName" xml:"DomainName"`
-	DataInterval        string              `json:"DataInterval" xml:"DataInterval"`
 	StartTime           string              `json:"StartTime" xml:"StartTime"`
 	EndTime             string              `json:"EndTime" xml:"EndTime"`
+	DataInterval        string              `json:"DataInterval" xml:"DataInterval"`
 	FlowDataPerInterval FlowDataPerInterval `json:"FlowDataPerInterval" xml:"FlowDataPerInterval"`
 }
 

+ 1 - 1
services/cdn/describe_domain_usage_data.go

@@ -77,13 +77,13 @@ func (client *Client) DescribeDomainUsageDataWithCallback(request *DescribeDomai
 type DescribeDomainUsageDataRequest struct {
 	*requests.RpcRequest
 	StartTime    string           `position:"Query" name:"StartTime"`
-	Type         string           `position:"Query" name:"Type"`
 	DataProtocol string           `position:"Query" name:"DataProtocol"`
 	Area         string           `position:"Query" name:"Area"`
 	DomainName   string           `position:"Query" name:"DomainName"`
 	EndTime      string           `position:"Query" name:"EndTime"`
 	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
 	Field        string           `position:"Query" name:"Field"`
+	Interval     string           `position:"Query" name:"Interval"`
 }
 
 // DescribeDomainUsageDataResponse is the response struct for api DescribeDomainUsageData

+ 15 - 7
services/cdn/struct_cert_info.go

@@ -17,17 +17,25 @@ package cdn
 
 // 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"`
+	DomainList              string `json:"DomainList" xml:"DomainList"`
+	Issuer                  string `json:"Issuer" xml:"Issuer"`
+	DomainNames             string `json:"DomainNames" xml:"DomainNames"`
+	CertExpireTime          string `json:"CertExpireTime" xml:"CertExpireTime"`
+	CertStatus              string `json:"CertStatus" xml:"CertStatus"`
 	CertType                string `json:"CertType" xml:"CertType"`
-	ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"`
-	Status                  string `json:"Status" xml:"Status"`
+	DomainName              string `json:"DomainName" xml:"DomainName"`
+	DomainCnameStatus       string `json:"DomainCnameStatus" xml:"DomainCnameStatus"`
 	ServerCertificate       string `json:"ServerCertificate" xml:"ServerCertificate"`
+	ServerCertificateStatus string `json:"ServerCertificateStatus" xml:"ServerCertificateStatus"`
 	CertUpdateTime          string `json:"CertUpdateTime" xml:"CertUpdateTime"`
+	CertSubjectCommonName   string `json:"CertSubjectCommonName" xml:"CertSubjectCommonName"`
+	CertCommonName          string `json:"CertCommonName" xml:"CertCommonName"`
+	CertCaIsLegacy          string `json:"CertCaIsLegacy" xml:"CertCaIsLegacy"`
+	Status                  string `json:"Status" xml:"Status"`
+	CertExpired             string `json:"CertExpired" xml:"CertExpired"`
+	CertDomainName          string `json:"CertDomainName" xml:"CertDomainName"`
+	CertLife                string `json:"CertLife" xml:"CertLife"`
 	CertStartTime           string `json:"CertStartTime" xml:"CertStartTime"`
-	DomainCnameStatus       string `json:"DomainCnameStatus" xml:"DomainCnameStatus"`
 }

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

+ 3 - 3
services/cdn/struct_supply_bps_datas.go → services/cdn/struct_cert_infos_in_describe_cdn_https_domain_list.go

@@ -15,7 +15,7 @@ package cdn
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// SupplyBpsDatas is a nested struct in cdn response
-type SupplyBpsDatas struct {
-	DataModule []DataModule `json:"DataModule" xml:"DataModule"`
+// CertInfosInDescribeCdnHttpsDomainList is a nested struct in cdn response
+type CertInfosInDescribeCdnHttpsDomainList struct {
+	CertInfo []CertInfo `json:"CertInfo" xml:"CertInfo"`
 }

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