|
| 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 LoongrayQueryPageRequest(JDCloudRequest): |
| 23 | + """ |
| 24 | + 朗瑞分页查询设备信息,支持一个或多个条件 |
| 25 | + """ |
| 26 | + |
| 27 | + def __init__(self, parameters, header=None, version="v2"): |
| 28 | + super(LoongrayQueryPageRequest, self).__init__( |
| 29 | + '/regions/{regionId}/instances/{instanceId}/devices:loongrayQueryPage', 'GET', header, version) |
| 30 | + self.parameters = parameters |
| 31 | + |
| 32 | + |
| 33 | +class LoongrayQueryPageParameters(object): |
| 34 | + |
| 35 | + def __init__(self, instanceId, regionId, ): |
| 36 | + """ |
| 37 | + :param instanceId: 设备归属的实例ID |
| 38 | + :param regionId: 设备归属的实例所在区域 |
| 39 | + """ |
| 40 | + |
| 41 | + self.instanceId = instanceId |
| 42 | + self.regionId = regionId |
| 43 | + self.deviceName = None |
| 44 | + self.status = None |
| 45 | + self.productKey = None |
| 46 | + self.deviceType = None |
| 47 | + self.nowPage = None |
| 48 | + self.pageSize = None |
| 49 | + self.order = None |
| 50 | + self.direction = None |
| 51 | + self.parentId = None |
| 52 | + |
| 53 | + def setDeviceName(self, deviceName): |
| 54 | + """ |
| 55 | + :param deviceName: (Optional) 设备名称,模糊匹配 |
| 56 | + """ |
| 57 | + self.deviceName = deviceName |
| 58 | + |
| 59 | + def setStatus(self, status): |
| 60 | + """ |
| 61 | + :param status: (Optional) 设备状态 0-未激活,1-激活离线,2-激活在线 |
| 62 | + """ |
| 63 | + self.status = status |
| 64 | + |
| 65 | + def setProductKey(self, productKey): |
| 66 | + """ |
| 67 | + :param productKey: (Optional) 设备所归属的产品Key |
| 68 | + """ |
| 69 | + self.productKey = productKey |
| 70 | + |
| 71 | + def setDeviceType(self, deviceType): |
| 72 | + """ |
| 73 | + :param deviceType: (Optional) 设备类型,同产品类型,0-设备,1-网关 |
| 74 | + """ |
| 75 | + self.deviceType = deviceType |
| 76 | + |
| 77 | + def setNowPage(self, nowPage): |
| 78 | + """ |
| 79 | + :param nowPage: (Optional) 当前页数 |
| 80 | + """ |
| 81 | + self.nowPage = nowPage |
| 82 | + |
| 83 | + def setPageSize(self, pageSize): |
| 84 | + """ |
| 85 | + :param pageSize: (Optional) 每页的数据条数 |
| 86 | + """ |
| 87 | + self.pageSize = pageSize |
| 88 | + |
| 89 | + def setOrder(self, order): |
| 90 | + """ |
| 91 | + :param order: (Optional) 排序关键字--name,type,productKey,status--最多支持一个字段 |
| 92 | + """ |
| 93 | + self.order = order |
| 94 | + |
| 95 | + def setDirection(self, direction): |
| 96 | + """ |
| 97 | + :param direction: (Optional) 顺序,升序降序--asc,desc |
| 98 | + """ |
| 99 | + self.direction = direction |
| 100 | + |
| 101 | + def setParentId(self, parentId): |
| 102 | + """ |
| 103 | + :param parentId: (Optional) 父设备Id |
| 104 | + """ |
| 105 | + self.parentId = parentId |
| 106 | + |
0 commit comments