Browse Source

Generated 2020-01-01 for geoip.

sdk-team 5 years ago
parent
commit
60d8d16f60

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-03-03 Version: v1.61.20
+- Generated 2020-01-01 for `geoip`.
+- GeoIP Databases SDK initial release.
+
 2020-03-03 Version: v1.61.19
 - Generated 2016-01-20 for `Kms`.
 - Supported secretmanager for kms.

+ 104 - 0
services/geoip/client.go

@@ -0,0 +1,104 @@
+package geoip
+
+//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"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
+)
+
+// 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
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	return
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	return
+}

+ 115 - 0
services/geoip/describe_geoip_instance.go

@@ -0,0 +1,115 @@
+package geoip
+
+//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"
+)
+
+// DescribeGeoipInstance invokes the geoip.DescribeGeoipInstance API synchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstance.html
+func (client *Client) DescribeGeoipInstance(request *DescribeGeoipInstanceRequest) (response *DescribeGeoipInstanceResponse, err error) {
+	response = CreateDescribeGeoipInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeGeoipInstanceWithChan invokes the geoip.DescribeGeoipInstance API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstanceWithChan(request *DescribeGeoipInstanceRequest) (<-chan *DescribeGeoipInstanceResponse, <-chan error) {
+	responseChan := make(chan *DescribeGeoipInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeGeoipInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeGeoipInstanceWithCallback invokes the geoip.DescribeGeoipInstance API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstanceWithCallback(request *DescribeGeoipInstanceRequest, callback func(response *DescribeGeoipInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeGeoipInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeGeoipInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeGeoipInstanceRequest is the request struct for api DescribeGeoipInstance
+type DescribeGeoipInstanceRequest struct {
+	*requests.RpcRequest
+	InstanceId   string `position:"Query" name:"InstanceId"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// DescribeGeoipInstanceResponse is the response struct for api DescribeGeoipInstance
+type DescribeGeoipInstanceResponse struct {
+	*responses.BaseResponse
+	RequestId       string `json:"RequestId" xml:"RequestId"`
+	ProductCode     string `json:"ProductCode" xml:"ProductCode"`
+	InstanceId      string `json:"InstanceId" xml:"InstanceId"`
+	VersionCode     string `json:"VersionCode" xml:"VersionCode"`
+	MaxQps          int64  `json:"MaxQps" xml:"MaxQps"`
+	MaxQpd          int64  `json:"MaxQpd" xml:"MaxQpd"`
+	QueryCount      int64  `json:"QueryCount" xml:"QueryCount"`
+	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
+	CreateTimestamp int64  `json:"CreateTimestamp" xml:"CreateTimestamp"`
+	ExpireTime      string `json:"ExpireTime" xml:"ExpireTime"`
+	ExpireTimestamp int64  `json:"ExpireTimestamp" xml:"ExpireTimestamp"`
+}
+
+// CreateDescribeGeoipInstanceRequest creates a request to invoke DescribeGeoipInstance API
+func CreateDescribeGeoipInstanceRequest() (request *DescribeGeoipInstanceRequest) {
+	request = &DescribeGeoipInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("geoip", "2020-01-01", "DescribeGeoipInstance", "geoip", "openAPI")
+	return
+}
+
+// CreateDescribeGeoipInstanceResponse creates a response to parse from DescribeGeoipInstance response
+func CreateDescribeGeoipInstanceResponse() (response *DescribeGeoipInstanceResponse) {
+	response = &DescribeGeoipInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/geoip/describe_geoip_instance_statistics.go

@@ -0,0 +1,108 @@
+package geoip
+
+//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"
+)
+
+// DescribeGeoipInstanceStatistics invokes the geoip.DescribeGeoipInstanceStatistics API synchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstancestatistics.html
+func (client *Client) DescribeGeoipInstanceStatistics(request *DescribeGeoipInstanceStatisticsRequest) (response *DescribeGeoipInstanceStatisticsResponse, err error) {
+	response = CreateDescribeGeoipInstanceStatisticsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeGeoipInstanceStatisticsWithChan invokes the geoip.DescribeGeoipInstanceStatistics API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstancestatistics.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstanceStatisticsWithChan(request *DescribeGeoipInstanceStatisticsRequest) (<-chan *DescribeGeoipInstanceStatisticsResponse, <-chan error) {
+	responseChan := make(chan *DescribeGeoipInstanceStatisticsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeGeoipInstanceStatistics(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeGeoipInstanceStatisticsWithCallback invokes the geoip.DescribeGeoipInstanceStatistics API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstancestatistics.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstanceStatisticsWithCallback(request *DescribeGeoipInstanceStatisticsRequest, callback func(response *DescribeGeoipInstanceStatisticsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeGeoipInstanceStatisticsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeGeoipInstanceStatistics(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeGeoipInstanceStatisticsRequest is the request struct for api DescribeGeoipInstanceStatistics
+type DescribeGeoipInstanceStatisticsRequest struct {
+	*requests.RpcRequest
+	StartDate    string `position:"Query" name:"StartDate"`
+	InstanceId   string `position:"Query" name:"InstanceId"`
+	EndDate      string `position:"Query" name:"EndDate"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// DescribeGeoipInstanceStatisticsResponse is the response struct for api DescribeGeoipInstanceStatistics
+type DescribeGeoipInstanceStatisticsResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	Statistics Statistics `json:"Statistics" xml:"Statistics"`
+}
+
+// CreateDescribeGeoipInstanceStatisticsRequest creates a request to invoke DescribeGeoipInstanceStatistics API
+func CreateDescribeGeoipInstanceStatisticsRequest() (request *DescribeGeoipInstanceStatisticsRequest) {
+	request = &DescribeGeoipInstanceStatisticsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("geoip", "2020-01-01", "DescribeGeoipInstanceStatistics", "geoip", "openAPI")
+	return
+}
+
+// CreateDescribeGeoipInstanceStatisticsResponse creates a response to parse from DescribeGeoipInstanceStatistics response
+func CreateDescribeGeoipInstanceStatisticsResponse() (response *DescribeGeoipInstanceStatisticsResponse) {
+	response = &DescribeGeoipInstanceStatisticsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/geoip/describe_geoip_instances.go

@@ -0,0 +1,105 @@
+package geoip
+
+//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"
+)
+
+// DescribeGeoipInstances invokes the geoip.DescribeGeoipInstances API synchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstances.html
+func (client *Client) DescribeGeoipInstances(request *DescribeGeoipInstancesRequest) (response *DescribeGeoipInstancesResponse, err error) {
+	response = CreateDescribeGeoipInstancesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeGeoipInstancesWithChan invokes the geoip.DescribeGeoipInstances API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstances.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstancesWithChan(request *DescribeGeoipInstancesRequest) (<-chan *DescribeGeoipInstancesResponse, <-chan error) {
+	responseChan := make(chan *DescribeGeoipInstancesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeGeoipInstances(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeGeoipInstancesWithCallback invokes the geoip.DescribeGeoipInstances API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describegeoipinstances.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGeoipInstancesWithCallback(request *DescribeGeoipInstancesRequest, callback func(response *DescribeGeoipInstancesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeGeoipInstancesResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeGeoipInstances(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeGeoipInstancesRequest is the request struct for api DescribeGeoipInstances
+type DescribeGeoipInstancesRequest struct {
+	*requests.RpcRequest
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// DescribeGeoipInstancesResponse is the response struct for api DescribeGeoipInstances
+type DescribeGeoipInstancesResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	GeoipInstances GeoipInstances `json:"GeoipInstances" xml:"GeoipInstances"`
+}
+
+// CreateDescribeGeoipInstancesRequest creates a request to invoke DescribeGeoipInstances API
+func CreateDescribeGeoipInstancesRequest() (request *DescribeGeoipInstancesRequest) {
+	request = &DescribeGeoipInstancesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("geoip", "2020-01-01", "DescribeGeoipInstances", "geoip", "openAPI")
+	return
+}
+
+// CreateDescribeGeoipInstancesResponse creates a response to parse from DescribeGeoipInstances response
+func CreateDescribeGeoipInstancesResponse() (response *DescribeGeoipInstancesResponse) {
+	response = &DescribeGeoipInstancesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/geoip/describe_ipv6_location.go

@@ -0,0 +1,111 @@
+package geoip
+
+//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"
+)
+
+// DescribeIpv6Location invokes the geoip.DescribeIpv6Location API synchronously
+// api document: https://help.aliyun.com/api/geoip/describeipv6location.html
+func (client *Client) DescribeIpv6Location(request *DescribeIpv6LocationRequest) (response *DescribeIpv6LocationResponse, err error) {
+	response = CreateDescribeIpv6LocationResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeIpv6LocationWithChan invokes the geoip.DescribeIpv6Location API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describeipv6location.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeIpv6LocationWithChan(request *DescribeIpv6LocationRequest) (<-chan *DescribeIpv6LocationResponse, <-chan error) {
+	responseChan := make(chan *DescribeIpv6LocationResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeIpv6Location(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeIpv6LocationWithCallback invokes the geoip.DescribeIpv6Location API asynchronously
+// api document: https://help.aliyun.com/api/geoip/describeipv6location.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeIpv6LocationWithCallback(request *DescribeIpv6LocationRequest, callback func(response *DescribeIpv6LocationResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeIpv6LocationResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeIpv6Location(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeIpv6LocationRequest is the request struct for api DescribeIpv6Location
+type DescribeIpv6LocationRequest struct {
+	*requests.RpcRequest
+	Ip           string `position:"Query" name:"Ip"`
+	UserClientIp string `position:"Query" name:"UserClientIp"`
+	Lang         string `position:"Query" name:"Lang"`
+}
+
+// DescribeIpv6LocationResponse is the response struct for api DescribeIpv6Location
+type DescribeIpv6LocationResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Ip        string `json:"Ip" xml:"Ip"`
+	Country   string `json:"Country" xml:"Country"`
+	Province  string `json:"Province" xml:"Province"`
+	City      string `json:"City" xml:"City"`
+	County    string `json:"County" xml:"County"`
+	Isp       string `json:"Isp" xml:"Isp"`
+}
+
+// CreateDescribeIpv6LocationRequest creates a request to invoke DescribeIpv6Location API
+func CreateDescribeIpv6LocationRequest() (request *DescribeIpv6LocationRequest) {
+	request = &DescribeIpv6LocationRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("geoip", "2020-01-01", "DescribeIpv6Location", "geoip", "openAPI")
+	return
+}
+
+// CreateDescribeIpv6LocationResponse creates a response to parse from DescribeIpv6Location response
+func CreateDescribeIpv6LocationResponse() (response *DescribeIpv6LocationResponse) {
+	response = &DescribeIpv6LocationResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 30 - 0
services/geoip/struct_geoip_instance.go

@@ -0,0 +1,30 @@
+package geoip
+
+//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.
+
+// GeoipInstance is a nested struct in geoip response
+type GeoipInstance struct {
+	ProductCode     string `json:"ProductCode" xml:"ProductCode"`
+	InstanceId      string `json:"InstanceId" xml:"InstanceId"`
+	VersionCode     string `json:"VersionCode" xml:"VersionCode"`
+	Status          string `json:"Status" xml:"Status"`
+	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
+	CreateTimestamp int64  `json:"CreateTimestamp" xml:"CreateTimestamp"`
+	ExpireTime      string `json:"ExpireTime" xml:"ExpireTime"`
+	ExpireTimestamp int64  `json:"ExpireTimestamp" xml:"ExpireTimestamp"`
+	MaxQps          int64  `json:"MaxQps" xml:"MaxQps"`
+	MaxQpd          int64  `json:"MaxQpd" xml:"MaxQpd"`
+}

+ 21 - 0
services/geoip/struct_geoip_instances.go

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

+ 22 - 0
services/geoip/struct_statistic.go

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

+ 21 - 0
services/geoip/struct_statistics.go

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