Skip to content

Commit da66ac8

Browse files
publish jdcloud-sdk-python 1.6.318
1 parent 0466443 commit da66ac8

517 files changed

Lines changed: 25312 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 更新历史 #
2+
3+
API版本:1.0.0
4+
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
|------------|-------|--------------|--------------------------------------|
7+
| 2025-04-17 | 1.0.0 | 初始化 | * 初始化 |
8+
| 2026-03-25 | 1.0.1 | 更新在线服务的一些接口 | * 更新已有接口和对外发布descirbeInferencePods接口 |
9+
| 2026-04-17 | 1.0.2 | 更新在线服务QPS能力 | * 新增更新服务QPS接口;推理服务列表/详情与服务详情新增qps字段 |
10+
| 2026-04-29 | 1.0.3 | 资源队列增加调度策略属性 | * aistack: 创建资源队列可指定调度策略;增加更新调度策略接口 |

jdcloud_sdk/services/jdaip/__init__.py

Whitespace-only changes.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 AddQueuesRequest(JDCloudRequest):
23+
"""
24+
关联队列。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AddQueuesRequest, self).__init__(
29+
'/ws-regions/{regionId}/workspace/{workspaceId}/queue', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AddQueuesParameters(object):
34+
35+
def __init__(self,regionId, workspaceId, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param workspaceId: 工作空间ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.workspaceId = workspaceId
43+
self.queueIds = None
44+
self.queueConfigs = None
45+
46+
def setQueueIds(self, queueIds):
47+
"""
48+
:param queueIds: (Optional) 关联的队列。【废弃】该字段即将下线,建议使用新的资源队列配置字段[queueConfigs]。
49+
"""
50+
self.queueIds = queueIds
51+
52+
def setQueueConfigs(self, queueConfigs):
53+
"""
54+
:param queueConfigs: (Optional) 关联队列配置
55+
"""
56+
self.queueConfigs = queueConfigs
57+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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 AdminDescribeAccountMembersRequest(JDCloudRequest):
23+
"""
24+
管理段-查询主账号下所有绑定空间的子账号
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AdminDescribeAccountMembersRequest, self).__init__(
29+
'/api-regions/{regionId}/member:admin', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AdminDescribeAccountMembersParameters(object):
34+
35+
def __init__(self,regionId, ):
36+
"""
37+
:param regionId: 地域ID
38+
"""
39+
40+
self.regionId = regionId
41+
self.pageNumber = None
42+
self.pageSize = None
43+
self.filters = None
44+
45+
def setPageNumber(self, pageNumber):
46+
"""
47+
:param pageNumber: (Optional) 页码;默认为1。
48+
"""
49+
self.pageNumber = pageNumber
50+
51+
def setPageSize(self, pageSize):
52+
"""
53+
:param pageSize: (Optional) 分页大小;<br>默认为10。
54+
"""
55+
self.pageSize = pageSize
56+
57+
def setFilters(self, filters):
58+
"""
59+
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
60+
`pin`: 主账号pin, 精确比配, 必填
61+
`memberUser`: 子账号名称,模糊匹配
62+
`memberPin`: 子账号pin,精确匹配,支持多个
63+
`regionId`: 区域,精确匹配,支持多个
64+
65+
"""
66+
self.filters = filters
67+
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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 AdminDescribeDistillTasksRequest(JDCloudRequest):
23+
"""
24+
查询pin下有权限的工作空间下的蒸馏任务列表。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(AdminDescribeDistillTasksRequest, self).__init__(
30+
'/dt-regions/{regionId}/api/{apiType}/dttasks', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class AdminDescribeDistillTasksParameters(object):
35+
36+
def __init__(self,regionId, apiType, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param apiType: 接口类型(admin)
40+
"""
41+
42+
self.regionId = regionId
43+
self.apiType = apiType
44+
self.pageNumber = None
45+
self.pageSize = None
46+
self.userTags = None
47+
self.resourceGroupIds = None
48+
self.filters = None
49+
50+
def setPageNumber(self, pageNumber):
51+
"""
52+
:param pageNumber: (Optional) 页码;默认为1。
53+
"""
54+
self.pageNumber = pageNumber
55+
56+
def setPageSize(self, pageSize):
57+
"""
58+
:param pageSize: (Optional) 分页大小;默认为20;取值范围[1, 500]。
59+
"""
60+
self.pageSize = pageSize
61+
62+
def setUserTags(self, userTags):
63+
"""
64+
:param userTags: (Optional) 用户自定义标签列表。
65+
"""
66+
self.userTags = userTags
67+
68+
def setResourceGroupIds(self, resourceGroupIds):
69+
"""
70+
:param resourceGroupIds: (Optional) 资源组ID列表
71+
"""
72+
self.resourceGroupIds = resourceGroupIds
73+
74+
def setFilters(self, filters):
75+
"""
76+
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
77+
`taskId`: 蒸馏任务ID,精确匹配,支持多个。
78+
`taskState`: 蒸馏任务的状态,精确匹配,支持多个。
79+
80+
"""
81+
self.filters = filters
82+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 AdminDescribeInferenceCountRequest(JDCloudRequest):
23+
"""
24+
查询pin下所有的资源,按inference状态统计数量。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(AdminDescribeInferenceCountRequest, self).__init__(
30+
'/infer-regions/{regionId}/api/{apiType}/inferenceCount', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class AdminDescribeInferenceCountParameters(object):
35+
36+
def __init__(self,regionId, apiType, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param apiType: 接口类型(admin)
40+
"""
41+
42+
self.regionId = regionId
43+
self.apiType = apiType
44+
self.filters = None
45+
46+
def setFilters(self, filters):
47+
"""
48+
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
49+
`workspaceId`: 工作空间ID,精确匹配,支持单个。
50+
`state`: 推理服务状态(queuing,deploying,failed,running,stopping,scaling,stopped,deleting)。
51+
52+
"""
53+
self.filters = filters
54+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 AdminDescribeInferencesRequest(JDCloudRequest):
23+
"""
24+
查询pin下有权限的工作空间下的inference列表。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(AdminDescribeInferencesRequest, self).__init__(
30+
'/infer-regions/{regionId}/api/{apiType}/inferences', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class AdminDescribeInferencesParameters(object):
35+
36+
def __init__(self,regionId, apiType, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param apiType: 接口类型(admin)
40+
"""
41+
42+
self.regionId = regionId
43+
self.apiType = apiType
44+
self.pageNumber = None
45+
self.pageSize = None
46+
self.filters = None
47+
48+
def setPageNumber(self, pageNumber):
49+
"""
50+
:param pageNumber: (Optional) 页码;默认为1。
51+
"""
52+
self.pageNumber = pageNumber
53+
54+
def setPageSize(self, pageSize):
55+
"""
56+
:param pageSize: (Optional) 分页大小;<br>默认为10;取值范围[1, 100]。
57+
"""
58+
self.pageSize = pageSize
59+
60+
def setFilters(self, filters):
61+
"""
62+
:param filters: (Optional) <b>filters 中支持使用以下关键字进行过滤</b>
63+
`inferenceId`: 资源ID,精确匹配,支持多个。
64+
`serviceId`: 服务ID, 精确匹配,支持多个。
65+
`name`: 名称,模糊匹配,支持单个。
66+
`state`: 状态,精确匹配,支持多个。
67+
`createUser`: 创建人名称,模糊匹配,支持单个。
68+
`createUserPin`: 创建人pin,精确匹配,支持多个。
69+
`appType`: 应用类型,精确匹配,支持单个。
70+
`queue`: 队列ID,精确匹配,支持单个。
71+
`workspaceId`: 工作空间ID,精确匹配,支持单个。
72+
73+
"""
74+
self.filters = filters
75+

0 commit comments

Comments
 (0)