Skip to content

Commit a9d14eb

Browse files
committed
Generated 2018-01-16 for linkedmall.
1 parent 40aab12 commit a9d14eb

File tree

86 files changed

+5218
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+5218
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2020-05-11 Version: 1.0.0
2+
- Generated 2018-01-16 for `linkedmall`.
3+

aliyun-python-sdk-linkedmall/MANIFEST.in

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-linkedmall
3+
=============================================================
4+
5+
.. This is the linkedmall module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {
24+
"cn-shanghai-internal-test-1": "linkedmall.aliyuncs.com",
25+
"cn-shenzhen-su18-b01": "linkedmall.aliyuncs.com",
26+
"cn-beijing": "linkedmall.aliyuncs.com",
27+
"cn-shanghai-inner": "linkedmall.aliyuncs.com",
28+
"cn-hangzhou-internal-prod-1": "linkedmall.aliyuncs.com",
29+
"cn-north-2-gov-1": "linkedmall.aliyuncs.com",
30+
"cn-yushanfang": "linkedmall.aliyuncs.com",
31+
"cn-qingdao-nebula": "linkedmall.aliyuncs.com",
32+
"cn-beijing-finance-pop": "linkedmall.aliyuncs.com",
33+
"cn-wuhan": "linkedmall.aliyuncs.com",
34+
"cn-zhangjiakou": "linkedmall.aliyuncs.com",
35+
"us-west-1": "linkedmall.aliyuncs.com",
36+
"rus-west-1-pop": "linkedmall.aliyuncs.com",
37+
"cn-shanghai-et15-b01": "linkedmall.aliyuncs.com",
38+
"cn-hangzhou-bj-b01": "linkedmall.aliyuncs.com",
39+
"cn-zhangbei-na61-b01": "linkedmall.aliyuncs.com",
40+
"ap-northeast-1": "linkedmall.aliyuncs.com",
41+
"cn-shanghai-et2-b01": "linkedmall.aliyuncs.com",
42+
"ap-southeast-1": "linkedmall.aliyuncs.com",
43+
"ap-southeast-2": "linkedmall.aliyuncs.com",
44+
"ap-southeast-3": "linkedmall.aliyuncs.com",
45+
"ap-southeast-5": "linkedmall.aliyuncs.com",
46+
"us-east-1": "linkedmall.aliyuncs.com",
47+
"cn-shenzhen-inner": "linkedmall.aliyuncs.com",
48+
"cn-zhangjiakou-na62-a01": "linkedmall.aliyuncs.com",
49+
"cn-beijing-gov-1": "linkedmall.aliyuncs.com",
50+
"ap-south-1": "linkedmall.aliyuncs.com",
51+
"cn-shenzhen-st4-d01": "linkedmall.aliyuncs.com",
52+
"cn-haidian-cm12-c01": "linkedmall.aliyuncs.com",
53+
"cn-qingdao": "linkedmall.aliyuncs.com",
54+
"cn-hongkong-finance-pop": "linkedmall.aliyuncs.com",
55+
"cn-shanghai": "linkedmall.aliyuncs.com",
56+
"cn-shanghai-finance-1": "linkedmall.aliyuncs.com",
57+
"cn-hongkong": "linkedmall.aliyuncs.com",
58+
"eu-central-1": "linkedmall.aliyuncs.com",
59+
"cn-shenzhen": "linkedmall.aliyuncs.com",
60+
"cn-zhengzhou-nebula-1": "linkedmall.aliyuncs.com",
61+
"eu-west-1": "linkedmall.aliyuncs.com",
62+
"cn-hangzhou-internal-test-1": "linkedmall.aliyuncs.com",
63+
"eu-west-1-oxs": "linkedmall.aliyuncs.com",
64+
"cn-beijing-finance-1": "linkedmall.aliyuncs.com",
65+
"cn-hangzhou-internal-test-3": "linkedmall.aliyuncs.com",
66+
"cn-hangzhou-internal-test-2": "linkedmall.aliyuncs.com",
67+
"cn-shenzhen-finance-1": "linkedmall.aliyuncs.com",
68+
"me-east-1": "linkedmall.aliyuncs.com",
69+
"cn-chengdu": "linkedmall.aliyuncs.com",
70+
"cn-hangzhou-test-306": "linkedmall.aliyuncs.com",
71+
"cn-hangzhou-finance": "linkedmall.aliyuncs.com",
72+
"cn-beijing-nu16-b01": "linkedmall.aliyuncs.com",
73+
"cn-edge-1": "linkedmall.aliyuncs.com",
74+
"cn-huhehaote": "linkedmall.aliyuncs.com",
75+
"cn-fujian": "linkedmall.aliyuncs.com",
76+
"ap-northeast-2-pop": "linkedmall.aliyuncs.com",
77+
"cn-hangzhou": "linkedmall.aliyuncs.com",
78+
}
79+
self.endpoint_regional = "regional"
80+
81+
def getEndpointMap(self):
82+
return self.endpoint_map
83+
84+
def getEndpointRegional(self):
85+
return self.endpoint_regional
86+
87+
88+
endpoint_data = EndpointData()

aliyun-python-sdk-linkedmall/aliyunsdklinkedmall/request/__init__.py

Whitespace-only changes.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
from aliyunsdklinkedmall.endpoint import endpoint_data
22+
23+
class AddAddressRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'linkedmall', '2018-01-16', 'AddAddress','linkedmall')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_AddressInfo(self):
35+
return self.get_body_params().get('AddressInfo')
36+
37+
def set_AddressInfo(self,AddressInfo):
38+
self.add_body_params('AddressInfo', AddressInfo)
39+
40+
def get_ThirdPartyUserId(self):
41+
return self.get_query_params().get('ThirdPartyUserId')
42+
43+
def set_ThirdPartyUserId(self,ThirdPartyUserId):
44+
self.add_query_param('ThirdPartyUserId',ThirdPartyUserId)
45+
46+
def get_BizId(self):
47+
return self.get_query_params().get('BizId')
48+
49+
def set_BizId(self,BizId):
50+
self.add_query_param('BizId',BizId)
51+
52+
def get_UseAnonymousTbAccount(self):
53+
return self.get_query_params().get('UseAnonymousTbAccount')
54+
55+
def set_UseAnonymousTbAccount(self,UseAnonymousTbAccount):
56+
self.add_query_param('UseAnonymousTbAccount',UseAnonymousTbAccount)
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
from aliyunsdklinkedmall.endpoint import endpoint_data
22+
23+
class AddItemLimitRuleRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'linkedmall', '2018-01-16', 'AddItemLimitRule','linkedmall')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_UpperNum(self):
35+
return self.get_query_params().get('UpperNum')
36+
37+
def set_UpperNum(self,UpperNum):
38+
self.add_query_param('UpperNum',UpperNum)
39+
40+
def get_LmActivityId(self):
41+
return self.get_query_params().get('LmActivityId')
42+
43+
def set_LmActivityId(self,LmActivityId):
44+
self.add_query_param('LmActivityId',LmActivityId)
45+
46+
def get_RuleType(self):
47+
return self.get_query_params().get('RuleType')
48+
49+
def set_RuleType(self,RuleType):
50+
self.add_query_param('RuleType',RuleType)
51+
52+
def get_EndTime(self):
53+
return self.get_query_params().get('EndTime')
54+
55+
def set_EndTime(self,EndTime):
56+
self.add_query_param('EndTime',EndTime)
57+
58+
def get_LmItemId(self):
59+
return self.get_query_params().get('LmItemId')
60+
61+
def set_LmItemId(self,LmItemId):
62+
self.add_query_param('LmItemId',LmItemId)
63+
64+
def get_BeginTime(self):
65+
return self.get_query_params().get('BeginTime')
66+
67+
def set_BeginTime(self,BeginTime):
68+
self.add_query_param('BeginTime',BeginTime)
69+
70+
def get_SubBizCode(self):
71+
return self.get_query_params().get('SubBizCode')
72+
73+
def set_SubBizCode(self,SubBizCode):
74+
self.add_query_param('SubBizCode',SubBizCode)
75+
76+
def get_ItemId(self):
77+
return self.get_query_params().get('ItemId')
78+
79+
def set_ItemId(self,ItemId):
80+
self.add_query_param('ItemId',ItemId)
81+
82+
def get_BizId(self):
83+
return self.get_query_params().get('BizId')
84+
85+
def set_BizId(self,BizId):
86+
self.add_query_param('BizId',BizId)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
from aliyunsdklinkedmall.endpoint import endpoint_data
22+
23+
class AddSupplierNewItemsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'linkedmall', '2018-01-16', 'AddSupplierNewItems','linkedmall')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_BizId(self):
35+
return self.get_query_params().get('BizId')
36+
37+
def set_BizId(self,BizId):
38+
self.add_query_param('BizId',BizId)
39+
40+
def get_ItemLists(self):
41+
return self.get_query_params().get('ItemLists')
42+
43+
def set_ItemLists(self,ItemLists):
44+
for i in range(len(ItemLists)):
45+
if ItemLists[i].get('ItemId') is not None:
46+
self.add_query_param('ItemList.' + str(i + 1) + '.ItemId' , ItemLists[i].get('ItemId'))
47+
if ItemLists[i].get('LmItemId') is not None:
48+
self.add_query_param('ItemList.' + str(i + 1) + '.LmItemId' , ItemLists[i].get('LmItemId'))
49+
for j in range(len(ItemLists[i].get('SkuLists'))):
50+
if ItemLists[i].get('SkuLists')[j] is not None:
51+
self.add_query_param('ItemList.' + str(i + 1) + '.SkuList.'+str(j + 1), ItemLists[i].get('SkuLists')[j])

0 commit comments

Comments
 (0)