Browse Source

HTTPDNS SDK Auto Released By baijue.xwz,Version:1.45.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 years ago
parent
commit
7a05d03e22

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-12-15 Version: 1.45.0
+1, first release
+2, this SDK is for control purposes, programmatic interface of HTTPDNS console: https://httpdns.console.aliyun.com
+
 2018-12-14 Version: 1.44.2
 1, fixed sdk unit loute .
 2, upgrade rds sdk version 2.2.0.

+ 105 - 0
services/httpdns/add_domain.go

@@ -0,0 +1,105 @@
+package httpdns
+
+//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"
+)
+
+// AddDomain invokes the httpdns.AddDomain API synchronously
+// api document: https://help.aliyun.com/api/httpdns/adddomain.html
+func (client *Client) AddDomain(request *AddDomainRequest) (response *AddDomainResponse, err error) {
+	response = CreateAddDomainResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddDomainWithChan invokes the httpdns.AddDomain API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/adddomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddDomainWithChan(request *AddDomainRequest) (<-chan *AddDomainResponse, <-chan error) {
+	responseChan := make(chan *AddDomainResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddDomain(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddDomainWithCallback invokes the httpdns.AddDomain API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/adddomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddDomainWithCallback(request *AddDomainRequest, callback func(response *AddDomainResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddDomainResponse
+		var err error
+		defer close(result)
+		response, err = client.AddDomain(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddDomainRequest is the request struct for api AddDomain
+type AddDomainRequest struct {
+	*requests.RpcRequest
+	AccountId  string `position:"Query" name:"AccountId"`
+	DomainName string `position:"Query" name:"DomainName"`
+}
+
+// AddDomainResponse is the response struct for api AddDomain
+type AddDomainResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	DomainName string `json:"DomainName" xml:"DomainName"`
+}
+
+// CreateAddDomainRequest creates a request to invoke AddDomain API
+func CreateAddDomainRequest() (request *AddDomainRequest) {
+	request = &AddDomainRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "AddDomain", "", "")
+	return
+}
+
+// CreateAddDomainResponse creates a response to parse from AddDomain response
+func CreateAddDomainResponse() (response *AddDomainResponse) {
+	response = &AddDomainResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 81 - 0
services/httpdns/client.go

@@ -0,0 +1,81 @@
+package httpdns
+
+//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"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+type Client struct {
+	sdk.Client
+}
+
+// NewClient creates a sdk client with environment variables
+func NewClient() (client *Client, err error) {
+	client = &Client{}
+	err = client.Init()
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithOptions(regionId, config, credential)
+	return
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://help.aliyun.com/document_detail/66217.html
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://help.aliyun.com/document_detail/66222.html
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://help.aliyun.com/document_detail/66223.html
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// attention: rsa key pair auth is only Japan regions available
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 105 - 0
services/httpdns/delete_domain.go

@@ -0,0 +1,105 @@
+package httpdns
+
+//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"
+)
+
+// DeleteDomain invokes the httpdns.DeleteDomain API synchronously
+// api document: https://help.aliyun.com/api/httpdns/deletedomain.html
+func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error) {
+	response = CreateDeleteDomainResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteDomainWithChan invokes the httpdns.DeleteDomain API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/deletedomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDomainWithChan(request *DeleteDomainRequest) (<-chan *DeleteDomainResponse, <-chan error) {
+	responseChan := make(chan *DeleteDomainResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteDomain(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteDomainWithCallback invokes the httpdns.DeleteDomain API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/deletedomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDomainWithCallback(request *DeleteDomainRequest, callback func(response *DeleteDomainResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteDomainResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteDomain(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteDomainRequest is the request struct for api DeleteDomain
+type DeleteDomainRequest struct {
+	*requests.RpcRequest
+	AccountId  string `position:"Query" name:"AccountId"`
+	DomainName string `position:"Query" name:"DomainName"`
+}
+
+// DeleteDomainResponse is the response struct for api DeleteDomain
+type DeleteDomainResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	DomainName string `json:"DomainName" xml:"DomainName"`
+}
+
+// CreateDeleteDomainRequest creates a request to invoke DeleteDomain API
+func CreateDeleteDomainRequest() (request *DeleteDomainRequest) {
+	request = &DeleteDomainRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "DeleteDomain", "", "")
+	return
+}
+
+// CreateDeleteDomainResponse creates a response to parse from DeleteDomain response
+func CreateDeleteDomainResponse() (response *DeleteDomainResponse) {
+	response = &DeleteDomainResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/httpdns/describe_domains.go

@@ -0,0 +1,109 @@
+package httpdns
+
+//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"
+)
+
+// DescribeDomains invokes the httpdns.DescribeDomains API synchronously
+// api document: https://help.aliyun.com/api/httpdns/describedomains.html
+func (client *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) {
+	response = CreateDescribeDomainsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDomainsWithChan invokes the httpdns.DescribeDomains API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/describedomains.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainsWithChan(request *DescribeDomainsRequest) (<-chan *DescribeDomainsResponse, <-chan error) {
+	responseChan := make(chan *DescribeDomainsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDomains(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDomainsWithCallback invokes the httpdns.DescribeDomains API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/describedomains.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainsWithCallback(request *DescribeDomainsRequest, callback func(response *DescribeDomainsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDomainsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDomains(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDomainsRequest is the request struct for api DescribeDomains
+type DescribeDomainsRequest struct {
+	*requests.RpcRequest
+	AccountId  string           `position:"Query" name:"AccountId"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+}
+
+// DescribeDomainsResponse is the response struct for api DescribeDomains
+type DescribeDomainsResponse struct {
+	*responses.BaseResponse
+	RequestId  string  `json:"RequestId" xml:"RequestId"`
+	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
+	PageNumber int     `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int     `json:"PageSize" xml:"PageSize"`
+	Domains    Domains `json:"Domains" xml:"Domains"`
+}
+
+// CreateDescribeDomainsRequest creates a request to invoke DescribeDomains API
+func CreateDescribeDomainsRequest() (request *DescribeDomainsRequest) {
+	request = &DescribeDomainsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "DescribeDomains", "", "")
+	return
+}
+
+// CreateDescribeDomainsResponse creates a response to parse from DescribeDomains response
+func CreateDescribeDomainsResponse() (response *DescribeDomainsResponse) {
+	response = &DescribeDomainsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 103 - 0
services/httpdns/get_account_info.go

@@ -0,0 +1,103 @@
+package httpdns
+
+//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"
+)
+
+// GetAccountInfo invokes the httpdns.GetAccountInfo API synchronously
+// api document: https://help.aliyun.com/api/httpdns/getaccountinfo.html
+func (client *Client) GetAccountInfo(request *GetAccountInfoRequest) (response *GetAccountInfoResponse, err error) {
+	response = CreateGetAccountInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetAccountInfoWithChan invokes the httpdns.GetAccountInfo API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getaccountinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetAccountInfoWithChan(request *GetAccountInfoRequest) (<-chan *GetAccountInfoResponse, <-chan error) {
+	responseChan := make(chan *GetAccountInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetAccountInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetAccountInfoWithCallback invokes the httpdns.GetAccountInfo API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getaccountinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetAccountInfoWithCallback(request *GetAccountInfoRequest, callback func(response *GetAccountInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetAccountInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.GetAccountInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetAccountInfoRequest is the request struct for api GetAccountInfo
+type GetAccountInfoRequest struct {
+	*requests.RpcRequest
+}
+
+// GetAccountInfoResponse is the response struct for api GetAccountInfo
+type GetAccountInfoResponse struct {
+	*responses.BaseResponse
+	RequestId   string      `json:"RequestId" xml:"RequestId"`
+	AccountInfo AccountInfo `json:"AccountInfo" xml:"AccountInfo"`
+}
+
+// CreateGetAccountInfoRequest creates a request to invoke GetAccountInfo API
+func CreateGetAccountInfoRequest() (request *GetAccountInfoRequest) {
+	request = &GetAccountInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "GetAccountInfo", "", "")
+	return
+}
+
+// CreateGetAccountInfoResponse creates a response to parse from GetAccountInfo response
+func CreateGetAccountInfoResponse() (response *GetAccountInfoResponse) {
+	response = &GetAccountInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/httpdns/get_resolve_count_summary.go

@@ -0,0 +1,105 @@
+package httpdns
+
+//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"
+)
+
+// GetResolveCountSummary invokes the httpdns.GetResolveCountSummary API synchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvecountsummary.html
+func (client *Client) GetResolveCountSummary(request *GetResolveCountSummaryRequest) (response *GetResolveCountSummaryResponse, err error) {
+	response = CreateGetResolveCountSummaryResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetResolveCountSummaryWithChan invokes the httpdns.GetResolveCountSummary API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvecountsummary.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetResolveCountSummaryWithChan(request *GetResolveCountSummaryRequest) (<-chan *GetResolveCountSummaryResponse, <-chan error) {
+	responseChan := make(chan *GetResolveCountSummaryResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetResolveCountSummary(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetResolveCountSummaryWithCallback invokes the httpdns.GetResolveCountSummary API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvecountsummary.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetResolveCountSummaryWithCallback(request *GetResolveCountSummaryRequest, callback func(response *GetResolveCountSummaryResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetResolveCountSummaryResponse
+		var err error
+		defer close(result)
+		response, err = client.GetResolveCountSummary(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetResolveCountSummaryRequest is the request struct for api GetResolveCountSummary
+type GetResolveCountSummaryRequest struct {
+	*requests.RpcRequest
+	Granularity string           `position:"Query" name:"Granularity"`
+	TimeSpan    requests.Integer `position:"Query" name:"TimeSpan"`
+}
+
+// GetResolveCountSummaryResponse is the response struct for api GetResolveCountSummary
+type GetResolveCountSummaryResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	ResolveSummary ResolveSummary `json:"ResolveSummary" xml:"ResolveSummary"`
+}
+
+// CreateGetResolveCountSummaryRequest creates a request to invoke GetResolveCountSummary API
+func CreateGetResolveCountSummaryRequest() (request *GetResolveCountSummaryRequest) {
+	request = &GetResolveCountSummaryRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "GetResolveCountSummary", "", "")
+	return
+}
+
+// CreateGetResolveCountSummaryResponse creates a response to parse from GetResolveCountSummary response
+func CreateGetResolveCountSummaryResponse() (response *GetResolveCountSummaryResponse) {
+	response = &GetResolveCountSummaryResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/httpdns/get_resolve_statistics.go

@@ -0,0 +1,107 @@
+package httpdns
+
+//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"
+)
+
+// GetResolveStatistics invokes the httpdns.GetResolveStatistics API synchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvestatistics.html
+func (client *Client) GetResolveStatistics(request *GetResolveStatisticsRequest) (response *GetResolveStatisticsResponse, err error) {
+	response = CreateGetResolveStatisticsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetResolveStatisticsWithChan invokes the httpdns.GetResolveStatistics API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvestatistics.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetResolveStatisticsWithChan(request *GetResolveStatisticsRequest) (<-chan *GetResolveStatisticsResponse, <-chan error) {
+	responseChan := make(chan *GetResolveStatisticsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetResolveStatistics(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetResolveStatisticsWithCallback invokes the httpdns.GetResolveStatistics API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/getresolvestatistics.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetResolveStatisticsWithCallback(request *GetResolveStatisticsRequest, callback func(response *GetResolveStatisticsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetResolveStatisticsResponse
+		var err error
+		defer close(result)
+		response, err = client.GetResolveStatistics(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetResolveStatisticsRequest is the request struct for api GetResolveStatistics
+type GetResolveStatisticsRequest struct {
+	*requests.RpcRequest
+	Granularity  string           `position:"Query" name:"Granularity"`
+	ProtocolName string           `position:"Query" name:"ProtocolName"`
+	DomainName   string           `position:"Query" name:"DomainName"`
+	TimeSpan     requests.Integer `position:"Query" name:"TimeSpan"`
+}
+
+// GetResolveStatisticsResponse is the response struct for api GetResolveStatistics
+type GetResolveStatisticsResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	DataPoints DataPoints `json:"DataPoints" xml:"DataPoints"`
+}
+
+// CreateGetResolveStatisticsRequest creates a request to invoke GetResolveStatistics API
+func CreateGetResolveStatisticsRequest() (request *GetResolveStatisticsRequest) {
+	request = &GetResolveStatisticsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "GetResolveStatistics", "", "")
+	return
+}
+
+// CreateGetResolveStatisticsResponse creates a response to parse from GetResolveStatistics response
+func CreateGetResolveStatisticsResponse() (response *GetResolveStatisticsResponse) {
+	response = &GetResolveStatisticsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/httpdns/list_domains.go

@@ -0,0 +1,108 @@
+package httpdns
+
+//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"
+)
+
+// ListDomains invokes the httpdns.ListDomains API synchronously
+// api document: https://help.aliyun.com/api/httpdns/listdomains.html
+func (client *Client) ListDomains(request *ListDomainsRequest) (response *ListDomainsResponse, err error) {
+	response = CreateListDomainsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListDomainsWithChan invokes the httpdns.ListDomains API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/listdomains.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListDomainsWithChan(request *ListDomainsRequest) (<-chan *ListDomainsResponse, <-chan error) {
+	responseChan := make(chan *ListDomainsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListDomains(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListDomainsWithCallback invokes the httpdns.ListDomains API asynchronously
+// api document: https://help.aliyun.com/api/httpdns/listdomains.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListDomainsWithCallback(request *ListDomainsRequest, callback func(response *ListDomainsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListDomainsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListDomains(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListDomainsRequest is the request struct for api ListDomains
+type ListDomainsRequest struct {
+	*requests.RpcRequest
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+}
+
+// ListDomainsResponse is the response struct for api ListDomains
+type ListDomainsResponse struct {
+	*responses.BaseResponse
+	RequestId   string      `json:"RequestId" xml:"RequestId"`
+	TotalCount  int         `json:"TotalCount" xml:"TotalCount"`
+	PageNumber  int         `json:"PageNumber" xml:"PageNumber"`
+	PageSize    int         `json:"PageSize" xml:"PageSize"`
+	DomainInfos DomainInfos `json:"DomainInfos" xml:"DomainInfos"`
+}
+
+// CreateListDomainsRequest creates a request to invoke ListDomains API
+func CreateListDomainsRequest() (request *ListDomainsRequest) {
+	request = &ListDomainsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Httpdns", "2016-02-01", "ListDomains", "", "")
+	return
+}
+
+// CreateListDomainsResponse creates a response to parse from ListDomains response
+func CreateListDomainsResponse() (response *ListDomainsResponse) {
+	response = &ListDomainsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 30 - 0
services/httpdns/struct_account_info.go

@@ -0,0 +1,30 @@
+package httpdns
+
+//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.
+
+// AccountInfo is a nested struct in httpdns response
+type AccountInfo struct {
+	AccountId              string `json:"AccountId" xml:"AccountId"`
+	MonthFreeCount         int    `json:"MonthFreeCount" xml:"MonthFreeCount"`
+	MonthHttpsResolveCount int    `json:"MonthHttpsResolveCount" xml:"MonthHttpsResolveCount"`
+	MonthResolveCount      int    `json:"MonthResolveCount" xml:"MonthResolveCount"`
+	PackageCount           int    `json:"PackageCount" xml:"PackageCount"`
+	UserStatus             int    `json:"UserStatus" xml:"UserStatus"`
+	SignSecret             string `json:"SignSecret" xml:"SignSecret"`
+	UnsignedEnabled        bool   `json:"UnsignedEnabled" xml:"UnsignedEnabled"`
+	SignedCount            int    `json:"SignedCount" xml:"SignedCount"`
+	UnsignedCount          int    `json:"UnsignedCount" xml:"UnsignedCount"`
+}

+ 22 - 0
services/httpdns/struct_data_point.go

@@ -0,0 +1,22 @@
+package httpdns
+
+//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.
+
+// DataPoint is a nested struct in httpdns response
+type DataPoint struct {
+	Time  int `json:"Time" xml:"Time"`
+	Count int `json:"Count" xml:"Count"`
+}

+ 21 - 0
services/httpdns/struct_data_points.go

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

+ 21 - 0
services/httpdns/struct_domain.go

@@ -0,0 +1,21 @@
+package httpdns
+
+//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.
+
+// Domain is a nested struct in httpdns response
+type Domain struct {
+	DomainName string `json:"DomainName" xml:"DomainName"`
+}

+ 23 - 0
services/httpdns/struct_domain_info.go

@@ -0,0 +1,23 @@
+package httpdns
+
+//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.
+
+// DomainInfo is a nested struct in httpdns response
+type DomainInfo struct {
+	DomainName    string `json:"DomainName" xml:"DomainName"`
+	Resolved      int    `json:"Resolved" xml:"Resolved"`
+	ResolvedHttps int    `json:"ResolvedHttps" xml:"ResolvedHttps"`
+}

+ 21 - 0
services/httpdns/struct_domain_infos.go

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

+ 21 - 0
services/httpdns/struct_domains.go

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

+ 22 - 0
services/httpdns/struct_resolve_summary.go

@@ -0,0 +1,22 @@
+package httpdns
+
+//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.
+
+// ResolveSummary is a nested struct in httpdns response
+type ResolveSummary struct {
+	Http  int `json:"Http" xml:"Http"`
+	Https int `json:"Https" xml:"Https"`
+}