Skip to content

Commit ee5b0d3

Browse files
publish jdcloud-sdk-go version 2.6.17
1 parent 1182a64 commit ee5b0d3

11 files changed

Lines changed: 1428 additions & 133 deletions

services/redis/ChangeLog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# 更新历史
22

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

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7-
| 2022-05-31 | 2.6.16 | 新增接口 | 新增接口describeNodeList,更新接口executeCommand |
7+
| 2022-07-06 | 2.6.17 | 新增接口 | 新增接口bigKey、bigKeyDetail、bigKeyAutoAnalysisTime、stopCacheAnalysis、cacheAnalysisThreshold |
8+
| 2022-05-31 | 2.6.16 | 新增接口 | 新增接口describeNodeList,更新接口executeCommand |
89
| 2022-05-23 | 2.6.15 | 接口更新 | 更新接口createCacheInstance、describeCacheInstance、describeCacheInstances、describeAvailableResource |
910
| 2022-05-20 | 2.6.14 | 新增接口 | 新增接口filteredClientPerfData |
1011
| 2022-05-17 | 2.6.13 | 接口更新 | 更新接口describeInstanceConfig |
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
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+
}
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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 DescribeAnalysisThresholdRequest 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+
/* 任务id */
34+
TaskId string `json:"taskId"`
35+
}
36+
37+
/*
38+
* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
39+
* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
40+
* param taskId: 任务id (Required)
41+
*
42+
* @Deprecated, not compatible when mandatory parameters changed
43+
*/
44+
func NewDescribeAnalysisThresholdRequest(
45+
regionId string,
46+
cacheInstanceId string,
47+
taskId string,
48+
) *DescribeAnalysisThresholdRequest {
49+
50+
return &DescribeAnalysisThresholdRequest{
51+
JDCloudRequest: core.JDCloudRequest{
52+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/cacheAnalysisThreshold",
53+
Method: "GET",
54+
Header: nil,
55+
Version: "v1",
56+
},
57+
RegionId: regionId,
58+
CacheInstanceId: cacheInstanceId,
59+
TaskId: taskId,
60+
}
61+
}
62+
63+
/*
64+
* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2 (Required)
65+
* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识 (Required)
66+
* param taskId: 任务id (Required)
67+
*/
68+
func NewDescribeAnalysisThresholdRequestWithAllParams(
69+
regionId string,
70+
cacheInstanceId string,
71+
taskId string,
72+
) *DescribeAnalysisThresholdRequest {
73+
74+
return &DescribeAnalysisThresholdRequest{
75+
JDCloudRequest: core.JDCloudRequest{
76+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/cacheAnalysisThreshold",
77+
Method: "GET",
78+
Header: nil,
79+
Version: "v1",
80+
},
81+
RegionId: regionId,
82+
CacheInstanceId: cacheInstanceId,
83+
TaskId: taskId,
84+
}
85+
}
86+
87+
/* This constructor has better compatible ability when API parameters changed */
88+
func NewDescribeAnalysisThresholdRequestWithoutParam() *DescribeAnalysisThresholdRequest {
89+
90+
return &DescribeAnalysisThresholdRequest{
91+
JDCloudRequest: core.JDCloudRequest{
92+
URL: "/regions/{regionId}/cacheInstance/{cacheInstanceId}/cacheAnalysisThreshold",
93+
Method: "GET",
94+
Header: nil,
95+
Version: "v1",
96+
},
97+
}
98+
}
99+
100+
/* param regionId: 缓存Redis实例所在区域的Region ID。目前有华北-北京、华南-广州、华东-上海三个区域,Region ID分别为cn-north-1、cn-south-1、cn-east-2(Required) */
101+
func (r *DescribeAnalysisThresholdRequest) SetRegionId(regionId string) {
102+
r.RegionId = regionId
103+
}
104+
105+
/* param cacheInstanceId: 缓存Redis实例ID,是访问实例的唯一标识(Required) */
106+
func (r *DescribeAnalysisThresholdRequest) SetCacheInstanceId(cacheInstanceId string) {
107+
r.CacheInstanceId = cacheInstanceId
108+
}
109+
110+
/* param taskId: 任务id(Required) */
111+
func (r *DescribeAnalysisThresholdRequest) SetTaskId(taskId string) {
112+
r.TaskId = taskId
113+
}
114+
115+
// GetRegionId returns path parameter 'regionId' if exist,
116+
// otherwise return empty string
117+
func (r DescribeAnalysisThresholdRequest) GetRegionId() string {
118+
return r.RegionId
119+
}
120+
121+
type DescribeAnalysisThresholdResponse struct {
122+
RequestID string `json:"requestId"`
123+
Error core.ErrorResponse `json:"error"`
124+
Result DescribeAnalysisThresholdResult `json:"result"`
125+
}
126+
127+
type DescribeAnalysisThresholdResult struct {
128+
StringSize int `json:"stringSize"`
129+
ListSize int `json:"listSize"`
130+
HashSize int `json:"hashSize"`
131+
SetSize int `json:"setSize"`
132+
ZsetSize int `json:"zsetSize"`
133+
TopSize int `json:"topSize"`
134+
}

0 commit comments

Comments
 (0)