@ucloud-sdks/ucloud-sdk-js 0.0.5 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/middlewares.js +1 -1
- package/lib/services/cube/index.d.ts +141 -1
- package/lib/services/cube/index.js +36 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.js +14 -0
- package/lib/services/ipsecvpn/index.d.ts +13 -5
- package/lib/services/pathx/index.d.ts +986 -60
- package/lib/services/pathx/index.js +144 -0
- package/lib/services/uaccount/index.d.ts +0 -24
- package/lib/services/uaccount/index.js +0 -9
- package/lib/services/ubill/index.d.ts +284 -4
- package/lib/services/ubill/index.js +18 -0
- package/lib/services/ucdn/index.d.ts +1085 -946
- package/lib/services/ucdn/index.js +72 -45
- package/lib/services/udb/index.d.ts +89 -12
- package/lib/services/udb/index.js +21 -3
- package/lib/services/udisk/index.d.ts +32 -8
- package/lib/services/uec/index.d.ts +68 -8
- package/lib/services/uec/index.js +9 -0
- package/lib/services/ufile/index.d.ts +288 -0
- package/lib/services/ufile/index.js +45 -0
- package/lib/services/ufs/index.d.ts +201 -3
- package/lib/services/ufs/index.js +45 -0
- package/lib/services/uhost/index.d.ts +201 -99
- package/lib/services/uhost/index.js +9 -0
- package/lib/services/uk8s/index.d.ts +690 -9
- package/lib/services/uk8s/index.js +45 -0
- package/lib/services/ulb/index.d.ts +45 -5
- package/lib/services/ulb/index.js +9 -0
- package/lib/services/umem/index.d.ts +337 -9
- package/lib/services/umem/index.js +27 -0
- package/lib/services/unet/index.d.ts +175 -6
- package/lib/services/unet/index.js +36 -0
- package/lib/services/uphone/index.d.ts +1986 -0
- package/lib/services/uphone/index.js +352 -0
- package/lib/services/uphost/index.d.ts +221 -25
- package/lib/services/uphost/index.js +36 -0
- package/lib/services/usms/index.d.ts +23 -3
- package/lib/services/uvms/index.d.ts +64 -0
- package/lib/services/uvms/index.js +25 -0
- package/lib/services/vpc/index.d.ts +390 -19
- package/lib/services/vpc/index.js +54 -0
- package/package.json +7 -7
|
@@ -21,6 +21,15 @@ class UK8SClient extends client_1.default {
|
|
|
21
21
|
const args = Object.assign({ Action: 'AddUK8SExistingUHost' }, (request || {}));
|
|
22
22
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* AddUK8SNodeGroup - 添加UK8S节点池
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_node_group
|
|
28
|
+
*/
|
|
29
|
+
addUK8SNodeGroup(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'AddUK8SNodeGroup' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* AddUK8SPHostNode - 为UK8S集群添加一台或多台物理云主机类型的节点。
|
|
26
35
|
*
|
|
@@ -66,6 +75,15 @@ class UK8SClient extends client_1.default {
|
|
|
66
75
|
const args = Object.assign({ Action: 'DelUK8SClusterNodeV2' }, (request || {}));
|
|
67
76
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_cluster
|
|
82
|
+
*/
|
|
83
|
+
describeUK8SCluster(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DescribeUK8SCluster' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
69
87
|
/**
|
|
70
88
|
* DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像
|
|
71
89
|
*
|
|
@@ -75,6 +93,15 @@ class UK8SClient extends client_1.default {
|
|
|
75
93
|
const args = Object.assign({ Action: 'DescribeUK8SImage' }, (request || {}));
|
|
76
94
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_node
|
|
100
|
+
*/
|
|
101
|
+
describeUK8SNode(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'DescribeUK8SNode' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
78
105
|
/**
|
|
79
106
|
* ListUK8SClusterNodeV2 - 获取UK8S集群节点信息
|
|
80
107
|
*
|
|
@@ -93,5 +120,23 @@ class UK8SClient extends client_1.default {
|
|
|
93
120
|
const args = Object.assign({ Action: 'ListUK8SClusterV2' }, (request || {}));
|
|
94
121
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* ListUK8SNodeGroup - 列出UK8S节点池
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_node_group
|
|
127
|
+
*/
|
|
128
|
+
listUK8SNodeGroup(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'ListUK8SNodeGroup' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* RemoveUK8SNodeGroup - 删除UK8S节点池
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/remove_uk8s_node_group
|
|
136
|
+
*/
|
|
137
|
+
removeUK8SNodeGroup(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'RemoveUK8SNodeGroup' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
96
141
|
}
|
|
97
142
|
exports.default = UK8SClient;
|
|
@@ -117,6 +117,12 @@ export default class ULBClient extends Client {
|
|
|
117
117
|
* See also: https://docs.ucloud.cn/api/ulb-api/update_policy
|
|
118
118
|
*/
|
|
119
119
|
updatePolicy(request?: UpdatePolicyRequest): Promise<UpdatePolicyResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* UpdateSSLAttribute - 更新修改SSL的属性,如:修改SSLName
|
|
122
|
+
*
|
|
123
|
+
* See also: https://docs.ucloud.cn/api/ulb-api/update_ssl_attribute
|
|
124
|
+
*/
|
|
125
|
+
updateSSLAttribute(request?: UpdateSSLAttributeRequest): Promise<UpdateSSLAttributeResponse>;
|
|
120
126
|
/**
|
|
121
127
|
* UpdateULBAttribute - 更新ULB名字业务组备注等属性字段
|
|
122
128
|
*
|
|
@@ -143,7 +149,7 @@ export interface AllocateBackendRequest {
|
|
|
143
149
|
*/
|
|
144
150
|
VServerId: string;
|
|
145
151
|
/**
|
|
146
|
-
* 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube
|
|
152
|
+
* 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE
|
|
147
153
|
*/
|
|
148
154
|
ResourceType: string;
|
|
149
155
|
/**
|
|
@@ -167,7 +173,7 @@ export interface AllocateBackendRequest {
|
|
|
167
173
|
*/
|
|
168
174
|
Port?: number;
|
|
169
175
|
/**
|
|
170
|
-
* 所添加的后端RS权重(在加权轮询算法下有效),取值范围[
|
|
176
|
+
* 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
|
|
171
177
|
*/
|
|
172
178
|
Weight?: number;
|
|
173
179
|
/**
|
|
@@ -319,7 +325,7 @@ export interface CreateULBRequest {
|
|
|
319
325
|
*/
|
|
320
326
|
VPCId?: string;
|
|
321
327
|
/**
|
|
322
|
-
*
|
|
328
|
+
* ULB 所属的子网ID,如果不传则随机选择一个。
|
|
323
329
|
*/
|
|
324
330
|
SubnetId?: string;
|
|
325
331
|
/**
|
|
@@ -331,7 +337,7 @@ export interface CreateULBRequest {
|
|
|
331
337
|
*/
|
|
332
338
|
FirewallId?: string;
|
|
333
339
|
/**
|
|
334
|
-
* ULB
|
|
340
|
+
* ULB 监听器类型,外网ULB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发。
|
|
335
341
|
*/
|
|
336
342
|
ListenType?: string;
|
|
337
343
|
}
|
|
@@ -664,6 +670,10 @@ export interface DescribeULBResponse {
|
|
|
664
670
|
* 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize
|
|
665
671
|
*/
|
|
666
672
|
MonitorType: string;
|
|
673
|
+
/**
|
|
674
|
+
* 负载均衡实例的Id
|
|
675
|
+
*/
|
|
676
|
+
ULBId?: string;
|
|
667
677
|
/**
|
|
668
678
|
* 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
|
|
669
679
|
*/
|
|
@@ -831,6 +841,10 @@ export interface DescribeULBResponse {
|
|
|
831
841
|
* 内容转发信息列表,具体结构见下方 ULBPolicySet
|
|
832
842
|
*/
|
|
833
843
|
PolicySet?: {
|
|
844
|
+
/**
|
|
845
|
+
* 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名
|
|
846
|
+
*/
|
|
847
|
+
DomainMatchMode?: string;
|
|
834
848
|
/**
|
|
835
849
|
* 内容转发Id,默认内容转发类型下为空。
|
|
836
850
|
*/
|
|
@@ -1135,7 +1149,7 @@ export interface DescribeVServerRequest {
|
|
|
1135
1149
|
/**
|
|
1136
1150
|
* 负载均衡实例的Id
|
|
1137
1151
|
*/
|
|
1138
|
-
ULBId
|
|
1152
|
+
ULBId?: string;
|
|
1139
1153
|
/**
|
|
1140
1154
|
* VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息
|
|
1141
1155
|
*/
|
|
@@ -1165,6 +1179,10 @@ export interface DescribeVServerResponse {
|
|
|
1165
1179
|
* 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize
|
|
1166
1180
|
*/
|
|
1167
1181
|
MonitorType: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* 负载均衡实例的Id
|
|
1184
|
+
*/
|
|
1185
|
+
ULBId?: string;
|
|
1168
1186
|
/**
|
|
1169
1187
|
* 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
|
|
1170
1188
|
*/
|
|
@@ -1332,6 +1350,10 @@ export interface DescribeVServerResponse {
|
|
|
1332
1350
|
* 内容转发信息列表,具体结构见下方 ULBPolicySet
|
|
1333
1351
|
*/
|
|
1334
1352
|
PolicySet?: {
|
|
1353
|
+
/**
|
|
1354
|
+
* 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名
|
|
1355
|
+
*/
|
|
1356
|
+
DomainMatchMode?: string;
|
|
1335
1357
|
/**
|
|
1336
1358
|
* 内容转发Id,默认内容转发类型下为空。
|
|
1337
1359
|
*/
|
|
@@ -1512,6 +1534,24 @@ export interface UpdatePolicyRequest {
|
|
|
1512
1534
|
*/
|
|
1513
1535
|
export interface UpdatePolicyResponse {
|
|
1514
1536
|
}
|
|
1537
|
+
/**
|
|
1538
|
+
* UpdateSSLAttribute - 更新修改SSL的属性,如:修改SSLName
|
|
1539
|
+
*/
|
|
1540
|
+
export interface UpdateSSLAttributeRequest {
|
|
1541
|
+
/**
|
|
1542
|
+
* SSL的资源id
|
|
1543
|
+
*/
|
|
1544
|
+
SSLId: string;
|
|
1545
|
+
/**
|
|
1546
|
+
* SSL实例名称,不允许传空
|
|
1547
|
+
*/
|
|
1548
|
+
SSLName: string;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* UpdateSSLAttribute - 更新修改SSL的属性,如:修改SSLName
|
|
1552
|
+
*/
|
|
1553
|
+
export interface UpdateSSLAttributeResponse {
|
|
1554
|
+
}
|
|
1515
1555
|
/**
|
|
1516
1556
|
* UpdateULBAttribute - 更新ULB名字业务组备注等属性字段
|
|
1517
1557
|
*/
|
|
@@ -174,6 +174,15 @@ class ULBClient extends client_1.default {
|
|
|
174
174
|
const args = Object.assign({ Action: 'UpdatePolicy' }, (request || {}));
|
|
175
175
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* UpdateSSLAttribute - 更新修改SSL的属性,如:修改SSLName
|
|
179
|
+
*
|
|
180
|
+
* See also: https://docs.ucloud.cn/api/ulb-api/update_ssl_attribute
|
|
181
|
+
*/
|
|
182
|
+
updateSSLAttribute(request) {
|
|
183
|
+
const args = Object.assign({ Action: 'UpdateSSLAttribute' }, (request || {}));
|
|
184
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
185
|
+
}
|
|
177
186
|
/**
|
|
178
187
|
* UpdateULBAttribute - 更新ULB名字业务组备注等属性字段
|
|
179
188
|
*
|
|
@@ -69,12 +69,24 @@ export default class UMemClient extends Client {
|
|
|
69
69
|
* See also: https://docs.ucloud.cn/api/umem-api/delete_uredis_group
|
|
70
70
|
*/
|
|
71
71
|
deleteURedisGroup(request?: DeleteURedisGroupRequest): Promise<DeleteURedisGroupResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息
|
|
74
|
+
*
|
|
75
|
+
* See also: https://docs.ucloud.cn/api/umem-api/describe_ud_redis_proxy_info
|
|
76
|
+
*/
|
|
77
|
+
describeUDRedisProxyInfo(request?: DescribeUDRedisProxyInfoRequest): Promise<DescribeUDRedisProxyInfoResponse>;
|
|
72
78
|
/**
|
|
73
79
|
* DescribeUDRedisSlowlog - 查询UDRedis慢日志
|
|
74
80
|
*
|
|
75
81
|
* See also: https://docs.ucloud.cn/api/umem-api/describe_ud_redis_slowlog
|
|
76
82
|
*/
|
|
77
83
|
describeUDRedisSlowlog(request?: DescribeUDRedisSlowlogRequest): Promise<DescribeUDRedisSlowlogResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* DescribeUMem - 获取UMem列表
|
|
86
|
+
*
|
|
87
|
+
* See also: https://docs.ucloud.cn/api/umem-api/describe_umem
|
|
88
|
+
*/
|
|
89
|
+
describeUMem(request?: DescribeUMemRequest): Promise<DescribeUMemResponse>;
|
|
78
90
|
/**
|
|
79
91
|
* DescribeUMemBackup - 查询分布式redis备份
|
|
80
92
|
*
|
|
@@ -189,6 +201,12 @@ export default class UMemClient extends Client {
|
|
|
189
201
|
* See also: https://docs.ucloud.cn/api/umem-api/get_umem_space_state
|
|
190
202
|
*/
|
|
191
203
|
getUMemSpaceState(request?: GetUMemSpaceStateRequest): Promise<GetUMemSpaceStateResponse>;
|
|
204
|
+
/**
|
|
205
|
+
* ISolationURedisGroup - 打开/关闭URedis
|
|
206
|
+
*
|
|
207
|
+
* See also: https://docs.ucloud.cn/api/umem-api/i_solation_uredis_group
|
|
208
|
+
*/
|
|
209
|
+
iSolationURedisGroup(request?: ISolationURedisGroupRequest): Promise<ISolationURedisGroupResponse>;
|
|
192
210
|
/**
|
|
193
211
|
* ModifyUMemSpaceName - 修改UMem内存空间名称
|
|
194
212
|
*
|
|
@@ -608,6 +626,45 @@ export interface DeleteURedisGroupRequest {
|
|
|
608
626
|
*/
|
|
609
627
|
export interface DeleteURedisGroupResponse {
|
|
610
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息
|
|
631
|
+
*/
|
|
632
|
+
export interface DescribeUDRedisProxyInfoRequest {
|
|
633
|
+
/**
|
|
634
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
635
|
+
*/
|
|
636
|
+
Zone: string;
|
|
637
|
+
/**
|
|
638
|
+
* udredis实例id
|
|
639
|
+
*/
|
|
640
|
+
SpaceId: string;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息
|
|
644
|
+
*/
|
|
645
|
+
export interface DescribeUDRedisProxyInfoResponse {
|
|
646
|
+
/**
|
|
647
|
+
* 代理数据集
|
|
648
|
+
*/
|
|
649
|
+
DataSet: {
|
|
650
|
+
/**
|
|
651
|
+
* 代理资源id
|
|
652
|
+
*/
|
|
653
|
+
ResourceId: string;
|
|
654
|
+
/**
|
|
655
|
+
* 代理id
|
|
656
|
+
*/
|
|
657
|
+
ProxyId: string;
|
|
658
|
+
/**
|
|
659
|
+
* 代理ip
|
|
660
|
+
*/
|
|
661
|
+
Vip: string;
|
|
662
|
+
/**
|
|
663
|
+
* 代理状态
|
|
664
|
+
*/
|
|
665
|
+
State: string;
|
|
666
|
+
}[];
|
|
667
|
+
}
|
|
611
668
|
/**
|
|
612
669
|
* DescribeUDRedisSlowlog - 查询UDRedis慢日志
|
|
613
670
|
*/
|
|
@@ -655,6 +712,251 @@ export interface DescribeUDRedisSlowlogResponse {
|
|
|
655
712
|
BlockId?: string;
|
|
656
713
|
}[];
|
|
657
714
|
}
|
|
715
|
+
/**
|
|
716
|
+
* DescribeUMem - 获取UMem列表
|
|
717
|
+
*/
|
|
718
|
+
export interface DescribeUMemRequest {
|
|
719
|
+
/**
|
|
720
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
721
|
+
*/
|
|
722
|
+
Zone?: string;
|
|
723
|
+
/**
|
|
724
|
+
* 协议类型: memcache, redis
|
|
725
|
+
*/
|
|
726
|
+
Protocol: string;
|
|
727
|
+
/**
|
|
728
|
+
* 分页显示的起始偏移, 默认值为0
|
|
729
|
+
*/
|
|
730
|
+
Offset?: number;
|
|
731
|
+
/**
|
|
732
|
+
* 分页显示的条目数, 默认值为20
|
|
733
|
+
*/
|
|
734
|
+
Limit?: number;
|
|
735
|
+
/**
|
|
736
|
+
* 资源ID
|
|
737
|
+
*/
|
|
738
|
+
ResourceId?: string;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* DescribeUMem - 获取UMem列表
|
|
742
|
+
*/
|
|
743
|
+
export interface DescribeUMemResponse {
|
|
744
|
+
/**
|
|
745
|
+
* 根据过滤条件得到的总数
|
|
746
|
+
*/
|
|
747
|
+
TotalCount?: number;
|
|
748
|
+
/**
|
|
749
|
+
* UMem实例列表, 详细参见UMemDataSet
|
|
750
|
+
*/
|
|
751
|
+
DataSet?: {
|
|
752
|
+
/**
|
|
753
|
+
* 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
|
|
754
|
+
*/
|
|
755
|
+
Zone?: string;
|
|
756
|
+
/**
|
|
757
|
+
* 是否拥有只读Slave“Yes” 包含“No” 不包含
|
|
758
|
+
*/
|
|
759
|
+
OwnSlave: string;
|
|
760
|
+
/**
|
|
761
|
+
* UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段
|
|
762
|
+
*/
|
|
763
|
+
DataSet?: {
|
|
764
|
+
/**
|
|
765
|
+
* 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
|
|
766
|
+
*/
|
|
767
|
+
Zone?: string;
|
|
768
|
+
/**
|
|
769
|
+
* 子网
|
|
770
|
+
*/
|
|
771
|
+
SubnetId: string;
|
|
772
|
+
/**
|
|
773
|
+
* vpc
|
|
774
|
+
*/
|
|
775
|
+
VPCId: string;
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
*/
|
|
779
|
+
VirtualIP: string;
|
|
780
|
+
/**
|
|
781
|
+
* 主备Redis返回运维时间 0//0点 1 //1点 以此类推
|
|
782
|
+
*/
|
|
783
|
+
RewriteTime?: number;
|
|
784
|
+
/**
|
|
785
|
+
* 主实例id
|
|
786
|
+
*/
|
|
787
|
+
MasterGroupId?: string;
|
|
788
|
+
/**
|
|
789
|
+
* 资源id
|
|
790
|
+
*/
|
|
791
|
+
GroupId?: string;
|
|
792
|
+
/**
|
|
793
|
+
* 端口
|
|
794
|
+
*/
|
|
795
|
+
Port?: number;
|
|
796
|
+
/**
|
|
797
|
+
* 实力大小
|
|
798
|
+
*/
|
|
799
|
+
MemorySize?: number;
|
|
800
|
+
/**
|
|
801
|
+
* 资源名称
|
|
802
|
+
*/
|
|
803
|
+
GroupName?: string;
|
|
804
|
+
/**
|
|
805
|
+
* 表示实例是主库还是从库,master,slave
|
|
806
|
+
*/
|
|
807
|
+
Role?: string;
|
|
808
|
+
/**
|
|
809
|
+
* 修改时间
|
|
810
|
+
*/
|
|
811
|
+
ModifyTime?: number;
|
|
812
|
+
/**
|
|
813
|
+
* 资源名称
|
|
814
|
+
*/
|
|
815
|
+
Name?: string;
|
|
816
|
+
/**
|
|
817
|
+
* 创建时间
|
|
818
|
+
*/
|
|
819
|
+
CreateTime?: number;
|
|
820
|
+
/**
|
|
821
|
+
* 到期时间
|
|
822
|
+
*/
|
|
823
|
+
ExpireTime?: number;
|
|
824
|
+
/**
|
|
825
|
+
* 容量单位GB
|
|
826
|
+
*/
|
|
827
|
+
Size?: number;
|
|
828
|
+
/**
|
|
829
|
+
* 使用量单位MB
|
|
830
|
+
*/
|
|
831
|
+
UsedSize?: number;
|
|
832
|
+
/**
|
|
833
|
+
* 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中SetPasswordFail //设置密码失败
|
|
834
|
+
*/
|
|
835
|
+
State?: string;
|
|
836
|
+
/**
|
|
837
|
+
* 计费模式,Year, Month, Dynamic, Trial
|
|
838
|
+
*/
|
|
839
|
+
ChargeType?: string;
|
|
840
|
+
/**
|
|
841
|
+
* 业务组名称
|
|
842
|
+
*/
|
|
843
|
+
Tag?: string;
|
|
844
|
+
/**
|
|
845
|
+
* distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版
|
|
846
|
+
*/
|
|
847
|
+
ResourceType?: string;
|
|
848
|
+
/**
|
|
849
|
+
* 节点的配置ID
|
|
850
|
+
*/
|
|
851
|
+
ConfigId?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Redis版本信息
|
|
854
|
+
*/
|
|
855
|
+
Version?: string;
|
|
856
|
+
}[];
|
|
857
|
+
/**
|
|
858
|
+
* 表示实例是主库还是从库,master,slave仅主备redis返回该项参数
|
|
859
|
+
*/
|
|
860
|
+
Role?: string;
|
|
861
|
+
/**
|
|
862
|
+
* 主备redis和分布式redis运维时间0 //0点1 //1点以此类推单机版memcache不返回该项
|
|
863
|
+
*/
|
|
864
|
+
RewriteTime?: number;
|
|
865
|
+
/**
|
|
866
|
+
* vpc
|
|
867
|
+
*/
|
|
868
|
+
VPCId?: string;
|
|
869
|
+
/**
|
|
870
|
+
* 子网
|
|
871
|
+
*/
|
|
872
|
+
SubnetId?: string;
|
|
873
|
+
/**
|
|
874
|
+
* 资源ID
|
|
875
|
+
*/
|
|
876
|
+
ResourceId?: string;
|
|
877
|
+
/**
|
|
878
|
+
* 资源名称
|
|
879
|
+
*/
|
|
880
|
+
Name?: string;
|
|
881
|
+
/**
|
|
882
|
+
* 创建时间
|
|
883
|
+
*/
|
|
884
|
+
CreateTime?: number;
|
|
885
|
+
/**
|
|
886
|
+
* 到期时间
|
|
887
|
+
*/
|
|
888
|
+
ExpireTime?: number;
|
|
889
|
+
/**
|
|
890
|
+
* 空间类型:single(无热备),double(热备)
|
|
891
|
+
*/
|
|
892
|
+
Type?: string;
|
|
893
|
+
/**
|
|
894
|
+
* 协议类型: memcache, redis
|
|
895
|
+
*/
|
|
896
|
+
Protocol?: string;
|
|
897
|
+
/**
|
|
898
|
+
* 容量单位GB
|
|
899
|
+
*/
|
|
900
|
+
Size?: number;
|
|
901
|
+
/**
|
|
902
|
+
* 使用量单位MB
|
|
903
|
+
*/
|
|
904
|
+
UsedSize?: number;
|
|
905
|
+
/**
|
|
906
|
+
* 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中SetPasswordFail //设置密码失败
|
|
907
|
+
*/
|
|
908
|
+
State?: string;
|
|
909
|
+
/**
|
|
910
|
+
* 计费模式,Year, Month, Dynamic, Trial
|
|
911
|
+
*/
|
|
912
|
+
ChargeType?: string;
|
|
913
|
+
/**
|
|
914
|
+
* IP端口信息请,参见UMemSpaceAddressSet
|
|
915
|
+
*/
|
|
916
|
+
Address?: {
|
|
917
|
+
/**
|
|
918
|
+
* UMem实例访问IP
|
|
919
|
+
*/
|
|
920
|
+
IP?: string;
|
|
921
|
+
/**
|
|
922
|
+
* UMem实例访问Port
|
|
923
|
+
*/
|
|
924
|
+
Port?: number;
|
|
925
|
+
}[];
|
|
926
|
+
/**
|
|
927
|
+
* 业务组名称
|
|
928
|
+
*/
|
|
929
|
+
Tag?: string;
|
|
930
|
+
/**
|
|
931
|
+
* distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版
|
|
932
|
+
*/
|
|
933
|
+
ResourceType?: string;
|
|
934
|
+
/**
|
|
935
|
+
* 节点的配置ID
|
|
936
|
+
*/
|
|
937
|
+
ConfigId?: string;
|
|
938
|
+
/**
|
|
939
|
+
* 是否需要自动备份,enable,disable
|
|
940
|
+
*/
|
|
941
|
+
AutoBackup?: string;
|
|
942
|
+
/**
|
|
943
|
+
* 自动备份开始时间,单位小时计,范围[0-23]
|
|
944
|
+
*/
|
|
945
|
+
BackupTime?: number;
|
|
946
|
+
/**
|
|
947
|
+
* 是否开启高可用,enable,disable
|
|
948
|
+
*/
|
|
949
|
+
HighAvailability?: string;
|
|
950
|
+
/**
|
|
951
|
+
* Redis版本信息
|
|
952
|
+
*/
|
|
953
|
+
Version?: string;
|
|
954
|
+
/**
|
|
955
|
+
* 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
|
|
956
|
+
*/
|
|
957
|
+
SlaveZone?: string;
|
|
958
|
+
}[];
|
|
959
|
+
}
|
|
658
960
|
/**
|
|
659
961
|
* DescribeUMemBackup - 查询分布式redis备份
|
|
660
962
|
*/
|
|
@@ -745,7 +1047,7 @@ export interface DescribeUMemBackupURLResponse {
|
|
|
745
1047
|
*/
|
|
746
1048
|
export interface DescribeUMemBlockInfoRequest {
|
|
747
1049
|
/**
|
|
748
|
-
* 可用区。参见 [可用区列表](
|
|
1050
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
749
1051
|
*/
|
|
750
1052
|
Zone: string;
|
|
751
1053
|
/**
|
|
@@ -773,10 +1075,6 @@ export interface DescribeUMemBlockInfoResponse {
|
|
|
773
1075
|
* 分片id
|
|
774
1076
|
*/
|
|
775
1077
|
BlockId: string;
|
|
776
|
-
/**
|
|
777
|
-
* 分片ip
|
|
778
|
-
*/
|
|
779
|
-
BlockVip: string;
|
|
780
1078
|
/**
|
|
781
1079
|
* 分片端口
|
|
782
1080
|
*/
|
|
@@ -785,10 +1083,6 @@ export interface DescribeUMemBlockInfoResponse {
|
|
|
785
1083
|
* 容量单位GB
|
|
786
1084
|
*/
|
|
787
1085
|
BlockSize: number;
|
|
788
|
-
/**
|
|
789
|
-
* 使用量单位MB
|
|
790
|
-
*/
|
|
791
|
-
BlockUsedSize: number;
|
|
792
1086
|
/**
|
|
793
1087
|
* 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败
|
|
794
1088
|
*/
|
|
@@ -801,6 +1095,14 @@ export interface DescribeUMemBlockInfoResponse {
|
|
|
801
1095
|
* 分片维护的键槽结束值
|
|
802
1096
|
*/
|
|
803
1097
|
BlockSlotEnd: number;
|
|
1098
|
+
/**
|
|
1099
|
+
* 分片ip
|
|
1100
|
+
*/
|
|
1101
|
+
BlockVip?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* 使用量单位MB
|
|
1104
|
+
*/
|
|
1105
|
+
BlockUsedSize?: number;
|
|
804
1106
|
}[];
|
|
805
1107
|
}
|
|
806
1108
|
/**
|
|
@@ -1702,6 +2004,32 @@ export interface GetUMemSpaceStateResponse {
|
|
|
1702
2004
|
*/
|
|
1703
2005
|
State?: string;
|
|
1704
2006
|
}
|
|
2007
|
+
/**
|
|
2008
|
+
* ISolationURedisGroup - 打开/关闭URedis
|
|
2009
|
+
*/
|
|
2010
|
+
export interface ISolationURedisGroupRequest {
|
|
2011
|
+
/**
|
|
2012
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
2013
|
+
*/
|
|
2014
|
+
Zone: string;
|
|
2015
|
+
/**
|
|
2016
|
+
* 组的ID
|
|
2017
|
+
*/
|
|
2018
|
+
GroupId: string;
|
|
2019
|
+
/**
|
|
2020
|
+
* UNBind(关闭)或Bind(打开)
|
|
2021
|
+
*/
|
|
2022
|
+
TransformType: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同)
|
|
2025
|
+
*/
|
|
2026
|
+
SlaveZone?: string;
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* ISolationURedisGroup - 打开/关闭URedis
|
|
2030
|
+
*/
|
|
2031
|
+
export interface ISolationURedisGroupResponse {
|
|
2032
|
+
}
|
|
1705
2033
|
/**
|
|
1706
2034
|
* ModifyUMemSpaceName - 修改UMem内存空间名称
|
|
1707
2035
|
*/
|
|
@@ -102,6 +102,15 @@ class UMemClient extends client_1.default {
|
|
|
102
102
|
const args = Object.assign({ Action: 'DeleteURedisGroup' }, (request || {}));
|
|
103
103
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/umem-api/describe_ud_redis_proxy_info
|
|
109
|
+
*/
|
|
110
|
+
describeUDRedisProxyInfo(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'DescribeUDRedisProxyInfo' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
105
114
|
/**
|
|
106
115
|
* DescribeUDRedisSlowlog - 查询UDRedis慢日志
|
|
107
116
|
*
|
|
@@ -111,6 +120,15 @@ class UMemClient extends client_1.default {
|
|
|
111
120
|
const args = Object.assign({ Action: 'DescribeUDRedisSlowlog' }, (request || {}));
|
|
112
121
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* DescribeUMem - 获取UMem列表
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/umem-api/describe_umem
|
|
127
|
+
*/
|
|
128
|
+
describeUMem(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'DescribeUMem' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
114
132
|
/**
|
|
115
133
|
* DescribeUMemBackup - 查询分布式redis备份
|
|
116
134
|
*
|
|
@@ -282,6 +300,15 @@ class UMemClient extends client_1.default {
|
|
|
282
300
|
const args = Object.assign({ Action: 'GetUMemSpaceState' }, (request || {}));
|
|
283
301
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
284
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* ISolationURedisGroup - 打开/关闭URedis
|
|
305
|
+
*
|
|
306
|
+
* See also: https://docs.ucloud.cn/api/umem-api/i_solation_uredis_group
|
|
307
|
+
*/
|
|
308
|
+
iSolationURedisGroup(request) {
|
|
309
|
+
const args = Object.assign({ Action: 'ISolationURedisGroup' }, (request || {}));
|
|
310
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
311
|
+
}
|
|
285
312
|
/**
|
|
286
313
|
* ModifyUMemSpaceName - 修改UMem内存空间名称
|
|
287
314
|
*
|