|
| 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 DescribeCertsRequest(JDCloudRequest): |
| 23 | + """ |
| 24 | + 查询证书列表<br/> |
| 25 | +支持分页查询,默认每页20条<br/> |
| 26 | +
|
| 27 | + """ |
| 28 | + |
| 29 | + def __init__(self, parameters, header=None, version="v1"): |
| 30 | + super(DescribeCertsRequest, self).__init__( |
| 31 | + '/regions/{regionId}/certs', 'GET', header, version) |
| 32 | + self.parameters = parameters |
| 33 | + |
| 34 | + |
| 35 | +class DescribeCertsParameters(object): |
| 36 | + |
| 37 | + def __init__(self, regionId, ): |
| 38 | + """ |
| 39 | + :param regionId: 地域ID,可调用接口(describeRegiones)获取云物理服务器支持的地域 |
| 40 | + """ |
| 41 | + |
| 42 | + self.regionId = regionId |
| 43 | + self.pageNumber = None |
| 44 | + self.pageSize = None |
| 45 | + self.name = 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) 分页大小;默认为20;取值范围[20, 100] |
| 57 | + """ |
| 58 | + self.pageSize = pageSize |
| 59 | + |
| 60 | + def setName(self, name): |
| 61 | + """ |
| 62 | + :param name: (Optional) 证书名称 |
| 63 | + """ |
| 64 | + self.name = name |
| 65 | + |
| 66 | + def setFilters(self, filters): |
| 67 | + """ |
| 68 | + :param filters: (Optional) certId - 证书ID,精确匹配,支持多个<br/> |
| 69 | +
|
| 70 | + """ |
| 71 | + self.filters = filters |
| 72 | + |
0 commit comments