Browse Source

Generated 2015-01-09 for Alidns.

sdk-team 5 years ago
parent
commit
b88571b9ab

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-02-04 Version: v1.60.350
+- Generated 2015-01-09 for `Alidns`.
+- Update default endpoints.
+
 2020-02-04 Version: v1.60.349
 - Generated 2015-01-01 for `R-kvstore`.
 - Generated 2015-01-01 for `R-kvstore`.

+ 114 - 0
services/alidns/describe_domain_dnssec_info.go

@@ -0,0 +1,114 @@
+package alidns
+
+//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"
+)
+
+// DescribeDomainDnssecInfo invokes the alidns.DescribeDomainDnssecInfo API synchronously
+// api document: https://help.aliyun.com/api/alidns/describedomaindnssecinfo.html
+func (client *Client) DescribeDomainDnssecInfo(request *DescribeDomainDnssecInfoRequest) (response *DescribeDomainDnssecInfoResponse, err error) {
+	response = CreateDescribeDomainDnssecInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDomainDnssecInfoWithChan invokes the alidns.DescribeDomainDnssecInfo API asynchronously
+// api document: https://help.aliyun.com/api/alidns/describedomaindnssecinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainDnssecInfoWithChan(request *DescribeDomainDnssecInfoRequest) (<-chan *DescribeDomainDnssecInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeDomainDnssecInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDomainDnssecInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDomainDnssecInfoWithCallback invokes the alidns.DescribeDomainDnssecInfo API asynchronously
+// api document: https://help.aliyun.com/api/alidns/describedomaindnssecinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDomainDnssecInfoWithCallback(request *DescribeDomainDnssecInfoRequest, callback func(response *DescribeDomainDnssecInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDomainDnssecInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDomainDnssecInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDomainDnssecInfoRequest is the request struct for api DescribeDomainDnssecInfo
+type DescribeDomainDnssecInfoRequest struct {
+	*requests.RpcRequest
+	DomainName   string `position:"Query" name:"DomainName"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// DescribeDomainDnssecInfoResponse is the response struct for api DescribeDomainDnssecInfo
+type DescribeDomainDnssecInfoResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	DomainName string `json:"DomainName" xml:"DomainName"`
+	Status     string `json:"Status" xml:"Status"`
+	DsRecord   string `json:"DsRecord" xml:"DsRecord"`
+	Digest     string `json:"Digest" xml:"Digest"`
+	DigestType string `json:"DigestType" xml:"DigestType"`
+	Algorithm  string `json:"Algorithm" xml:"Algorithm"`
+	PublicKey  string `json:"PublicKey" xml:"PublicKey"`
+	KeyTag     string `json:"KeyTag" xml:"KeyTag"`
+	Flags      string `json:"Flags" xml:"Flags"`
+}
+
+// CreateDescribeDomainDnssecInfoRequest creates a request to invoke DescribeDomainDnssecInfo API
+func CreateDescribeDomainDnssecInfoRequest() (request *DescribeDomainDnssecInfoRequest) {
+	request = &DescribeDomainDnssecInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainDnssecInfo", "alidns", "openAPI")
+	return
+}
+
+// CreateDescribeDomainDnssecInfoResponse creates a response to parse from DescribeDomainDnssecInfo response
+func CreateDescribeDomainDnssecInfoResponse() (response *DescribeDomainDnssecInfoResponse) {
+	response = &DescribeDomainDnssecInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 0
services/alidns/describe_domains.go

@@ -76,6 +76,7 @@ func (client *Client) DescribeDomainsWithCallback(request *DescribeDomainsReques
 // DescribeDomainsRequest is the request struct for api DescribeDomains
 type DescribeDomainsRequest struct {
 	*requests.RpcRequest
+	StartDate       string           `position:"Query" name:"StartDate"`
 	PageNumber      requests.Integer `position:"Query" name:"PageNumber"`
 	ResourceGroupId string           `position:"Query" name:"ResourceGroupId"`
 	PageSize        requests.Integer `position:"Query" name:"PageSize"`
@@ -85,6 +86,7 @@ type DescribeDomainsRequest struct {
 	Starmark        requests.Boolean `position:"Query" name:"Starmark"`
 	GroupId         string           `position:"Query" name:"GroupId"`
 	OrderBy         string           `position:"Query" name:"OrderBy"`
+	EndDate         string           `position:"Query" name:"EndDate"`
 	UserClientIp    string           `position:"Query" name:"UserClientIp"`
 	SearchMode      string           `position:"Query" name:"SearchMode"`
 }

+ 3 - 3
services/alidns/endpoint.go

@@ -30,8 +30,8 @@ func GetEndpointMap() map[string]string {
 			"cn-shanghai-et2-b01":         "dns.aliyuncs.com",
 			"ap-southeast-1":              "alidns.ap-southeast-1.aliyuncs.com",
 			"ap-southeast-2":              "alidns.ap-southeast-1.aliyuncs.com",
-			"ap-southeast-3":              "alidns.ap-southeast-1.aliyuncs.com",
-			"ap-southeast-5":              "alidns.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-3":              "alidns.ap-southeast-3.aliyuncs.com",
+			"ap-southeast-5":              "alidns.ap-southeast-5.aliyuncs.com",
 			"us-east-1":                   "alidns.ap-southeast-1.aliyuncs.com",
 			"cn-shenzhen-inner":           "dns.aliyuncs.com",
 			"cn-zhangjiakou-na62-a01":     "dns.aliyuncs.com",
@@ -55,7 +55,7 @@ func GetEndpointMap() map[string]string {
 			"cn-hangzhou-internal-test-2": "dns.aliyuncs.com",
 			"cn-shenzhen-finance-1":       "dns.aliyuncs.com",
 			"me-east-1":                   "alidns.ap-southeast-1.aliyuncs.com",
-			"cn-chengdu":                  "dns.aliyuncs.com",
+			"cn-chengdu":                  "alidns.cn-chengdu.aliyuncs.com",
 			"cn-hangzhou-test-306":        "dns.aliyuncs.com",
 			"cn-hangzhou-finance":         "dns.aliyuncs.com",
 			"cn-beijing-nu16-b01":         "dns.aliyuncs.com",

+ 106 - 0
services/alidns/set_domain_dnssec_status.go

@@ -0,0 +1,106 @@
+package alidns
+
+//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"
+)
+
+// SetDomainDnssecStatus invokes the alidns.SetDomainDnssecStatus API synchronously
+// api document: https://help.aliyun.com/api/alidns/setdomaindnssecstatus.html
+func (client *Client) SetDomainDnssecStatus(request *SetDomainDnssecStatusRequest) (response *SetDomainDnssecStatusResponse, err error) {
+	response = CreateSetDomainDnssecStatusResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetDomainDnssecStatusWithChan invokes the alidns.SetDomainDnssecStatus API asynchronously
+// api document: https://help.aliyun.com/api/alidns/setdomaindnssecstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetDomainDnssecStatusWithChan(request *SetDomainDnssecStatusRequest) (<-chan *SetDomainDnssecStatusResponse, <-chan error) {
+	responseChan := make(chan *SetDomainDnssecStatusResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetDomainDnssecStatus(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetDomainDnssecStatusWithCallback invokes the alidns.SetDomainDnssecStatus API asynchronously
+// api document: https://help.aliyun.com/api/alidns/setdomaindnssecstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetDomainDnssecStatusWithCallback(request *SetDomainDnssecStatusRequest, callback func(response *SetDomainDnssecStatusResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetDomainDnssecStatusResponse
+		var err error
+		defer close(result)
+		response, err = client.SetDomainDnssecStatus(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetDomainDnssecStatusRequest is the request struct for api SetDomainDnssecStatus
+type SetDomainDnssecStatusRequest struct {
+	*requests.RpcRequest
+	DomainName   string `position:"Query" name:"DomainName"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+	Status       string `position:"Query" name:"Status"`
+}
+
+// SetDomainDnssecStatusResponse is the response struct for api SetDomainDnssecStatus
+type SetDomainDnssecStatusResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetDomainDnssecStatusRequest creates a request to invoke SetDomainDnssecStatus API
+func CreateSetDomainDnssecStatusRequest() (request *SetDomainDnssecStatusRequest) {
+	request = &SetDomainDnssecStatusRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Alidns", "2015-01-09", "SetDomainDnssecStatus", "alidns", "openAPI")
+	return
+}
+
+// CreateSetDomainDnssecStatusResponse creates a response to parse from SetDomainDnssecStatus response
+func CreateSetDomainDnssecStatusResponse() (response *SetDomainDnssecStatusResponse) {
+	response = &SetDomainDnssecStatusResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 0
services/alidns/struct_domain.go

@@ -32,5 +32,7 @@ type Domain struct {
 	InstanceEndTime string                      `json:"InstanceEndTime" xml:"InstanceEndTime"`
 	InstanceExpired bool                        `json:"InstanceExpired" xml:"InstanceExpired"`
 	Starmark        bool                        `json:"Starmark" xml:"Starmark"`
+	CreateTime      string                      `json:"CreateTime" xml:"CreateTime"`
+	CreateTimestamp int64                       `json:"CreateTimestamp" xml:"CreateTimestamp"`
 	DnsServers      DnsServersInDescribeDomains `json:"DnsServers" xml:"DnsServers"`
 }