Skip to content

Commit 84b14f7

Browse files
committed
IMAGESEARCH SDK Auto Released By hq90172,Version:2.0.0
发布日志: 1, Release AddImage/SearchImage/DeleteImage OpenApi. 2, Add 'SearchByName' feature to SearchImage
1 parent e5a88cc commit 84b14f7

File tree

8 files changed

+202
-72
lines changed

8 files changed

+202
-72
lines changed

aliyun-python-sdk-imagesearch/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-04-11 Version: 2.0.0
2+
1, Release AddImage/SearchImage/DeleteImage OpenApi.
3+
2, Add 'SearchByName' feature to SearchImage
4+
15
2019-03-18 Version: 1.0.1
26
1, Update Dependency
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "2.0.0"

aliyun-python-sdk-imagesearch/aliyunsdkimagesearch/request/v20180120/DeleteItemRequest.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

aliyun-python-sdk-imagesearch/aliyunsdkimagesearch/request/v20180120/SearchItemRequest.py

Lines changed: 0 additions & 32 deletions
This file was deleted.
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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 RoaRequest
21+
class AddImageRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'ImageSearch', '2019-03-25', 'AddImage','imagesearch')
25+
self.set_uri_pattern('/v2/image/add')
26+
self.set_method('POST')
27+
28+
def get_PicContent(self):
29+
return self.get_body_params().get('PicContent')
30+
31+
def set_PicContent(self,PicContent):
32+
self.add_body_params('PicContent', PicContent)
33+
34+
def get_StrAttr(self):
35+
return self.get_body_params().get('StrAttr')
36+
37+
def set_StrAttr(self,StrAttr):
38+
self.add_body_params('StrAttr', StrAttr)
39+
40+
def get_InstanceName(self):
41+
return self.get_body_params().get('InstanceName')
42+
43+
def set_InstanceName(self,InstanceName):
44+
self.add_body_params('InstanceName', InstanceName)
45+
46+
def get_IntAttr(self):
47+
return self.get_body_params().get('IntAttr')
48+
49+
def set_IntAttr(self,IntAttr):
50+
self.add_body_params('IntAttr', IntAttr)
51+
52+
def get_ProductId(self):
53+
return self.get_body_params().get('ProductId')
54+
55+
def set_ProductId(self,ProductId):
56+
self.add_body_params('ProductId', ProductId)
57+
58+
def get_PicName(self):
59+
return self.get_body_params().get('PicName')
60+
61+
def set_PicName(self,PicName):
62+
self.add_body_params('PicName', PicName)
63+
64+
def get_CustomContent(self):
65+
return self.get_body_params().get('CustomContent')
66+
67+
def set_CustomContent(self,CustomContent):
68+
self.add_body_params('CustomContent', CustomContent)
69+
70+
def get_Region(self):
71+
return self.get_body_params().get('Region')
72+
73+
def set_Region(self,Region):
74+
self.add_body_params('Region', Region)
75+
76+
def get_CategoryId(self):
77+
return self.get_body_params().get('CategoryId')
78+
79+
def set_CategoryId(self,CategoryId):
80+
self.add_body_params('CategoryId', CategoryId)
81+
82+
def get_Crop(self):
83+
return self.get_body_params().get('Crop')
84+
85+
def set_Crop(self,Crop):
86+
self.add_body_params('Crop', Crop)

aliyun-python-sdk-imagesearch/aliyunsdkimagesearch/request/v20180120/AddItemRequest.py renamed to aliyun-python-sdk-imagesearch/aliyunsdkimagesearch/request/v20190325/DeleteImageRequest.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,27 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RoaRequest
21-
class AddItemRequest(RoaRequest):
21+
class DeleteImageRequest(RoaRequest):
2222

2323
def __init__(self):
24-
RoaRequest.__init__(self, 'ImageSearch', '2018-01-20', 'AddItem','imagesearch')
25-
self.set_uri_pattern('/item/add')
24+
RoaRequest.__init__(self, 'ImageSearch', '2019-03-25', 'DeleteImage','imagesearch')
25+
self.set_uri_pattern('/v2/image/delete')
2626
self.set_method('POST')
2727

28-
def get_instanceName(self):
29-
return self.get_query_params().get('instanceName')
28+
def get_InstanceName(self):
29+
return self.get_body_params().get('InstanceName')
3030

31-
def set_instanceName(self,instanceName):
32-
self.add_query_param('instanceName',instanceName)
31+
def set_InstanceName(self,InstanceName):
32+
self.add_body_params('InstanceName', InstanceName)
33+
34+
def get_ProductId(self):
35+
return self.get_body_params().get('ProductId')
36+
37+
def set_ProductId(self,ProductId):
38+
self.add_body_params('ProductId', ProductId)
39+
40+
def get_PicName(self):
41+
return self.get_body_params().get('PicName')
42+
43+
def set_PicName(self,PicName):
44+
self.add_body_params('PicName', PicName)
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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 RoaRequest
21+
class SearchImageRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'ImageSearch', '2019-03-25', 'SearchImage','imagesearch')
25+
self.set_uri_pattern('/v2/image/search')
26+
self.set_method('POST')
27+
28+
def get_Filter(self):
29+
return self.get_body_params().get('Filter')
30+
31+
def set_Filter(self,Filter):
32+
self.add_body_params('Filter', Filter)
33+
34+
def get_PicContent(self):
35+
return self.get_body_params().get('PicContent')
36+
37+
def set_PicContent(self,PicContent):
38+
self.add_body_params('PicContent', PicContent)
39+
40+
def get_InstanceName(self):
41+
return self.get_body_params().get('InstanceName')
42+
43+
def set_InstanceName(self,InstanceName):
44+
self.add_body_params('InstanceName', InstanceName)
45+
46+
def get_ProductId(self):
47+
return self.get_body_params().get('ProductId')
48+
49+
def set_ProductId(self,ProductId):
50+
self.add_body_params('ProductId', ProductId)
51+
52+
def get_Num(self):
53+
return self.get_body_params().get('Num')
54+
55+
def set_Num(self,Num):
56+
self.add_body_params('Num', Num)
57+
58+
def get_PicName(self):
59+
return self.get_body_params().get('PicName')
60+
61+
def set_PicName(self,PicName):
62+
self.add_body_params('PicName', PicName)
63+
64+
def get_Start(self):
65+
return self.get_body_params().get('Start')
66+
67+
def set_Start(self,Start):
68+
self.add_body_params('Start', Start)
69+
70+
def get_Region(self):
71+
return self.get_body_params().get('Region')
72+
73+
def set_Region(self,Region):
74+
self.add_body_params('Region', Region)
75+
76+
def get_Type(self):
77+
return self.get_body_params().get('Type')
78+
79+
def set_Type(self,Type):
80+
self.add_body_params('Type', Type)
81+
82+
def get_CategoryId(self):
83+
return self.get_body_params().get('CategoryId')
84+
85+
def set_CategoryId(self,CategoryId):
86+
self.add_body_params('CategoryId', CategoryId)
87+
88+
def get_Crop(self):
89+
return self.get_body_params().get('Crop')
90+
91+
def set_Crop(self,Crop):
92+
self.add_body_params('Crop', Crop)

0 commit comments

Comments
 (0)