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