@ucloud-sdks/ucloud-sdk-js 0.0.5 → 0.1.0
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 +1 -0
- package/lib/services/index.js +7 -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 +18 -99
- 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/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 +1 -1
|
@@ -93,12 +93,30 @@ export default class UNetClient extends Client {
|
|
|
93
93
|
* See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth
|
|
94
94
|
*/
|
|
95
95
|
describeShareBandwidth(request?: DescribeShareBandwidthRequest): Promise<DescribeShareBandwidthResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* DescribeShareBandwidthPrice - 获取共享带宽价格
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_price
|
|
100
|
+
*/
|
|
101
|
+
describeShareBandwidthPrice(request?: DescribeShareBandwidthPriceRequest): Promise<DescribeShareBandwidthPriceResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格
|
|
104
|
+
*
|
|
105
|
+
* See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_update_price
|
|
106
|
+
*/
|
|
107
|
+
describeShareBandwidthUpdatePrice(request?: DescribeShareBandwidthUpdatePriceRequest): Promise<DescribeShareBandwidthUpdatePriceResponse>;
|
|
96
108
|
/**
|
|
97
109
|
* DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽
|
|
98
110
|
*
|
|
99
111
|
* See also: https://docs.ucloud.cn/api/unet-api/disassociate_eip_with_share_bandwidth
|
|
100
112
|
*/
|
|
101
113
|
disassociateEIPWithShareBandwidth(request?: DisassociateEIPWithShareBandwidthRequest): Promise<DisassociateEIPWithShareBandwidthResponse>;
|
|
114
|
+
/**
|
|
115
|
+
* DisassociateFirewall - 解绑资源上的防火墙
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/unet-api/disassociate_firewall
|
|
118
|
+
*/
|
|
119
|
+
disassociateFirewall(request?: DisassociateFirewallRequest): Promise<DisassociateFirewallResponse>;
|
|
102
120
|
/**
|
|
103
121
|
* GetEIPPayMode - 获取弹性IP计费模式
|
|
104
122
|
*
|
|
@@ -117,6 +135,12 @@ export default class UNetClient extends Client {
|
|
|
117
135
|
* See also: https://docs.ucloud.cn/api/unet-api/get_eip_upgrade_price
|
|
118
136
|
*/
|
|
119
137
|
getEIPUpgradePrice(request?: GetEIPUpgradePriceRequest): Promise<GetEIPUpgradePriceResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息
|
|
140
|
+
*
|
|
141
|
+
* See also: https://docs.ucloud.cn/api/unet-api/get_throughput_daily_billing_info
|
|
142
|
+
*/
|
|
143
|
+
getThroughputDailyBillingInfo(request?: GetThroughputDailyBillingInfoRequest): Promise<GetThroughputDailyBillingInfoResponse>;
|
|
120
144
|
/**
|
|
121
145
|
* GrantFirewall - 将防火墙应用到资源上
|
|
122
146
|
*
|
|
@@ -189,7 +213,7 @@ export default class UNetClient extends Client {
|
|
|
189
213
|
*/
|
|
190
214
|
export interface AllocateEIPRequest {
|
|
191
215
|
/**
|
|
192
|
-
* 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp。使用BGP
|
|
216
|
+
* 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp;精品BGP:BGPPro。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。使用BGPPro线路的地域:香港
|
|
193
217
|
*/
|
|
194
218
|
OperatorName: string;
|
|
195
219
|
/**
|
|
@@ -201,7 +225,7 @@ export interface AllocateEIPRequest {
|
|
|
201
225
|
*/
|
|
202
226
|
Tag?: string;
|
|
203
227
|
/**
|
|
204
|
-
* 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic,
|
|
228
|
+
* 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费,默认为按月付费。
|
|
205
229
|
*/
|
|
206
230
|
ChargeType?: string;
|
|
207
231
|
/**
|
|
@@ -220,6 +244,10 @@ export interface AllocateEIPRequest {
|
|
|
220
244
|
* 弹性IP的名称, 默认为 "EIP"
|
|
221
245
|
*/
|
|
222
246
|
Name?: string;
|
|
247
|
+
/**
|
|
248
|
+
* 购买EIP数量,默认值为1
|
|
249
|
+
*/
|
|
250
|
+
Count?: number;
|
|
223
251
|
/**
|
|
224
252
|
* 弹性IP的备注, 默认为空
|
|
225
253
|
*/
|
|
@@ -696,7 +724,7 @@ export interface DescribeFirewallRequest {
|
|
|
696
724
|
*/
|
|
697
725
|
FWId?: string;
|
|
698
726
|
/**
|
|
699
|
-
* 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost"
|
|
727
|
+
* 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机;“uni”,虚拟网卡; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.
|
|
700
728
|
*/
|
|
701
729
|
ResourceType?: string;
|
|
702
730
|
/**
|
|
@@ -782,6 +810,10 @@ export interface DescribeFirewallResponse {
|
|
|
782
810
|
Remark?: string;
|
|
783
811
|
}[];
|
|
784
812
|
}[];
|
|
813
|
+
/**
|
|
814
|
+
* 防火墙资源数量
|
|
815
|
+
*/
|
|
816
|
+
TotalCount?: number;
|
|
785
817
|
}
|
|
786
818
|
/**
|
|
787
819
|
* DescribeFirewallResource - 获取防火墙组所绑定资源的外网IP
|
|
@@ -792,7 +824,7 @@ export interface DescribeFirewallResourceRequest {
|
|
|
792
824
|
*/
|
|
793
825
|
FWId: string;
|
|
794
826
|
/**
|
|
795
|
-
* 返回数据长度,默认为20,最大
|
|
827
|
+
* 返回数据长度,默认为20,最大1000
|
|
796
828
|
*/
|
|
797
829
|
Limit?: number;
|
|
798
830
|
/**
|
|
@@ -812,6 +844,18 @@ export interface DescribeFirewallResourceResponse {
|
|
|
812
844
|
* 可用区
|
|
813
845
|
*/
|
|
814
846
|
Zone?: number;
|
|
847
|
+
/**
|
|
848
|
+
* 资源绑定的虚拟网卡的名称
|
|
849
|
+
*/
|
|
850
|
+
SubResourceName: string;
|
|
851
|
+
/**
|
|
852
|
+
* 资源绑定的虚拟网卡的ID
|
|
853
|
+
*/
|
|
854
|
+
SubResourceId: string;
|
|
855
|
+
/**
|
|
856
|
+
* 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。
|
|
857
|
+
*/
|
|
858
|
+
SubResourceType: string;
|
|
815
859
|
/**
|
|
816
860
|
* 名称
|
|
817
861
|
*/
|
|
@@ -829,7 +873,7 @@ export interface DescribeFirewallResourceResponse {
|
|
|
829
873
|
*/
|
|
830
874
|
ResourceID?: string;
|
|
831
875
|
/**
|
|
832
|
-
* 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit"
|
|
876
|
+
* 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。
|
|
833
877
|
*/
|
|
834
878
|
ResourceType?: string;
|
|
835
879
|
/**
|
|
@@ -923,6 +967,58 @@ export interface DescribeShareBandwidthResponse {
|
|
|
923
967
|
*/
|
|
924
968
|
TotalCount?: number;
|
|
925
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* DescribeShareBandwidthPrice - 获取共享带宽价格
|
|
972
|
+
*/
|
|
973
|
+
export interface DescribeShareBandwidthPriceRequest {
|
|
974
|
+
/**
|
|
975
|
+
* 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;
|
|
976
|
+
*/
|
|
977
|
+
ChargeType: string;
|
|
978
|
+
/**
|
|
979
|
+
* 共享带宽值
|
|
980
|
+
*/
|
|
981
|
+
ShareBandwidth: number;
|
|
982
|
+
/**
|
|
983
|
+
* 购买数量
|
|
984
|
+
*/
|
|
985
|
+
Quantity?: number;
|
|
986
|
+
/**
|
|
987
|
+
* 香港地域支持:BGPPro和International。其他地域无需填写该字段
|
|
988
|
+
*/
|
|
989
|
+
OperatorName?: string;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* DescribeShareBandwidthPrice - 获取共享带宽价格
|
|
993
|
+
*/
|
|
994
|
+
export interface DescribeShareBandwidthPriceResponse {
|
|
995
|
+
/**
|
|
996
|
+
* 共享带宽总价格
|
|
997
|
+
*/
|
|
998
|
+
TotalPrice?: number;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格
|
|
1002
|
+
*/
|
|
1003
|
+
export interface DescribeShareBandwidthUpdatePriceRequest {
|
|
1004
|
+
/**
|
|
1005
|
+
* 共享带宽Id
|
|
1006
|
+
*/
|
|
1007
|
+
ShareBandwidthId: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* 共享带宽值
|
|
1010
|
+
*/
|
|
1011
|
+
ShareBandwidth: number;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格
|
|
1015
|
+
*/
|
|
1016
|
+
export interface DescribeShareBandwidthUpdatePriceResponse {
|
|
1017
|
+
/**
|
|
1018
|
+
* 共享带宽升降级价格
|
|
1019
|
+
*/
|
|
1020
|
+
Price: number;
|
|
1021
|
+
}
|
|
926
1022
|
/**
|
|
927
1023
|
* DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽
|
|
928
1024
|
*/
|
|
@@ -953,6 +1049,28 @@ export interface DisassociateEIPWithShareBandwidthRequest {
|
|
|
953
1049
|
*/
|
|
954
1050
|
export interface DisassociateEIPWithShareBandwidthResponse {
|
|
955
1051
|
}
|
|
1052
|
+
/**
|
|
1053
|
+
* DisassociateFirewall - 解绑资源上的防火墙
|
|
1054
|
+
*/
|
|
1055
|
+
export interface DisassociateFirewallRequest {
|
|
1056
|
+
/**
|
|
1057
|
+
* 防火墙ID
|
|
1058
|
+
*/
|
|
1059
|
+
FWId: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* 需要解绑的资源ID
|
|
1062
|
+
*/
|
|
1063
|
+
ResourceId: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* 资源类型:ULB 表示负载均衡
|
|
1066
|
+
*/
|
|
1067
|
+
ResourceType: string;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* DisassociateFirewall - 解绑资源上的防火墙
|
|
1071
|
+
*/
|
|
1072
|
+
export interface DisassociateFirewallResponse {
|
|
1073
|
+
}
|
|
956
1074
|
/**
|
|
957
1075
|
* GetEIPPayMode - 获取弹性IP计费模式
|
|
958
1076
|
*/
|
|
@@ -1053,6 +1171,57 @@ export interface GetEIPUpgradePriceResponse {
|
|
|
1053
1171
|
*/
|
|
1054
1172
|
Price?: number;
|
|
1055
1173
|
}
|
|
1174
|
+
/**
|
|
1175
|
+
* GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息
|
|
1176
|
+
*/
|
|
1177
|
+
export interface GetThroughputDailyBillingInfoRequest {
|
|
1178
|
+
/**
|
|
1179
|
+
* EIP的资源ID
|
|
1180
|
+
*/
|
|
1181
|
+
EIPId: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* 查询开始时间时间戳
|
|
1184
|
+
*/
|
|
1185
|
+
StartTime: number;
|
|
1186
|
+
/**
|
|
1187
|
+
* 查询结束时间时间戳
|
|
1188
|
+
*/
|
|
1189
|
+
EndTime: number;
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息
|
|
1193
|
+
*/
|
|
1194
|
+
export interface GetThroughputDailyBillingInfoResponse {
|
|
1195
|
+
/**
|
|
1196
|
+
* EIP流量计费信息,详见模型ThroughputDailyBillingInfo
|
|
1197
|
+
*/
|
|
1198
|
+
Stats?: {
|
|
1199
|
+
/**
|
|
1200
|
+
* 计费开始时间
|
|
1201
|
+
*/
|
|
1202
|
+
StartTime?: number;
|
|
1203
|
+
/**
|
|
1204
|
+
* 计费结束时间
|
|
1205
|
+
*/
|
|
1206
|
+
EndTime?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* 计费流量,单位“GB”
|
|
1209
|
+
*/
|
|
1210
|
+
QuantityOut?: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* 是否已计费,“Yes”或者“No”
|
|
1213
|
+
*/
|
|
1214
|
+
BillingState?: string;
|
|
1215
|
+
}[];
|
|
1216
|
+
/**
|
|
1217
|
+
* 计费总流量
|
|
1218
|
+
*/
|
|
1219
|
+
TotalOut?: number;
|
|
1220
|
+
/**
|
|
1221
|
+
* 资源ID
|
|
1222
|
+
*/
|
|
1223
|
+
EIPId?: string;
|
|
1224
|
+
}
|
|
1056
1225
|
/**
|
|
1057
1226
|
* GrantFirewall - 将防火墙应用到资源上
|
|
1058
1227
|
*/
|
|
@@ -1062,7 +1231,7 @@ export interface GrantFirewallRequest {
|
|
|
1062
1231
|
*/
|
|
1063
1232
|
FWId: string;
|
|
1064
1233
|
/**
|
|
1065
|
-
* 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit"
|
|
1234
|
+
* 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,”uni“,虚拟网卡,“cube”,Cube容器实例。
|
|
1066
1235
|
*/
|
|
1067
1236
|
ResourceType: string;
|
|
1068
1237
|
/**
|
|
@@ -138,6 +138,24 @@ class UNetClient extends client_1.default {
|
|
|
138
138
|
const args = Object.assign({ Action: 'DescribeShareBandwidth' }, (request || {}));
|
|
139
139
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* DescribeShareBandwidthPrice - 获取共享带宽价格
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_price
|
|
145
|
+
*/
|
|
146
|
+
describeShareBandwidthPrice(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'DescribeShareBandwidthPrice' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_update_price
|
|
154
|
+
*/
|
|
155
|
+
describeShareBandwidthUpdatePrice(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'DescribeShareBandwidthUpdatePrice' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
141
159
|
/**
|
|
142
160
|
* DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽
|
|
143
161
|
*
|
|
@@ -147,6 +165,15 @@ class UNetClient extends client_1.default {
|
|
|
147
165
|
const args = Object.assign({ Action: 'DisassociateEIPWithShareBandwidth' }, (request || {}));
|
|
148
166
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* DisassociateFirewall - 解绑资源上的防火墙
|
|
170
|
+
*
|
|
171
|
+
* See also: https://docs.ucloud.cn/api/unet-api/disassociate_firewall
|
|
172
|
+
*/
|
|
173
|
+
disassociateFirewall(request) {
|
|
174
|
+
const args = Object.assign({ Action: 'DisassociateFirewall' }, (request || {}));
|
|
175
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
|
+
}
|
|
150
177
|
/**
|
|
151
178
|
* GetEIPPayMode - 获取弹性IP计费模式
|
|
152
179
|
*
|
|
@@ -174,6 +201,15 @@ class UNetClient extends client_1.default {
|
|
|
174
201
|
const args = Object.assign({ Action: 'GetEIPUpgradePrice' }, (request || {}));
|
|
175
202
|
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
176
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息
|
|
206
|
+
*
|
|
207
|
+
* See also: https://docs.ucloud.cn/api/unet-api/get_throughput_daily_billing_info
|
|
208
|
+
*/
|
|
209
|
+
getThroughputDailyBillingInfo(request) {
|
|
210
|
+
const args = Object.assign({ Action: 'GetThroughputDailyBillingInfo' }, (request || {}));
|
|
211
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
212
|
+
}
|
|
177
213
|
/**
|
|
178
214
|
* GrantFirewall - 将防火墙应用到资源上
|
|
179
215
|
*
|