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+ )
22+
23+ type CreateBigKeyAnalysisRequest struct {
24+
25+ core.JDCloudRequest
26+
27+ /* 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 */
28+ RegionId string `json:"regionId"`
29+
30+ /* 缓存Redis实例ID,是访问实例的唯一标识 */
31+ CacheInstanceId string `json:"cacheInstanceId"`
32+
33+ /* String类型阈值 (Optional) */
34+ StringSize * int `json:"stringSize"`
35+
36+ /* List类型阈值 (Optional) */
37+ ListSize * int `json:"listSize"`
38+
39+ /* Hash类型阈值 (Optional) */
40+ HashSize * int `json:"hashSize"`
41+
42+ /* Set类型阈值 (Optional) */
43+ SetSize * int `json:"setSize"`
44+
45+ /* Zset类型阈值 (Optional) */
46+ ZsetSize * int `json:"zsetSize"`
47+
48+ /* top值,范围10~1000 (Optional) */
49+ Top * int `json:"top"`
50+ }
51+
52+ /*
53+ * param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
54+ * param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
55+ *
56+ * @Deprecated, not compatible when mandatory parameters changed
57+ */
58+ func NewCreateBigKeyAnalysisRequest (
59+ regionId string ,
60+ cacheInstanceId string ,
61+ ) * CreateBigKeyAnalysisRequest {
62+
63+ return & CreateBigKeyAnalysisRequest {
64+ JDCloudRequest : core.JDCloudRequest {
65+ URL : "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKey" ,
66+ Method : "POST" ,
67+ Header : nil ,
68+ Version : "v1" ,
69+ },
70+ RegionId : regionId ,
71+ CacheInstanceId : cacheInstanceId ,
72+ }
73+ }
74+
75+ /*
76+ * param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
77+ * param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
78+ * param stringSize: String类型阈值 (Optional)
79+ * param listSize: List类型阈值 (Optional)
80+ * param hashSize: Hash类型阈值 (Optional)
81+ * param setSize: Set类型阈值 (Optional)
82+ * param zsetSize: Zset类型阈值 (Optional)
83+ * param top: top值,范围10~1000 (Optional)
84+ */
85+ func NewCreateBigKeyAnalysisRequestWithAllParams (
86+ regionId string ,
87+ cacheInstanceId string ,
88+ stringSize * int ,
89+ listSize * int ,
90+ hashSize * int ,
91+ setSize * int ,
92+ zsetSize * int ,
93+ top * int ,
94+ ) * CreateBigKeyAnalysisRequest {
95+
96+ return & CreateBigKeyAnalysisRequest {
97+ JDCloudRequest : core.JDCloudRequest {
98+ URL : "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKey" ,
99+ Method : "POST" ,
100+ Header : nil ,
101+ Version : "v1" ,
102+ },
103+ RegionId : regionId ,
104+ CacheInstanceId : cacheInstanceId ,
105+ StringSize : stringSize ,
106+ ListSize : listSize ,
107+ HashSize : hashSize ,
108+ SetSize : setSize ,
109+ ZsetSize : zsetSize ,
110+ Top : top ,
111+ }
112+ }
113+
114+ /* This constructor has better compatible ability when API parameters changed */
115+ func NewCreateBigKeyAnalysisRequestWithoutParam () * CreateBigKeyAnalysisRequest {
116+
117+ return & CreateBigKeyAnalysisRequest {
118+ JDCloudRequest : core.JDCloudRequest {
119+ URL : "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKey" ,
120+ Method : "POST" ,
121+ Header : nil ,
122+ Version : "v1" ,
123+ },
124+ }
125+ }
126+
127+ /* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2(Required) */
128+ func (r * CreateBigKeyAnalysisRequest ) SetRegionId (regionId string ) {
129+ r .RegionId = regionId
130+ }
131+
132+ /* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识(Required) */
133+ func (r * CreateBigKeyAnalysisRequest ) SetCacheInstanceId (cacheInstanceId string ) {
134+ r .CacheInstanceId = cacheInstanceId
135+ }
136+
137+ /* param stringSize: String类型阈值(Optional) */
138+ func (r * CreateBigKeyAnalysisRequest ) SetStringSize (stringSize int ) {
139+ r .StringSize = & stringSize
140+ }
141+
142+ /* param listSize: List类型阈值(Optional) */
143+ func (r * CreateBigKeyAnalysisRequest ) SetListSize (listSize int ) {
144+ r .ListSize = & listSize
145+ }
146+
147+ /* param hashSize: Hash类型阈值(Optional) */
148+ func (r * CreateBigKeyAnalysisRequest ) SetHashSize (hashSize int ) {
149+ r .HashSize = & hashSize
150+ }
151+
152+ /* param setSize: Set类型阈值(Optional) */
153+ func (r * CreateBigKeyAnalysisRequest ) SetSetSize (setSize int ) {
154+ r .SetSize = & setSize
155+ }
156+
157+ /* param zsetSize: Zset类型阈值(Optional) */
158+ func (r * CreateBigKeyAnalysisRequest ) SetZsetSize (zsetSize int ) {
159+ r .ZsetSize = & zsetSize
160+ }
161+
162+ /* param top: top值,范围10~1000(Optional) */
163+ func (r * CreateBigKeyAnalysisRequest ) SetTop (top int ) {
164+ r .Top = & top
165+ }
166+
167+ // GetRegionId returns path parameter 'regionId' if exist,
168+ // otherwise return empty string
169+ func (r CreateBigKeyAnalysisRequest ) GetRegionId () string {
170+ return r .RegionId
171+ }
172+
173+ type CreateBigKeyAnalysisResponse struct {
174+ RequestID string `json:"requestId"`
175+ Error core.ErrorResponse `json:"error"`
176+ Result CreateBigKeyAnalysisResult `json:"result"`
177+ }
178+
179+ type CreateBigKeyAnalysisResult struct {
180+ }
0 commit comments