فهرست منبع

AFS SDK Auto Released By shenshi,Version:1.53.54

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 سال پیش
والد
کامیت
9448d155ee
32فایلهای تغییر یافته به همراه2067 افزوده شده و 0 حذف شده
  1. 3 0
      ChangeLog.txt
  2. 106 0
      services/afs/analyze_nvc.go
  3. 113 0
      services/afs/authenticate_sig.go
  4. 81 0
      services/afs/client.go
  5. 109 0
      services/afs/configuration_style.go
  6. 110 0
      services/afs/create_configuration.go
  7. 110 0
      services/afs/describe_captcha_day.go
  8. 111 0
      services/afs/describe_captcha_ip_city.go
  9. 110 0
      services/afs/describe_captcha_min.go
  10. 105 0
      services/afs/describe_captcha_order.go
  11. 110 0
      services/afs/describe_captcha_risk.go
  12. 106 0
      services/afs/describe_config_name.go
  13. 106 0
      services/afs/describe_early_warning.go
  14. 108 0
      services/afs/describe_order_info.go
  15. 105 0
      services/afs/describe_person_machine_list.go
  16. 111 0
      services/afs/set_early_warning.go
  17. 24 0
      services/afs/struct_captcha_citie.go
  18. 21 0
      services/afs/struct_captcha_cities.go
  19. 29 0
      services/afs/struct_captcha_day.go
  20. 22 0
      services/afs/struct_captcha_ip.go
  21. 21 0
      services/afs/struct_captcha_ips.go
  22. 23 0
      services/afs/struct_captcha_min.go
  23. 21 0
      services/afs/struct_captcha_mins.go
  24. 31 0
      services/afs/struct_code_data.go
  25. 23 0
      services/afs/struct_config_name.go
  26. 21 0
      services/afs/struct_config_names.go
  27. 28 0
      services/afs/struct_early_warning.go
  28. 21 0
      services/afs/struct_early_warnings.go
  29. 28 0
      services/afs/struct_person_machine.go
  30. 22 0
      services/afs/struct_person_machine_res.go
  31. 21 0
      services/afs/struct_person_machines.go
  32. 107 0
      services/afs/update_config_name.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-18 Version: 1.53.54
+1,  Update Dependency
+
 2019-03-15 Version: 1.53.53
 1,  update api info
 

+ 106 - 0
services/afs/analyze_nvc.go

@@ -0,0 +1,106 @@
+package afs
+
+//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"
+)
+
+// AnalyzeNvc invokes the afs.AnalyzeNvc API synchronously
+// api document: https://help.aliyun.com/api/afs/analyzenvc.html
+func (client *Client) AnalyzeNvc(request *AnalyzeNvcRequest) (response *AnalyzeNvcResponse, err error) {
+	response = CreateAnalyzeNvcResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AnalyzeNvcWithChan invokes the afs.AnalyzeNvc API asynchronously
+// api document: https://help.aliyun.com/api/afs/analyzenvc.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AnalyzeNvcWithChan(request *AnalyzeNvcRequest) (<-chan *AnalyzeNvcResponse, <-chan error) {
+	responseChan := make(chan *AnalyzeNvcResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AnalyzeNvc(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AnalyzeNvcWithCallback invokes the afs.AnalyzeNvc API asynchronously
+// api document: https://help.aliyun.com/api/afs/analyzenvc.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AnalyzeNvcWithCallback(request *AnalyzeNvcRequest, callback func(response *AnalyzeNvcResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AnalyzeNvcResponse
+		var err error
+		defer close(result)
+		response, err = client.AnalyzeNvc(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AnalyzeNvcRequest is the request struct for api AnalyzeNvc
+type AnalyzeNvcRequest struct {
+	*requests.RpcRequest
+	SourceIp     string `position:"Query" name:"SourceIp"`
+	Data         string `position:"Query" name:"Data"`
+	ScoreJsonStr string `position:"Query" name:"ScoreJsonStr"`
+}
+
+// AnalyzeNvcResponse is the response struct for api AnalyzeNvc
+type AnalyzeNvcResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	BizCode   string `json:"BizCode" xml:"BizCode"`
+}
+
+// CreateAnalyzeNvcRequest creates a request to invoke AnalyzeNvc API
+func CreateAnalyzeNvcRequest() (request *AnalyzeNvcRequest) {
+	request = &AnalyzeNvcRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "AnalyzeNvc", "afs", "openAPI")
+	return
+}
+
+// CreateAnalyzeNvcResponse creates a response to parse from AnalyzeNvc response
+func CreateAnalyzeNvcResponse() (response *AnalyzeNvcResponse) {
+	response = &AnalyzeNvcResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 113 - 0
services/afs/authenticate_sig.go

@@ -0,0 +1,113 @@
+package afs
+
+//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"
+)
+
+// AuthenticateSig invokes the afs.AuthenticateSig API synchronously
+// api document: https://help.aliyun.com/api/afs/authenticatesig.html
+func (client *Client) AuthenticateSig(request *AuthenticateSigRequest) (response *AuthenticateSigResponse, err error) {
+	response = CreateAuthenticateSigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AuthenticateSigWithChan invokes the afs.AuthenticateSig API asynchronously
+// api document: https://help.aliyun.com/api/afs/authenticatesig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AuthenticateSigWithChan(request *AuthenticateSigRequest) (<-chan *AuthenticateSigResponse, <-chan error) {
+	responseChan := make(chan *AuthenticateSigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AuthenticateSig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AuthenticateSigWithCallback invokes the afs.AuthenticateSig API asynchronously
+// api document: https://help.aliyun.com/api/afs/authenticatesig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AuthenticateSigWithCallback(request *AuthenticateSigRequest, callback func(response *AuthenticateSigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AuthenticateSigResponse
+		var err error
+		defer close(result)
+		response, err = client.AuthenticateSig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AuthenticateSigRequest is the request struct for api AuthenticateSig
+type AuthenticateSigRequest struct {
+	*requests.RpcRequest
+	Sig       string `position:"Query" name:"Sig"`
+	RemoteIp  string `position:"Query" name:"RemoteIp"`
+	SourceIp  string `position:"Query" name:"SourceIp"`
+	AppKey    string `position:"Query" name:"AppKey"`
+	SessionId string `position:"Query" name:"SessionId"`
+	Token     string `position:"Query" name:"Token"`
+	Scene     string `position:"Query" name:"Scene"`
+}
+
+// AuthenticateSigResponse is the response struct for api AuthenticateSig
+type AuthenticateSigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      int    `json:"Code" xml:"Code"`
+	Msg       string `json:"Msg" xml:"Msg"`
+	RiskLevel string `json:"RiskLevel" xml:"RiskLevel"`
+	Detail    string `json:"Detail" xml:"Detail"`
+}
+
+// CreateAuthenticateSigRequest creates a request to invoke AuthenticateSig API
+func CreateAuthenticateSigRequest() (request *AuthenticateSigRequest) {
+	request = &AuthenticateSigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "AuthenticateSig", "afs", "openAPI")
+	return
+}
+
+// CreateAuthenticateSigResponse creates a response to parse from AuthenticateSig response
+func CreateAuthenticateSigResponse() (response *AuthenticateSigResponse) {
+	response = &AuthenticateSigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 81 - 0
services/afs/client.go

@@ -0,0 +1,81 @@
+package afs
+
+//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
+}

+ 109 - 0
services/afs/configuration_style.go

@@ -0,0 +1,109 @@
+package afs
+
+//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"
+)
+
+// ConfigurationStyle invokes the afs.ConfigurationStyle API synchronously
+// api document: https://help.aliyun.com/api/afs/configurationstyle.html
+func (client *Client) ConfigurationStyle(request *ConfigurationStyleRequest) (response *ConfigurationStyleResponse, err error) {
+	response = CreateConfigurationStyleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ConfigurationStyleWithChan invokes the afs.ConfigurationStyle API asynchronously
+// api document: https://help.aliyun.com/api/afs/configurationstyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConfigurationStyleWithChan(request *ConfigurationStyleRequest) (<-chan *ConfigurationStyleResponse, <-chan error) {
+	responseChan := make(chan *ConfigurationStyleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ConfigurationStyle(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ConfigurationStyleWithCallback invokes the afs.ConfigurationStyle API asynchronously
+// api document: https://help.aliyun.com/api/afs/configurationstyle.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ConfigurationStyleWithCallback(request *ConfigurationStyleRequest, callback func(response *ConfigurationStyleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ConfigurationStyleResponse
+		var err error
+		defer close(result)
+		response, err = client.ConfigurationStyle(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ConfigurationStyleRequest is the request struct for api ConfigurationStyle
+type ConfigurationStyleRequest struct {
+	*requests.RpcRequest
+	SourceIp            string `position:"Query" name:"SourceIp"`
+	ConfigurationMethod string `position:"Query" name:"ConfigurationMethod"`
+	RefExtId            string `position:"Query" name:"RefExtId"`
+	ApplyType           string `position:"Query" name:"ApplyType"`
+	Scene               string `position:"Query" name:"Scene"`
+}
+
+// ConfigurationStyleResponse is the response struct for api ConfigurationStyle
+type ConfigurationStyleResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	BizCode   string   `json:"BizCode" xml:"BizCode"`
+	CodeData  CodeData `json:"CodeData" xml:"CodeData"`
+}
+
+// CreateConfigurationStyleRequest creates a request to invoke ConfigurationStyle API
+func CreateConfigurationStyleRequest() (request *ConfigurationStyleRequest) {
+	request = &ConfigurationStyleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "ConfigurationStyle", "afs", "openAPI")
+	return
+}
+
+// CreateConfigurationStyleResponse creates a response to parse from ConfigurationStyle response
+func CreateConfigurationStyleResponse() (response *ConfigurationStyleResponse) {
+	response = &ConfigurationStyleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/afs/create_configuration.go

@@ -0,0 +1,110 @@
+package afs
+
+//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"
+)
+
+// CreateConfiguration invokes the afs.CreateConfiguration API synchronously
+// api document: https://help.aliyun.com/api/afs/createconfiguration.html
+func (client *Client) CreateConfiguration(request *CreateConfigurationRequest) (response *CreateConfigurationResponse, err error) {
+	response = CreateCreateConfigurationResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateConfigurationWithChan invokes the afs.CreateConfiguration API asynchronously
+// api document: https://help.aliyun.com/api/afs/createconfiguration.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateConfigurationWithChan(request *CreateConfigurationRequest) (<-chan *CreateConfigurationResponse, <-chan error) {
+	responseChan := make(chan *CreateConfigurationResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateConfiguration(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateConfigurationWithCallback invokes the afs.CreateConfiguration API asynchronously
+// api document: https://help.aliyun.com/api/afs/createconfiguration.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateConfigurationWithCallback(request *CreateConfigurationRequest, callback func(response *CreateConfigurationResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateConfigurationResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateConfiguration(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateConfigurationRequest is the request struct for api CreateConfiguration
+type CreateConfigurationRequest struct {
+	*requests.RpcRequest
+	SourceIp            string `position:"Query" name:"SourceIp"`
+	ConfigurationName   string `position:"Query" name:"ConfigurationName"`
+	MaxPV               string `position:"Query" name:"MaxPV"`
+	ConfigurationMethod string `position:"Query" name:"ConfigurationMethod"`
+	ApplyType           string `position:"Query" name:"ApplyType"`
+	Scene               string `position:"Query" name:"Scene"`
+}
+
+// CreateConfigurationResponse is the response struct for api CreateConfiguration
+type CreateConfigurationResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	BizCode   string `json:"BizCode" xml:"BizCode"`
+	RefExtId  string `json:"RefExtId" xml:"RefExtId"`
+}
+
+// CreateCreateConfigurationRequest creates a request to invoke CreateConfiguration API
+func CreateCreateConfigurationRequest() (request *CreateConfigurationRequest) {
+	request = &CreateConfigurationRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "CreateConfiguration", "afs", "openAPI")
+	return
+}
+
+// CreateCreateConfigurationResponse creates a response to parse from CreateConfiguration response
+func CreateCreateConfigurationResponse() (response *CreateConfigurationResponse) {
+	response = &CreateConfigurationResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/afs/describe_captcha_day.go

@@ -0,0 +1,110 @@
+package afs
+
+//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"
+)
+
+// DescribeCaptchaDay invokes the afs.DescribeCaptchaDay API synchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaday.html
+func (client *Client) DescribeCaptchaDay(request *DescribeCaptchaDayRequest) (response *DescribeCaptchaDayResponse, err error) {
+	response = CreateDescribeCaptchaDayResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCaptchaDayWithChan invokes the afs.DescribeCaptchaDay API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaday.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaDayWithChan(request *DescribeCaptchaDayRequest) (<-chan *DescribeCaptchaDayResponse, <-chan error) {
+	responseChan := make(chan *DescribeCaptchaDayResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCaptchaDay(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCaptchaDayWithCallback invokes the afs.DescribeCaptchaDay API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaday.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaDayWithCallback(request *DescribeCaptchaDayRequest, callback func(response *DescribeCaptchaDayResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCaptchaDayResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCaptchaDay(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCaptchaDayRequest is the request struct for api DescribeCaptchaDay
+type DescribeCaptchaDayRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigName string `position:"Query" name:"ConfigName"`
+	RefExtId   string `position:"Query" name:"RefExtId"`
+	Time       string `position:"Query" name:"Time"`
+	Type       string `position:"Query" name:"Type"`
+}
+
+// DescribeCaptchaDayResponse is the response struct for api DescribeCaptchaDay
+type DescribeCaptchaDayResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	BizCode    string     `json:"BizCode" xml:"BizCode"`
+	HasData    bool       `json:"HasData" xml:"HasData"`
+	CaptchaDay CaptchaDay `json:"CaptchaDay" xml:"CaptchaDay"`
+}
+
+// CreateDescribeCaptchaDayRequest creates a request to invoke DescribeCaptchaDay API
+func CreateDescribeCaptchaDayRequest() (request *DescribeCaptchaDayRequest) {
+	request = &DescribeCaptchaDayRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeCaptchaDay", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeCaptchaDayResponse creates a response to parse from DescribeCaptchaDay response
+func CreateDescribeCaptchaDayResponse() (response *DescribeCaptchaDayResponse) {
+	response = &DescribeCaptchaDayResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/afs/describe_captcha_ip_city.go

@@ -0,0 +1,111 @@
+package afs
+
+//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"
+)
+
+// DescribeCaptchaIpCity invokes the afs.DescribeCaptchaIpCity API synchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaipcity.html
+func (client *Client) DescribeCaptchaIpCity(request *DescribeCaptchaIpCityRequest) (response *DescribeCaptchaIpCityResponse, err error) {
+	response = CreateDescribeCaptchaIpCityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCaptchaIpCityWithChan invokes the afs.DescribeCaptchaIpCity API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaipcity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaIpCityWithChan(request *DescribeCaptchaIpCityRequest) (<-chan *DescribeCaptchaIpCityResponse, <-chan error) {
+	responseChan := make(chan *DescribeCaptchaIpCityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCaptchaIpCity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCaptchaIpCityWithCallback invokes the afs.DescribeCaptchaIpCity API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaipcity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaIpCityWithCallback(request *DescribeCaptchaIpCityRequest, callback func(response *DescribeCaptchaIpCityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCaptchaIpCityResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCaptchaIpCity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCaptchaIpCityRequest is the request struct for api DescribeCaptchaIpCity
+type DescribeCaptchaIpCityRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigName string `position:"Query" name:"ConfigName"`
+	RefExtId   string `position:"Query" name:"RefExtId"`
+	Time       string `position:"Query" name:"Time"`
+	Type       string `position:"Query" name:"Type"`
+}
+
+// DescribeCaptchaIpCityResponse is the response struct for api DescribeCaptchaIpCity
+type DescribeCaptchaIpCityResponse struct {
+	*responses.BaseResponse
+	RequestId     string         `json:"RequestId" xml:"RequestId"`
+	BizCode       string         `json:"BizCode" xml:"BizCode"`
+	HasData       bool           `json:"HasData" xml:"HasData"`
+	CaptchaCities []CaptchaCitie `json:"CaptchaCities" xml:"CaptchaCities"`
+	CaptchaIps    []CaptchaIp    `json:"CaptchaIps" xml:"CaptchaIps"`
+}
+
+// CreateDescribeCaptchaIpCityRequest creates a request to invoke DescribeCaptchaIpCity API
+func CreateDescribeCaptchaIpCityRequest() (request *DescribeCaptchaIpCityRequest) {
+	request = &DescribeCaptchaIpCityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeCaptchaIpCity", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeCaptchaIpCityResponse creates a response to parse from DescribeCaptchaIpCity response
+func CreateDescribeCaptchaIpCityResponse() (response *DescribeCaptchaIpCityResponse) {
+	response = &DescribeCaptchaIpCityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/afs/describe_captcha_min.go

@@ -0,0 +1,110 @@
+package afs
+
+//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"
+)
+
+// DescribeCaptchaMin invokes the afs.DescribeCaptchaMin API synchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchamin.html
+func (client *Client) DescribeCaptchaMin(request *DescribeCaptchaMinRequest) (response *DescribeCaptchaMinResponse, err error) {
+	response = CreateDescribeCaptchaMinResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCaptchaMinWithChan invokes the afs.DescribeCaptchaMin API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchamin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaMinWithChan(request *DescribeCaptchaMinRequest) (<-chan *DescribeCaptchaMinResponse, <-chan error) {
+	responseChan := make(chan *DescribeCaptchaMinResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCaptchaMin(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCaptchaMinWithCallback invokes the afs.DescribeCaptchaMin API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchamin.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaMinWithCallback(request *DescribeCaptchaMinRequest, callback func(response *DescribeCaptchaMinResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCaptchaMinResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCaptchaMin(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCaptchaMinRequest is the request struct for api DescribeCaptchaMin
+type DescribeCaptchaMinRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigName string `position:"Query" name:"ConfigName"`
+	RefExtId   string `position:"Query" name:"RefExtId"`
+	Time       string `position:"Query" name:"Time"`
+	Type       string `position:"Query" name:"Type"`
+}
+
+// DescribeCaptchaMinResponse is the response struct for api DescribeCaptchaMin
+type DescribeCaptchaMinResponse struct {
+	*responses.BaseResponse
+	RequestId   string       `json:"RequestId" xml:"RequestId"`
+	BizCode     string       `json:"BizCode" xml:"BizCode"`
+	HasData     bool         `json:"HasData" xml:"HasData"`
+	CaptchaMins []CaptchaMin `json:"CaptchaMins" xml:"CaptchaMins"`
+}
+
+// CreateDescribeCaptchaMinRequest creates a request to invoke DescribeCaptchaMin API
+func CreateDescribeCaptchaMinRequest() (request *DescribeCaptchaMinRequest) {
+	request = &DescribeCaptchaMinRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeCaptchaMin", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeCaptchaMinResponse creates a response to parse from DescribeCaptchaMin response
+func CreateDescribeCaptchaMinResponse() (response *DescribeCaptchaMinResponse) {
+	response = &DescribeCaptchaMinResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/afs/describe_captcha_order.go

@@ -0,0 +1,105 @@
+package afs
+
+//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"
+)
+
+// DescribeCaptchaOrder invokes the afs.DescribeCaptchaOrder API synchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaorder.html
+func (client *Client) DescribeCaptchaOrder(request *DescribeCaptchaOrderRequest) (response *DescribeCaptchaOrderResponse, err error) {
+	response = CreateDescribeCaptchaOrderResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCaptchaOrderWithChan invokes the afs.DescribeCaptchaOrder API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaOrderWithChan(request *DescribeCaptchaOrderRequest) (<-chan *DescribeCaptchaOrderResponse, <-chan error) {
+	responseChan := make(chan *DescribeCaptchaOrderResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCaptchaOrder(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCaptchaOrderWithCallback invokes the afs.DescribeCaptchaOrder API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptchaorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaOrderWithCallback(request *DescribeCaptchaOrderRequest, callback func(response *DescribeCaptchaOrderResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCaptchaOrderResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCaptchaOrder(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCaptchaOrderRequest is the request struct for api DescribeCaptchaOrder
+type DescribeCaptchaOrderRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+	Lang     string `position:"Query" name:"Lang"`
+}
+
+// DescribeCaptchaOrderResponse is the response struct for api DescribeCaptchaOrder
+type DescribeCaptchaOrderResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	BizCode   string `json:"BizCode" xml:"BizCode"`
+}
+
+// CreateDescribeCaptchaOrderRequest creates a request to invoke DescribeCaptchaOrder API
+func CreateDescribeCaptchaOrderRequest() (request *DescribeCaptchaOrderRequest) {
+	request = &DescribeCaptchaOrderRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeCaptchaOrder", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeCaptchaOrderResponse creates a response to parse from DescribeCaptchaOrder response
+func CreateDescribeCaptchaOrderResponse() (response *DescribeCaptchaOrderResponse) {
+	response = &DescribeCaptchaOrderResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/afs/describe_captcha_risk.go

@@ -0,0 +1,110 @@
+package afs
+
+//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"
+)
+
+// DescribeCaptchaRisk invokes the afs.DescribeCaptchaRisk API synchronously
+// api document: https://help.aliyun.com/api/afs/describecaptcharisk.html
+func (client *Client) DescribeCaptchaRisk(request *DescribeCaptchaRiskRequest) (response *DescribeCaptchaRiskResponse, err error) {
+	response = CreateDescribeCaptchaRiskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCaptchaRiskWithChan invokes the afs.DescribeCaptchaRisk API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptcharisk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaRiskWithChan(request *DescribeCaptchaRiskRequest) (<-chan *DescribeCaptchaRiskResponse, <-chan error) {
+	responseChan := make(chan *DescribeCaptchaRiskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCaptchaRisk(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCaptchaRiskWithCallback invokes the afs.DescribeCaptchaRisk API asynchronously
+// api document: https://help.aliyun.com/api/afs/describecaptcharisk.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCaptchaRiskWithCallback(request *DescribeCaptchaRiskRequest, callback func(response *DescribeCaptchaRiskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCaptchaRiskResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCaptchaRisk(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCaptchaRiskRequest is the request struct for api DescribeCaptchaRisk
+type DescribeCaptchaRiskRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigName string `position:"Query" name:"ConfigName"`
+	RefExtId   string `position:"Query" name:"RefExtId"`
+	Time       string `position:"Query" name:"Time"`
+}
+
+// DescribeCaptchaRiskResponse is the response struct for api DescribeCaptchaRisk
+type DescribeCaptchaRiskResponse struct {
+	*responses.BaseResponse
+	RequestId      string `json:"RequestId" xml:"RequestId"`
+	BizCode        string `json:"BizCode" xml:"BizCode"`
+	NumOfThisMonth int    `json:"NumOfThisMonth" xml:"NumOfThisMonth"`
+	NumOfLastMonth int    `json:"NumOfLastMonth" xml:"NumOfLastMonth"`
+	RiskLevel      string `json:"RiskLevel" xml:"RiskLevel"`
+}
+
+// CreateDescribeCaptchaRiskRequest creates a request to invoke DescribeCaptchaRisk API
+func CreateDescribeCaptchaRiskRequest() (request *DescribeCaptchaRiskRequest) {
+	request = &DescribeCaptchaRiskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeCaptchaRisk", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeCaptchaRiskResponse creates a response to parse from DescribeCaptchaRisk response
+func CreateDescribeCaptchaRiskResponse() (response *DescribeCaptchaRiskResponse) {
+	response = &DescribeCaptchaRiskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/afs/describe_config_name.go

@@ -0,0 +1,106 @@
+package afs
+
+//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"
+)
+
+// DescribeConfigName invokes the afs.DescribeConfigName API synchronously
+// api document: https://help.aliyun.com/api/afs/describeconfigname.html
+func (client *Client) DescribeConfigName(request *DescribeConfigNameRequest) (response *DescribeConfigNameResponse, err error) {
+	response = CreateDescribeConfigNameResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeConfigNameWithChan invokes the afs.DescribeConfigName API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeconfigname.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConfigNameWithChan(request *DescribeConfigNameRequest) (<-chan *DescribeConfigNameResponse, <-chan error) {
+	responseChan := make(chan *DescribeConfigNameResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeConfigName(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeConfigNameWithCallback invokes the afs.DescribeConfigName API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeconfigname.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeConfigNameWithCallback(request *DescribeConfigNameRequest, callback func(response *DescribeConfigNameResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeConfigNameResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeConfigName(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeConfigNameRequest is the request struct for api DescribeConfigName
+type DescribeConfigNameRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+}
+
+// DescribeConfigNameResponse is the response struct for api DescribeConfigName
+type DescribeConfigNameResponse struct {
+	*responses.BaseResponse
+	RequestId   string       `json:"RequestId" xml:"RequestId"`
+	HasConfig   bool         `json:"HasConfig" xml:"HasConfig"`
+	BizCode     string       `json:"BizCode" xml:"BizCode"`
+	ConfigNames []ConfigName `json:"ConfigNames" xml:"ConfigNames"`
+}
+
+// CreateDescribeConfigNameRequest creates a request to invoke DescribeConfigName API
+func CreateDescribeConfigNameRequest() (request *DescribeConfigNameRequest) {
+	request = &DescribeConfigNameRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeConfigName", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeConfigNameResponse creates a response to parse from DescribeConfigName response
+func CreateDescribeConfigNameResponse() (response *DescribeConfigNameResponse) {
+	response = &DescribeConfigNameResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/afs/describe_early_warning.go

@@ -0,0 +1,106 @@
+package afs
+
+//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"
+)
+
+// DescribeEarlyWarning invokes the afs.DescribeEarlyWarning API synchronously
+// api document: https://help.aliyun.com/api/afs/describeearlywarning.html
+func (client *Client) DescribeEarlyWarning(request *DescribeEarlyWarningRequest) (response *DescribeEarlyWarningResponse, err error) {
+	response = CreateDescribeEarlyWarningResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeEarlyWarningWithChan invokes the afs.DescribeEarlyWarning API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeearlywarning.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEarlyWarningWithChan(request *DescribeEarlyWarningRequest) (<-chan *DescribeEarlyWarningResponse, <-chan error) {
+	responseChan := make(chan *DescribeEarlyWarningResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeEarlyWarning(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeEarlyWarningWithCallback invokes the afs.DescribeEarlyWarning API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeearlywarning.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEarlyWarningWithCallback(request *DescribeEarlyWarningRequest, callback func(response *DescribeEarlyWarningResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeEarlyWarningResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeEarlyWarning(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeEarlyWarningRequest is the request struct for api DescribeEarlyWarning
+type DescribeEarlyWarningRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+}
+
+// DescribeEarlyWarningResponse is the response struct for api DescribeEarlyWarning
+type DescribeEarlyWarningResponse struct {
+	*responses.BaseResponse
+	RequestId     string         `json:"RequestId" xml:"RequestId"`
+	HasWarning    bool           `json:"HasWarning" xml:"HasWarning"`
+	BizCode       string         `json:"BizCode" xml:"BizCode"`
+	EarlyWarnings []EarlyWarning `json:"EarlyWarnings" xml:"EarlyWarnings"`
+}
+
+// CreateDescribeEarlyWarningRequest creates a request to invoke DescribeEarlyWarning API
+func CreateDescribeEarlyWarningRequest() (request *DescribeEarlyWarningRequest) {
+	request = &DescribeEarlyWarningRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeEarlyWarning", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeEarlyWarningResponse creates a response to parse from DescribeEarlyWarning response
+func CreateDescribeEarlyWarningResponse() (response *DescribeEarlyWarningResponse) {
+	response = &DescribeEarlyWarningResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/afs/describe_order_info.go

@@ -0,0 +1,108 @@
+package afs
+
+//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"
+)
+
+// DescribeOrderInfo invokes the afs.DescribeOrderInfo API synchronously
+// api document: https://help.aliyun.com/api/afs/describeorderinfo.html
+func (client *Client) DescribeOrderInfo(request *DescribeOrderInfoRequest) (response *DescribeOrderInfoResponse, err error) {
+	response = CreateDescribeOrderInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeOrderInfoWithChan invokes the afs.DescribeOrderInfo API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeorderinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeOrderInfoWithChan(request *DescribeOrderInfoRequest) (<-chan *DescribeOrderInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeOrderInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeOrderInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeOrderInfoWithCallback invokes the afs.DescribeOrderInfo API asynchronously
+// api document: https://help.aliyun.com/api/afs/describeorderinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeOrderInfoWithCallback(request *DescribeOrderInfoRequest, callback func(response *DescribeOrderInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeOrderInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeOrderInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeOrderInfoRequest is the request struct for api DescribeOrderInfo
+type DescribeOrderInfoRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+}
+
+// DescribeOrderInfoResponse is the response struct for api DescribeOrderInfo
+type DescribeOrderInfoResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	BizCode    string `json:"BizCode" xml:"BizCode"`
+	OrderLevel string `json:"OrderLevel" xml:"OrderLevel"`
+	Num        string `json:"Num" xml:"Num"`
+	BeginDate  string `json:"BeginDate" xml:"BeginDate"`
+	EndDate    string `json:"EndDate" xml:"EndDate"`
+}
+
+// CreateDescribeOrderInfoRequest creates a request to invoke DescribeOrderInfo API
+func CreateDescribeOrderInfoRequest() (request *DescribeOrderInfoRequest) {
+	request = &DescribeOrderInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribeOrderInfo", "afs", "openAPI")
+	return
+}
+
+// CreateDescribeOrderInfoResponse creates a response to parse from DescribeOrderInfo response
+func CreateDescribeOrderInfoResponse() (response *DescribeOrderInfoResponse) {
+	response = &DescribeOrderInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/afs/describe_person_machine_list.go

@@ -0,0 +1,105 @@
+package afs
+
+//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"
+)
+
+// DescribePersonMachineList invokes the afs.DescribePersonMachineList API synchronously
+// api document: https://help.aliyun.com/api/afs/describepersonmachinelist.html
+func (client *Client) DescribePersonMachineList(request *DescribePersonMachineListRequest) (response *DescribePersonMachineListResponse, err error) {
+	response = CreateDescribePersonMachineListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePersonMachineListWithChan invokes the afs.DescribePersonMachineList API asynchronously
+// api document: https://help.aliyun.com/api/afs/describepersonmachinelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePersonMachineListWithChan(request *DescribePersonMachineListRequest) (<-chan *DescribePersonMachineListResponse, <-chan error) {
+	responseChan := make(chan *DescribePersonMachineListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePersonMachineList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePersonMachineListWithCallback invokes the afs.DescribePersonMachineList API asynchronously
+// api document: https://help.aliyun.com/api/afs/describepersonmachinelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePersonMachineListWithCallback(request *DescribePersonMachineListRequest, callback func(response *DescribePersonMachineListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePersonMachineListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePersonMachineList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePersonMachineListRequest is the request struct for api DescribePersonMachineList
+type DescribePersonMachineListRequest struct {
+	*requests.RpcRequest
+	SourceIp string `position:"Query" name:"SourceIp"`
+}
+
+// DescribePersonMachineListResponse is the response struct for api DescribePersonMachineList
+type DescribePersonMachineListResponse struct {
+	*responses.BaseResponse
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	BizCode          string           `json:"BizCode" xml:"BizCode"`
+	PersonMachineRes PersonMachineRes `json:"PersonMachineRes" xml:"PersonMachineRes"`
+}
+
+// CreateDescribePersonMachineListRequest creates a request to invoke DescribePersonMachineList API
+func CreateDescribePersonMachineListRequest() (request *DescribePersonMachineListRequest) {
+	request = &DescribePersonMachineListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "DescribePersonMachineList", "afs", "openAPI")
+	return
+}
+
+// CreateDescribePersonMachineListResponse creates a response to parse from DescribePersonMachineList response
+func CreateDescribePersonMachineListResponse() (response *DescribePersonMachineListResponse) {
+	response = &DescribePersonMachineListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/afs/set_early_warning.go

@@ -0,0 +1,111 @@
+package afs
+
+//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"
+)
+
+// SetEarlyWarning invokes the afs.SetEarlyWarning API synchronously
+// api document: https://help.aliyun.com/api/afs/setearlywarning.html
+func (client *Client) SetEarlyWarning(request *SetEarlyWarningRequest) (response *SetEarlyWarningResponse, err error) {
+	response = CreateSetEarlyWarningResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetEarlyWarningWithChan invokes the afs.SetEarlyWarning API asynchronously
+// api document: https://help.aliyun.com/api/afs/setearlywarning.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetEarlyWarningWithChan(request *SetEarlyWarningRequest) (<-chan *SetEarlyWarningResponse, <-chan error) {
+	responseChan := make(chan *SetEarlyWarningResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetEarlyWarning(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetEarlyWarningWithCallback invokes the afs.SetEarlyWarning API asynchronously
+// api document: https://help.aliyun.com/api/afs/setearlywarning.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetEarlyWarningWithCallback(request *SetEarlyWarningRequest, callback func(response *SetEarlyWarningResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetEarlyWarningResponse
+		var err error
+		defer close(result)
+		response, err = client.SetEarlyWarning(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetEarlyWarningRequest is the request struct for api SetEarlyWarning
+type SetEarlyWarningRequest struct {
+	*requests.RpcRequest
+	TimeEnd   string           `position:"Query" name:"TimeEnd"`
+	WarnOpen  requests.Boolean `position:"Query" name:"WarnOpen"`
+	SourceIp  string           `position:"Query" name:"SourceIp"`
+	Channel   string           `position:"Query" name:"Channel"`
+	Title     string           `position:"Query" name:"Title"`
+	TimeOpen  requests.Boolean `position:"Query" name:"TimeOpen"`
+	TimeBegin string           `position:"Query" name:"TimeBegin"`
+	Frequency string           `position:"Query" name:"Frequency"`
+}
+
+// SetEarlyWarningResponse is the response struct for api SetEarlyWarning
+type SetEarlyWarningResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	BizCode   string `json:"BizCode" xml:"BizCode"`
+}
+
+// CreateSetEarlyWarningRequest creates a request to invoke SetEarlyWarning API
+func CreateSetEarlyWarningRequest() (request *SetEarlyWarningRequest) {
+	request = &SetEarlyWarningRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "SetEarlyWarning", "afs", "openAPI")
+	return
+}
+
+// CreateSetEarlyWarningResponse creates a response to parse from SetEarlyWarning response
+func CreateSetEarlyWarningResponse() (response *SetEarlyWarningResponse) {
+	response = &SetEarlyWarningResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 24 - 0
services/afs/struct_captcha_citie.go

@@ -0,0 +1,24 @@
+package afs
+
+//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.
+
+// CaptchaCitie is a nested struct in afs response
+type CaptchaCitie struct {
+	Location string `json:"Location" xml:"Location"`
+	Lat      string `json:"Lat" xml:"Lat"`
+	Lng      string `json:"Lng" xml:"Lng"`
+	Pv       int    `json:"Pv" xml:"Pv"`
+}

+ 21 - 0
services/afs/struct_captcha_cities.go

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

+ 29 - 0
services/afs/struct_captcha_day.go

@@ -0,0 +1,29 @@
+package afs
+
+//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.
+
+// CaptchaDay is a nested struct in afs response
+type CaptchaDay struct {
+	Init                        int `json:"Init" xml:"Init"`
+	AskForVerify                int `json:"AskForVerify" xml:"AskForVerify"`
+	DirecetStrategyInterception int `json:"DirecetStrategyInterception" xml:"DirecetStrategyInterception"`
+	TwiceVerify                 int `json:"TwiceVerify" xml:"TwiceVerify"`
+	Pass                        int `json:"Pass" xml:"Pass"`
+	CheckTested                 int `json:"CheckTested" xml:"CheckTested"`
+	UncheckTested               int `json:"UncheckTested" xml:"UncheckTested"`
+	LegalSign                   int `json:"LegalSign" xml:"LegalSign"`
+	MaliciousFlow               int `json:"MaliciousFlow" xml:"MaliciousFlow"`
+}

+ 22 - 0
services/afs/struct_captcha_ip.go

@@ -0,0 +1,22 @@
+package afs
+
+//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.
+
+// CaptchaIp is a nested struct in afs response
+type CaptchaIp struct {
+	Ip    string `json:"Ip" xml:"Ip"`
+	Value int    `json:"Value" xml:"Value"`
+}

+ 21 - 0
services/afs/struct_captcha_ips.go

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

+ 23 - 0
services/afs/struct_captcha_min.go

@@ -0,0 +1,23 @@
+package afs
+
+//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.
+
+// CaptchaMin is a nested struct in afs response
+type CaptchaMin struct {
+	Time         string `json:"Time" xml:"Time"`
+	Pass         string `json:"Pass" xml:"Pass"`
+	Interception string `json:"Interception" xml:"Interception"`
+}

+ 21 - 0
services/afs/struct_captcha_mins.go

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

+ 31 - 0
services/afs/struct_code_data.go

@@ -0,0 +1,31 @@
+package afs
+
+//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.
+
+// CodeData is a nested struct in afs response
+type CodeData struct {
+	Html      string `json:"Html" xml:"Html"`
+	Net       string `json:"Net" xml:"Net"`
+	Php       string `json:"Php" xml:"Php"`
+	Python    string `json:"Python" xml:"Python"`
+	Java      string `json:"Java" xml:"Java"`
+	NodeJs    string `json:"NodeJs" xml:"NodeJs"`
+	NetUrl    string `json:"NetUrl" xml:"NetUrl"`
+	PhpUrl    string `json:"PhpUrl" xml:"PhpUrl"`
+	PythonUrl string `json:"PythonUrl" xml:"PythonUrl"`
+	JavaUrl   string `json:"JavaUrl" xml:"JavaUrl"`
+	NodeJsUrl string `json:"NodeJsUrl" xml:"NodeJsUrl"`
+}

+ 23 - 0
services/afs/struct_config_name.go

@@ -0,0 +1,23 @@
+package afs
+
+//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.
+
+// ConfigName is a nested struct in afs response
+type ConfigName struct {
+	AliUid     string `json:"AliUid" xml:"AliUid"`
+	ConfigName string `json:"ConfigName" xml:"ConfigName"`
+	RefExtId   string `json:"RefExtId" xml:"RefExtId"`
+}

+ 21 - 0
services/afs/struct_config_names.go

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

+ 28 - 0
services/afs/struct_early_warning.go

@@ -0,0 +1,28 @@
+package afs
+
+//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.
+
+// EarlyWarning is a nested struct in afs response
+type EarlyWarning struct {
+	WarnOpen  bool   `json:"WarnOpen" xml:"WarnOpen"`
+	Title     string `json:"Title" xml:"Title"`
+	Content   string `json:"Content" xml:"Content"`
+	Frequency string `json:"Frequency" xml:"Frequency"`
+	TimeOpen  bool   `json:"TimeOpen" xml:"TimeOpen"`
+	TimeBegin string `json:"TimeBegin" xml:"TimeBegin"`
+	TimeEnd   string `json:"TimeEnd" xml:"TimeEnd"`
+	Channel   string `json:"Channel" xml:"Channel"`
+}

+ 21 - 0
services/afs/struct_early_warnings.go

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

+ 28 - 0
services/afs/struct_person_machine.go

@@ -0,0 +1,28 @@
+package afs
+
+//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.
+
+// PersonMachine is a nested struct in afs response
+type PersonMachine struct {
+	ConfigurationName   string `json:"ConfigurationName" xml:"ConfigurationName"`
+	Appkey              string `json:"Appkey" xml:"Appkey"`
+	ConfigurationMethod string `json:"ConfigurationMethod" xml:"ConfigurationMethod"`
+	ApplyType           string `json:"ApplyType" xml:"ApplyType"`
+	Scene               string `json:"Scene" xml:"Scene"`
+	LastUpdate          string `json:"LastUpdate" xml:"LastUpdate"`
+	ExtId               string `json:"ExtId" xml:"ExtId"`
+	SceneOriginal       string `json:"SceneOriginal" xml:"SceneOriginal"`
+}

+ 22 - 0
services/afs/struct_person_machine_res.go

@@ -0,0 +1,22 @@
+package afs
+
+//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.
+
+// PersonMachineRes is a nested struct in afs response
+type PersonMachineRes struct {
+	HasConfiguration string          `json:"HasConfiguration" xml:"HasConfiguration"`
+	PersonMachines   []PersonMachine `json:"PersonMachines" xml:"PersonMachines"`
+}

+ 21 - 0
services/afs/struct_person_machines.go

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

+ 107 - 0
services/afs/update_config_name.go

@@ -0,0 +1,107 @@
+package afs
+
+//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"
+)
+
+// UpdateConfigName invokes the afs.UpdateConfigName API synchronously
+// api document: https://help.aliyun.com/api/afs/updateconfigname.html
+func (client *Client) UpdateConfigName(request *UpdateConfigNameRequest) (response *UpdateConfigNameResponse, err error) {
+	response = CreateUpdateConfigNameResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateConfigNameWithChan invokes the afs.UpdateConfigName API asynchronously
+// api document: https://help.aliyun.com/api/afs/updateconfigname.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateConfigNameWithChan(request *UpdateConfigNameRequest) (<-chan *UpdateConfigNameResponse, <-chan error) {
+	responseChan := make(chan *UpdateConfigNameResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateConfigName(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateConfigNameWithCallback invokes the afs.UpdateConfigName API asynchronously
+// api document: https://help.aliyun.com/api/afs/updateconfigname.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateConfigNameWithCallback(request *UpdateConfigNameRequest, callback func(response *UpdateConfigNameResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateConfigNameResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateConfigName(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateConfigNameRequest is the request struct for api UpdateConfigName
+type UpdateConfigNameRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigName string `position:"Query" name:"ConfigName"`
+	RefExtId   string `position:"Query" name:"RefExtId"`
+	Lang       string `position:"Query" name:"Lang"`
+}
+
+// UpdateConfigNameResponse is the response struct for api UpdateConfigName
+type UpdateConfigNameResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	BizCode   string `json:"BizCode" xml:"BizCode"`
+}
+
+// CreateUpdateConfigNameRequest creates a request to invoke UpdateConfigName API
+func CreateUpdateConfigNameRequest() (request *UpdateConfigNameRequest) {
+	request = &UpdateConfigNameRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("afs", "2018-01-12", "UpdateConfigName", "afs", "openAPI")
+	return
+}
+
+// CreateUpdateConfigNameResponse creates a response to parse from UpdateConfigName response
+func CreateUpdateConfigNameResponse() (response *UpdateConfigNameResponse) {
+	response = &UpdateConfigNameResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}