Skip to content

Commit 5d57aac

Browse files
committed
Support offline instance.
1 parent 84eda44 commit 5d57aac

9 files changed

+91
-1
lines changed

aliyun-python-sdk-geoip/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-06-08 Version: 1.0.3
2+
- Support offline instance.
3+
14
2020-04-23 Version: 1.0.2
25
- Add location info.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.2'
1+
__version__ = '1.0.3'
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class DescribeGeoipInstanceDataInfosRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeGeoipInstanceDataInfos','geoip')
26+
self.set_method('POST')
27+
28+
def get_InstanceId(self):
29+
return self.get_query_params().get('InstanceId')
30+
31+
def set_InstanceId(self,InstanceId):
32+
self.add_query_param('InstanceId',InstanceId)
33+
34+
def get_Lang(self):
35+
return self.get_query_params().get('Lang')
36+
37+
def set_Lang(self,Lang):
38+
self.add_query_param('Lang',Lang)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class DescribeGeoipInstanceDataUrlRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeGeoipInstanceDataUrl','geoip')
26+
self.set_method('POST')
27+
28+
def get_InstanceId(self):
29+
return self.get_query_params().get('InstanceId')
30+
31+
def set_InstanceId(self,InstanceId):
32+
self.add_query_param('InstanceId',InstanceId)
33+
34+
def get_DataType(self):
35+
return self.get_query_params().get('DataType')
36+
37+
def set_DataType(self,DataType):
38+
self.add_query_param('DataType',DataType)
39+
40+
def get_Lang(self):
41+
return self.get_query_params().get('Lang')
42+
43+
def set_Lang(self,Lang):
44+
self.add_query_param('Lang',Lang)

aliyun-python-sdk-geoip/aliyunsdkgeoip/request/v20200101/DescribeGeoipInstanceRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DescribeGeoipInstanceRequest(RpcRequest):
2323

2424
def __init__(self):
2525
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeGeoipInstance','geoip')
26+
self.set_method('POST')
2627

2728
def get_InstanceId(self):
2829
return self.get_query_params().get('InstanceId')

aliyun-python-sdk-geoip/aliyunsdkgeoip/request/v20200101/DescribeGeoipInstanceStatisticsRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DescribeGeoipInstanceStatisticsRequest(RpcRequest):
2323

2424
def __init__(self):
2525
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeGeoipInstanceStatistics','geoip')
26+
self.set_method('POST')
2627

2728
def get_StartDate(self):
2829
return self.get_query_params().get('StartDate')

aliyun-python-sdk-geoip/aliyunsdkgeoip/request/v20200101/DescribeGeoipInstancesRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DescribeGeoipInstancesRequest(RpcRequest):
2323

2424
def __init__(self):
2525
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeGeoipInstances','geoip')
26+
self.set_method('POST')
2627

2728
def get_Lang(self):
2829
return self.get_query_params().get('Lang')

aliyun-python-sdk-geoip/aliyunsdkgeoip/request/v20200101/DescribeIpv4LocationRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DescribeIpv4LocationRequest(RpcRequest):
2323

2424
def __init__(self):
2525
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeIpv4Location','geoip')
26+
self.set_method('POST')
2627

2728
def get_Ip(self):
2829
return self.get_query_params().get('Ip')

aliyun-python-sdk-geoip/aliyunsdkgeoip/request/v20200101/DescribeIpv6LocationRequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DescribeIpv6LocationRequest(RpcRequest):
2323

2424
def __init__(self):
2525
RpcRequest.__init__(self, 'geoip', '2020-01-01', 'DescribeIpv6Location','geoip')
26+
self.set_method('POST')
2627

2728
def get_Ip(self):
2829
return self.get_query_params().get('Ip')

0 commit comments

Comments
 (0)