Skip to content

Commit df71589

Browse files
publish jdcloud-sdk-go version 1.0.3
1 parent 56add6d commit df71589

18 files changed

Lines changed: 1897 additions & 2 deletions

services/redis/ChangeLog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# 更新历史
22

3-
API版本:2.6.17
3+
API版本:2.6.22
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| 2022-08-16 | 2.6.22 | 新增接口 | 新增接口modifyAccounts |
8+
| 2022-08-15 | 2.6.21 | 新增接口 | 新增接口checkInstances |
9+
| 2022-08-05 | 2.6.20 | 新增接口 | 新增接口createBigKeyAnalysis2、describeBigKeyList2、describeBigKeyDetail2、modifyBigKeyAnalysisTime2、describeBigKeyAnalysisTime2、modifyAnalysisThreshold2、describeAnalysisThreshold2、describeHotKeyResult2、describeHotKeyDetail2 |
10+
| 2022-08-01 | 2.6.19 | 新增接口 | 新增接口describeAvailableResource2 |
711
| 2022-07-20 | 2.6.18 | 新增接口 | 更新接口modifyAnalysisThreshold、describeBigKeyList |
812
| 2022-07-06 | 2.6.17 | 新增接口 | 新增接口bigKey、bigKeyDetail、bigKeyAutoAnalysisTime、stopCacheAnalysis、cacheAnalysisThreshold |
913
| 2022-05-31 | 2.6.16 | 新增接口 | 新增接口describeNodeList,更新接口executeCommand |
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
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+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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 DescribeAnalysisThreshold2Request 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+
}
34+
35+
/*
36+
* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
37+
* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
38+
*
39+
* @Deprecated, not compatible when mandatory parameters changed
40+
*/
41+
func NewDescribeAnalysisThreshold2Request(
42+
regionId string,
43+
cacheInstanceId string,
44+
) *DescribeAnalysisThreshold2Request {
45+
46+
return &DescribeAnalysisThreshold2Request{
47+
JDCloudRequest: core.JDCloudRequest{
48+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKeyAnalysisThreshold",
49+
Method: "GET",
50+
Header: nil,
51+
Version: "v1",
52+
},
53+
RegionId: regionId,
54+
CacheInstanceId: cacheInstanceId,
55+
}
56+
}
57+
58+
/*
59+
* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
60+
* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
61+
*/
62+
func NewDescribeAnalysisThreshold2RequestWithAllParams(
63+
regionId string,
64+
cacheInstanceId string,
65+
) *DescribeAnalysisThreshold2Request {
66+
67+
return &DescribeAnalysisThreshold2Request{
68+
JDCloudRequest: core.JDCloudRequest{
69+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKeyAnalysisThreshold",
70+
Method: "GET",
71+
Header: nil,
72+
Version: "v1",
73+
},
74+
RegionId: regionId,
75+
CacheInstanceId: cacheInstanceId,
76+
}
77+
}
78+
79+
/* This constructor has better compatible ability when API parameters changed */
80+
func NewDescribeAnalysisThreshold2RequestWithoutParam() *DescribeAnalysisThreshold2Request {
81+
82+
return &DescribeAnalysisThreshold2Request{
83+
JDCloudRequest: core.JDCloudRequest{
84+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/bigKeyAnalysisThreshold",
85+
Method: "GET",
86+
Header: nil,
87+
Version: "v1",
88+
},
89+
}
90+
}
91+
92+
/* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2(Required) */
93+
func (r *DescribeAnalysisThreshold2Request) SetRegionId(regionId string) {
94+
r.RegionId = regionId
95+
}
96+
97+
/* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识(Required) */
98+
func (r *DescribeAnalysisThreshold2Request) SetCacheInstanceId(cacheInstanceId string) {
99+
r.CacheInstanceId = cacheInstanceId
100+
}
101+
102+
103+
// GetRegionId returns path parameter 'regionId' if exist,
104+
// otherwise return empty string
105+
func (r DescribeAnalysisThreshold2Request) GetRegionId() string {
106+
return r.RegionId
107+
}
108+
109+
type DescribeAnalysisThreshold2Response struct {
110+
RequestID string `json:"requestId"`
111+
Error core.ErrorResponse `json:"error"`
112+
Result DescribeAnalysisThreshold2Result `json:"result"`
113+
}
114+
115+
type DescribeAnalysisThreshold2Result struct {
116+
StringSize int `json:"stringSize"`
117+
ListSize int `json:"listSize"`
118+
HashSize int `json:"hashSize"`
119+
SetSize int `json:"setSize"`
120+
ZsetSize int `json:"zsetSize"`
121+
}

0 commit comments

Comments
 (0)