1+ // Copyright 2018 JDCLOUD.COM
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ //
15+ // NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+ package apis
18+
19+ import (
20+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
21+ cloudsign "github.com/jdcloud-api/jdcloud-sdk-go/services/cloudsign/models"
22+ )
23+
24+ type DescribeCertListRequest struct {
25+
26+ core.JDCloudRequest
27+
28+ /* 页码, 默认为1 (Optional) */
29+ PageNumber * int `json:"pageNumber"`
30+
31+ /* 分页大小, 默认为10, 取值范围[10, 100] (Optional) */
32+ PageSize * int `json:"pageSize"`
33+
34+ /* 证书渠道 (Optional) */
35+ CaType * string `json:"caType"`
36+
37+ /* 个人用户姓名或企业名 (Optional) */
38+ Name * string `json:"name"`
39+
40+ /* 证书序列号 (Optional) */
41+ SerialNo * string `json:"serialNo"`
42+
43+ /* 证书算法 (Optional) */
44+ KeyAlg * string `json:"keyAlg"`
45+
46+ /* 证书状态 (Optional) */
47+ CertStatus * int `json:"certStatus"`
48+ }
49+
50+ /*
51+ *
52+ * @Deprecated, not compatible when mandatory parameters changed
53+ */
54+ func NewDescribeCertListRequest (
55+ ) * DescribeCertListRequest {
56+
57+ return & DescribeCertListRequest {
58+ JDCloudRequest : core.JDCloudRequest {
59+ URL : "/smqCert:list" ,
60+ Method : "GET" ,
61+ Header : nil ,
62+ Version : "v1" ,
63+ },
64+ }
65+ }
66+
67+ /*
68+ * param pageNumber: 页码, 默认为1 (Optional)
69+ * param pageSize: 分页大小, 默认为10, 取值范围[10, 100] (Optional)
70+ * param caType: 证书渠道 (Optional)
71+ * param name: 个人用户姓名或企业名 (Optional)
72+ * param serialNo: 证书序列号 (Optional)
73+ * param keyAlg: 证书算法 (Optional)
74+ * param certStatus: 证书状态 (Optional)
75+ */
76+ func NewDescribeCertListRequestWithAllParams (
77+ pageNumber * int ,
78+ pageSize * int ,
79+ caType * string ,
80+ name * string ,
81+ serialNo * string ,
82+ keyAlg * string ,
83+ certStatus * int ,
84+ ) * DescribeCertListRequest {
85+
86+ return & DescribeCertListRequest {
87+ JDCloudRequest : core.JDCloudRequest {
88+ URL : "/smqCert:list" ,
89+ Method : "GET" ,
90+ Header : nil ,
91+ Version : "v1" ,
92+ },
93+ PageNumber : pageNumber ,
94+ PageSize : pageSize ,
95+ CaType : caType ,
96+ Name : name ,
97+ SerialNo : serialNo ,
98+ KeyAlg : keyAlg ,
99+ CertStatus : certStatus ,
100+ }
101+ }
102+
103+ /* This constructor has better compatible ability when API parameters changed */
104+ func NewDescribeCertListRequestWithoutParam () * DescribeCertListRequest {
105+
106+ return & DescribeCertListRequest {
107+ JDCloudRequest : core.JDCloudRequest {
108+ URL : "/smqCert:list" ,
109+ Method : "GET" ,
110+ Header : nil ,
111+ Version : "v1" ,
112+ },
113+ }
114+ }
115+
116+ /* param pageNumber: 页码, 默认为1(Optional) */
117+ func (r * DescribeCertListRequest ) SetPageNumber (pageNumber int ) {
118+ r .PageNumber = & pageNumber
119+ }
120+ /* param pageSize: 分页大小, 默认为10, 取值范围[10, 100](Optional) */
121+ func (r * DescribeCertListRequest ) SetPageSize (pageSize int ) {
122+ r .PageSize = & pageSize
123+ }
124+ /* param caType: 证书渠道(Optional) */
125+ func (r * DescribeCertListRequest ) SetCaType (caType string ) {
126+ r .CaType = & caType
127+ }
128+ /* param name: 个人用户姓名或企业名(Optional) */
129+ func (r * DescribeCertListRequest ) SetName (name string ) {
130+ r .Name = & name
131+ }
132+ /* param serialNo: 证书序列号(Optional) */
133+ func (r * DescribeCertListRequest ) SetSerialNo (serialNo string ) {
134+ r .SerialNo = & serialNo
135+ }
136+ /* param keyAlg: 证书算法(Optional) */
137+ func (r * DescribeCertListRequest ) SetKeyAlg (keyAlg string ) {
138+ r .KeyAlg = & keyAlg
139+ }
140+ /* param certStatus: 证书状态(Optional) */
141+ func (r * DescribeCertListRequest ) SetCertStatus (certStatus int ) {
142+ r .CertStatus = & certStatus
143+ }
144+
145+
146+ // GetRegionId returns path parameter 'regionId' if exist,
147+ // otherwise return empty string
148+ func (r DescribeCertListRequest ) GetRegionId () string {
149+ return ""
150+ }
151+
152+ type DescribeCertListResponse struct {
153+ RequestID string `json:"requestId"`
154+ Error core.ErrorResponse `json:"error"`
155+ Result DescribeCertListResult `json:"result"`
156+ }
157+
158+ type DescribeCertListResult struct {
159+ CertList []cloudsign.CertInfo `json:"certList"`
160+ TotalCount int `json:"totalCount"`
161+ }
0 commit comments