|
| 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 | + |
0 commit comments