Skip to content

Commit 7f49f55

Browse files
publish jdcloud-sdk-python 1.6.302
1 parent e63492f commit 7f49f55

13 files changed

Lines changed: 332 additions & 3 deletions

jdcloud_sdk/services/aisearch/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ API版本:0.1.0
55
| 发布时间 | 版本号 | 更新 | 说明 |
66
|------------|-------|-------|------|
77
| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 |
8+
|------------|-------|-------|------|
9+
| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 |
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ExternalDownloadImageRequest(JDCloudRequest):
23+
"""
24+
下载图片
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ExternalDownloadImageRequest, self).__init__(
29+
'/external:downloadImage', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ExternalDownloadImageParameters(object):
34+
35+
def __init__(self,apiKey, requestId, imageId, taskId):
36+
"""
37+
:param apiKey: api key编号
38+
:param requestId: 请求id,api key下唯一
39+
:param imageId: 图片ID
40+
:param taskId: 任务ID
41+
"""
42+
43+
self.apiKey = apiKey
44+
self.requestId = requestId
45+
self.imageId = imageId
46+
self.taskId = taskId
47+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ExternalQueryTaskStatusRequest(JDCloudRequest):
23+
"""
24+
查询任务状态
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ExternalQueryTaskStatusRequest, self).__init__(
29+
'/external:queryTaskStatus', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ExternalQueryTaskStatusParameters(object):
34+
35+
def __init__(self,apiKey, requestId, taskId):
36+
"""
37+
:param apiKey: api key编号
38+
:param requestId: 请求id,api key下唯一
39+
:param taskId: 任务ID
40+
"""
41+
42+
self.apiKey = apiKey
43+
self.requestId = requestId
44+
self.taskId = taskId
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ExternalSubmitSquareToLongTaskBase64Request(JDCloudRequest):
23+
"""
24+
提交方图转长图任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ExternalSubmitSquareToLongTaskBase64Request, self).__init__(
29+
'/external:submitSquareToLongTaskBase64', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ExternalSubmitSquareToLongTaskBase64Parameters(object):
34+
35+
def __init__(self,apiKey, requestId, imageBase64):
36+
"""
37+
:param apiKey: api key编号
38+
:param requestId: 请求id,api key下唯一
39+
:param imageBase64: 方形图片
40+
"""
41+
42+
self.apiKey = apiKey
43+
self.requestId = requestId
44+
self.imageBase64 = imageBase64
45+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ExternalSubmitVirtualTryOnTaskBase64Request(JDCloudRequest):
23+
"""
24+
提交虚拟试衣任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ExternalSubmitVirtualTryOnTaskBase64Request, self).__init__(
29+
'/external:submitVirtualTryOnTaskBase64', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ExternalSubmitVirtualTryOnTaskBase64Parameters(object):
34+
35+
def __init__(self,apiKey, requestId, modelImageBase64, clothesImageBase64):
36+
"""
37+
:param apiKey: api key编号
38+
:param requestId: 请求id,api key下唯一
39+
:param modelImageBase64: 模特图片Base64
40+
:param clothesImageBase64: 服装图片Base64
41+
"""
42+
43+
self.apiKey = apiKey
44+
self.requestId = requestId
45+
self.modelImageBase64 = modelImageBase64
46+
self.clothesImageBase64 = clothesImageBase64
47+

jdcloud_sdk/services/aisearch/apis/ExternalWebSearchRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExternalWebSearchParameters(object):
3535
def __init__(self,apiKey, requestId, query, ):
3636
"""
3737
:param apiKey: api key编号
38-
:param requestId: 请求idapi key下唯一
38+
:param requestId: 请求id,api key下唯一
3939
:param query: 查询内容
4040
"""
4141

jdcloud_sdk/services/aisearch/client/AisearchClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('aisearch.jdcloud-api.com')
2828

29-
super(AisearchClient, self).__init__(credential, config, 'aisearch', '1.0.0', logger)
29+
super(AisearchClient, self).__init__(credential, config, 'aisearch', '0.2.0', logger)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class AccountIsActivatedRespVo(object):
21+
22+
def __init__(self, activated=None):
23+
"""
24+
:param activated: (Optional) 激活状态初始化:INIT 已创建商品:PRODUCT_CREATED 已提交订单:ORDER_SUBMIT 已支付:PAY_DONE 订单完成:DONE
25+
"""
26+
27+
self.activated = activated
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CloudImageDownloadResponseVo(object):
21+
22+
def __init__(self, imageBase64=None):
23+
"""
24+
:param imageBase64: (Optional) 图片Base64编码
25+
"""
26+
27+
self.imageBase64 = imageBase64
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CloudTaskStatusResponseVo(object):
21+
22+
def __init__(self, status=None, images=None):
23+
"""
24+
:param status: (Optional) 任务状态 (1:成功,2:任务失败,3:运行中,4:队列中)
25+
:param images: (Optional) 图片ID列表
26+
"""
27+
28+
self.status = status
29+
self.images = images

0 commit comments

Comments
 (0)