ksyun-sdk-node 1.0.5 → 1.2.4

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.
Files changed (99) hide show
  1. package/dist/base/BaseClient.js +90 -55
  2. package/dist/index.js +9 -12
  3. package/dist/lib/fetch.js +4 -5
  4. package/dist/lib/sign.js +31 -33
  5. package/dist/lib/signautreV4.js +167 -0
  6. package/dist/service/Actiontrail/v20190401/index.js +4 -7
  7. package/dist/service/Bill/v20180601/index.js +11 -50
  8. package/dist/service/Bill/v20220601/index.js +64 -0
  9. package/dist/service/Bill_union/v20200101/index.js +48 -10
  10. package/dist/service/Bill_union/v20221222/index.js +142 -0
  11. package/dist/service/Bws/v20160304/index.js +23 -6
  12. package/dist/service/Cdn/v20160901/index.js +42 -0
  13. package/dist/service/Cdn/v20200630/index.js +410 -0
  14. package/dist/service/Cdn/v20200901/index.js +162 -0
  15. package/dist/service/Cen/v20160304/index.js +460 -0
  16. package/dist/service/Clickhouse/v20210101/index.js +546 -0
  17. package/dist/service/Ebs/v20160304/index.js +3 -6
  18. package/dist/service/Eip/v20160304/index.js +3 -6
  19. package/dist/service/Epc/v20151101/index.js +36 -60
  20. package/dist/service/Iam/v20151101/index.js +61 -7
  21. package/dist/service/Kad/v20161122/index.js +3 -6
  22. package/dist/service/Kce/v20180314/index.js +320 -0
  23. package/dist/service/Kce/v20190806/index.js +482 -0
  24. package/dist/service/Kce/v20201231/index.js +63 -0
  25. package/dist/service/Kcf/v20211215/index.js +203 -0
  26. package/dist/service/Kcm/v20160304/index.js +120 -0
  27. package/dist/service/Kcrs/v20211109/index.js +851 -0
  28. package/dist/service/Kcs/v20160701/index.js +1106 -0
  29. package/dist/service/Kcs/v20170401/index.js +81 -0
  30. package/dist/service/Kead/v20200101/index.js +3 -6
  31. package/dist/service/Kec/v20160304/index.js +107 -42
  32. package/dist/service/Ket/v20170101/index.js +141 -0
  33. package/dist/service/Kkms/v20160304/index.js +167 -0
  34. package/dist/service/Klog/v20200731/index.js +804 -0
  35. package/dist/service/Kls/v20170101/index.js +194 -0
  36. package/dist/service/Krds/v20160701/index.js +1302 -0
  37. package/dist/service/Krds/v20200825/index.js +174 -0
  38. package/dist/service/Memcached/v20180627/index.js +249 -0
  39. package/dist/service/Mongodb/v20170101/index.js +22 -7
  40. package/dist/service/Monitor/v20100525/index.js +70 -0
  41. package/dist/service/Monitor/v20181114/index.js +49 -0
  42. package/dist/service/Monitor/v20210101/index.js +179 -0
  43. package/dist/service/Monitor/v20220101/index.js +68 -0
  44. package/dist/service/Rabbitmq/v20191017/index.js +242 -0
  45. package/dist/service/Resourcemanager/v20210320/index.js +3 -6
  46. package/dist/service/Sks/v20151101/index.js +3 -6
  47. package/dist/service/Slb/v20160304/index.js +517 -8
  48. package/dist/service/Sts/v20151101/index.js +4 -7
  49. package/dist/service/Tagv2/v20200901/index.js +174 -0
  50. package/dist/service/Tidb/v20210520/index.js +363 -0
  51. package/dist/service/Trade/v20200114/index.js +3 -6
  52. package/dist/service/Trade/v20200831/index.js +3 -6
  53. package/dist/service/Vpc/v20160304/index.js +239 -7
  54. package/dist/service/Waf/v20200707/index.js +248 -0
  55. package/package.json +1 -1
  56. package/src/base/BaseClient.js +85 -36
  57. package/src/lib/signautreV4.js +166 -0
  58. package/src/service/Actiontrail/v20190401/index.js +1 -1
  59. package/src/service/Bill/v20180601/index.js +6 -46
  60. package/src/service/Bill/v20220601/index.js +56 -0
  61. package/src/service/Bill_union/v20200101/index.js +37 -0
  62. package/src/service/Bill_union/v20221222/index.js +134 -0
  63. package/src/service/Bws/v20160304/index.js +20 -0
  64. package/src/service/{Bill_union/v20211209 → Cdn/v20160901}/index.js +6 -6
  65. package/src/service/Cdn/v20200630/index.js +402 -0
  66. package/src/service/Cdn/v20200901/index.js +154 -0
  67. package/src/service/Cen/v20160304/index.js +452 -0
  68. package/src/service/Clickhouse/v20210101/index.js +538 -0
  69. package/src/service/Ebs/v20160304/index.js +1 -4
  70. package/src/service/Epc/v20151101/index.js +26 -50
  71. package/src/service/Iam/v20151101/index.js +57 -0
  72. package/src/service/Kce/v20180314/index.js +312 -0
  73. package/src/service/Kce/v20190806/index.js +474 -0
  74. package/src/service/Kce/v20201231/index.js +55 -0
  75. package/src/service/Kcf/v20211215/index.js +197 -0
  76. package/src/service/Kcm/v20160304/index.js +112 -0
  77. package/src/service/Kcrs/v20211109/index.js +857 -0
  78. package/src/service/Kcs/v20160701/index.js +1101 -0
  79. package/src/service/Kcs/v20170401/index.js +73 -0
  80. package/src/service/Kec/v20160304/index.js +86 -22
  81. package/src/service/Ket/v20170101/index.js +133 -0
  82. package/src/service/Kkms/v20160304/index.js +159 -0
  83. package/src/service/Klog/v20200731/index.js +810 -0
  84. package/src/service/Kls/v20170101/index.js +186 -0
  85. package/src/service/Krds/v20160701/index.js +1296 -0
  86. package/src/service/Krds/v20200825/index.js +166 -0
  87. package/src/service/Memcached/v20180627/index.js +248 -0
  88. package/src/service/Mongodb/v20170101/index.js +18 -0
  89. package/src/service/Monitor/v20100525/index.js +62 -0
  90. package/src/service/{Slb/v20171210 → Monitor/v20181114}/index.js +13 -11
  91. package/src/service/Monitor/v20210101/index.js +172 -0
  92. package/src/service/Monitor/v20220101/index.js +60 -0
  93. package/src/service/Rabbitmq/v20191017/index.js +234 -0
  94. package/src/service/Slb/v20160304/index.js +512 -0
  95. package/src/service/Sts/v20151101/index.js +1 -1
  96. package/src/service/Tagv2/v20200901/index.js +166 -0
  97. package/src/service/Tidb/v20210520/index.js +355 -0
  98. package/src/service/Vpc/v20160304/index.js +235 -0
  99. package/src/service/Waf/v20200707/index.js +240 -0
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
6
  const BaseClient = require("../../../base/BaseClient.js");
6
-
7
7
  module.exports = class Client extends BaseClient {
8
8
  constructor(...args) {
9
9
  super(...args);
10
-
11
10
  _defineProperty(this, "_baseConfig", {
12
11
  'protocol': 'http://',
13
12
  'endpoint': 'bill.api.ksyun.com',
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
23
22
  }
24
23
  }
25
24
  });
26
-
27
25
  _defineProperty(this, "_apiList", {
28
26
  'GetMonthBill': {
29
27
  'url': '/',
@@ -38,7 +36,8 @@ module.exports = class Client extends BaseClient {
38
36
  }
39
37
  },
40
38
  'paramsType': {
41
- 'Action': 'String'
39
+ 'BillStartMonth': 'String',
40
+ 'BillEndMonth': 'String'
42
41
  }
43
42
  },
44
43
  'GetPostpayDetailBill': {
@@ -53,21 +52,12 @@ module.exports = class Client extends BaseClient {
53
52
  'Content-Type': 'application/json'
54
53
  }
55
54
  },
56
- 'paramsType': {}
57
- },
58
- 'GetPostpayDetailBillCSV': {
59
- 'url': '/',
60
- 'method': 'GET',
61
- 'config': {
62
- 'query': {
63
- 'Version': '2018-06-01',
64
- 'Action': 'GetPostpayDetailBillCSV'
65
- },
66
- 'headers': {
67
- 'Content-Type': 'application/json'
68
- }
69
- },
70
- 'paramsType': {}
55
+ 'paramsType': {
56
+ 'BillStartMonth': 'String',
57
+ 'BillEndMonth': 'String',
58
+ 'ProductCode': 'String',
59
+ 'ProjectId': 'String'
60
+ }
71
61
  },
72
62
  'GetProductCode': {
73
63
  'url': '/',
@@ -82,36 +72,7 @@ module.exports = class Client extends BaseClient {
82
72
  }
83
73
  },
84
74
  'paramsType': {}
85
- },
86
- 'getMonthConsume': {
87
- 'url': '/',
88
- 'method': 'GET',
89
- 'config': {
90
- 'query': {
91
- 'Version': '2018-06-01',
92
- 'Action': 'getMonthConsume'
93
- },
94
- 'headers': {
95
- 'Content-Type': 'application/json'
96
- }
97
- },
98
- 'paramsType': {}
99
- },
100
- 'getPostpayDetailConsume': {
101
- 'url': '/',
102
- 'method': 'GET',
103
- 'config': {
104
- 'query': {
105
- 'Version': '2018-06-01',
106
- 'Action': 'getPostpayDetailConsume'
107
- },
108
- 'headers': {
109
- 'Content-Type': 'application/json'
110
- }
111
- },
112
- 'paramsType': {}
113
75
  }
114
76
  });
115
77
  }
116
-
117
78
  };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ const BaseClient = require("../../../base/BaseClient.js");
7
+ module.exports = class Client extends BaseClient {
8
+ constructor(...args) {
9
+ super(...args);
10
+ _defineProperty(this, "_baseConfig", {
11
+ 'protocol': 'http://',
12
+ 'endpoint': 'bill.api.ksyun.com',
13
+ 'config': {
14
+ 'timeout': 60,
15
+ //设置timeout
16
+ 'headers': {
17
+ 'Accept': 'application/json'
18
+ },
19
+ 'credentials': {
20
+ 'region': 'cn-shanghai-3',
21
+ 'service': 'bill'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'GetMonthConsume': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2022-06-01',
32
+ 'Action': 'GetMonthConsume'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'BillMonth': 'String'
40
+ }
41
+ },
42
+ 'GetPostpayDetailConsume': {
43
+ 'url': '/',
44
+ 'method': 'GET',
45
+ 'config': {
46
+ 'query': {
47
+ 'Version': '2022-06-01',
48
+ 'Action': 'GetPostpayDetailConsume'
49
+ },
50
+ 'headers': {
51
+ 'Content-Type': 'application/json'
52
+ }
53
+ },
54
+ 'paramsType': {
55
+ 'BillMonth': 'String',
56
+ 'ProductCode': 'String',
57
+ 'ProjectId': 'String',
58
+ 'PageNo': 'Int',
59
+ 'PageSize': 'Int'
60
+ }
61
+ }
62
+ });
63
+ }
64
+ };
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
6
  const BaseClient = require("../../../base/BaseClient.js");
6
-
7
7
  module.exports = class Client extends BaseClient {
8
8
  constructor(...args) {
9
9
  super(...args);
10
-
11
10
  _defineProperty(this, "_baseConfig", {
12
11
  'protocol': 'http://',
13
12
  'endpoint': 'bill-union.api.ksyun.com',
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
23
22
  }
24
23
  }
25
24
  });
26
-
27
25
  _defineProperty(this, "_apiList", {
28
26
  'DescribeBillSummaryByPayMode': {
29
27
  'url': '/',
@@ -37,7 +35,10 @@ module.exports = class Client extends BaseClient {
37
35
  'Content-Type': 'application/json'
38
36
  }
39
37
  },
40
- 'paramsType': {}
38
+ 'paramsType': {
39
+ 'BillBeginMonth': 'String',
40
+ 'BillEndMonth': 'String'
41
+ }
41
42
  },
42
43
  'DescribeBillSummaryByProduct': {
43
44
  'url': '/',
@@ -51,7 +52,10 @@ module.exports = class Client extends BaseClient {
51
52
  'Content-Type': 'application/json'
52
53
  }
53
54
  },
54
- 'paramsType': {}
55
+ 'paramsType': {
56
+ 'BillBeginMonth': 'String',
57
+ 'BillEndMonth': 'String'
58
+ }
55
59
  },
56
60
  'DescribeBillSummaryByProject': {
57
61
  'url': '/',
@@ -82,7 +86,12 @@ module.exports = class Client extends BaseClient {
82
86
  'Content-Type': 'application/json'
83
87
  }
84
88
  },
85
- 'paramsType': {}
89
+ 'paramsType': {
90
+ 'BillMonth': 'String',
91
+ 'ProductCode': 'String',
92
+ 'Page': 'Int',
93
+ 'Size': 'Int'
94
+ }
86
95
  },
87
96
  'DescribeProductCode': {
88
97
  'url': '/',
@@ -110,9 +119,38 @@ module.exports = class Client extends BaseClient {
110
119
  'Content-Type': 'application/json'
111
120
  }
112
121
  },
113
- 'paramsType': {}
122
+ 'paramsType': {
123
+ 'CustomerBillMonth': 'Int',
124
+ 'ProductGroupCode': 'String',
125
+ 'StatisticType': 'Int',
126
+ 'PayType': 'Int',
127
+ 'SubAccountId': 'Int',
128
+ 'Page': 'Int',
129
+ 'Size': 'String'
130
+ }
131
+ },
132
+ 'DescribeSplitItemDayBillDetails': {
133
+ 'url': '/',
134
+ 'method': 'GET',
135
+ 'config': {
136
+ 'query': {
137
+ 'Version': '2020-01-01',
138
+ 'Action': 'DescribeSplitItemDayBillDetails'
139
+ },
140
+ 'headers': {
141
+ 'Content-Type': 'application/json'
142
+ }
143
+ },
144
+ 'paramsType': {
145
+ 'CustomerBillMonth': 'Int',
146
+ 'ProductGroupCode': 'String',
147
+ 'StatisticType': 'Int',
148
+ 'PayType': 'Int',
149
+ 'SubAccountId': 'Int',
150
+ 'Page': 'Int',
151
+ 'Size': 'Int'
152
+ }
114
153
  }
115
154
  });
116
155
  }
117
-
118
156
  };
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ const BaseClient = require("../../../base/BaseClient.js");
7
+ module.exports = class Client extends BaseClient {
8
+ constructor(...args) {
9
+ super(...args);
10
+ _defineProperty(this, "_baseConfig", {
11
+ 'protocol': 'http://',
12
+ 'endpoint': 'bill-union.api.ksyun.com',
13
+ 'config': {
14
+ 'timeout': 60,
15
+ //设置timeout
16
+ 'headers': {
17
+ 'Accept': 'application/json'
18
+ },
19
+ 'credentials': {
20
+ 'region': 'cn-shanghai-3',
21
+ 'service': 'bill-union'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'QueryInstanceConsume': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2022-12-22',
32
+ 'Action': 'QueryInstanceConsume'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ },
38
+ 'paramsType': {
39
+ 'StartDay': 'String',
40
+ 'EndDay': 'String',
41
+ 'ProductCode': 'String',
42
+ 'Page': 'Int',
43
+ 'Size': 'Int'
44
+ }
45
+ },
46
+ 'QueryProjectConsume': {
47
+ 'url': '/',
48
+ 'method': 'GET',
49
+ 'config': {
50
+ 'query': {
51
+ 'Version': '2022-12-22',
52
+ 'Action': 'QueryProjectConsume'
53
+ },
54
+ 'headers': {
55
+ 'Content-Type': 'application/json'
56
+ }
57
+ },
58
+ 'paramsType': {
59
+ 'StartDay': 'String',
60
+ 'EndDay': 'String',
61
+ 'Page': 'Int',
62
+ 'Size': 'Int'
63
+ }
64
+ },
65
+ 'QueryProductConsume': {
66
+ 'url': '/',
67
+ 'method': 'GET',
68
+ 'config': {
69
+ 'query': {
70
+ 'Version': '2022-12-22',
71
+ 'Action': 'QueryProductConsume'
72
+ },
73
+ 'headers': {
74
+ 'Content-Type': 'application/json'
75
+ }
76
+ },
77
+ 'paramsType': {
78
+ 'StartDay': 'String',
79
+ 'EndDay': 'String',
80
+ 'Page': 'Int',
81
+ 'Size': 'Int'
82
+ }
83
+ },
84
+ 'QueryFinanceUnitConsume': {
85
+ 'url': '/',
86
+ 'method': 'GET',
87
+ 'config': {
88
+ 'query': {
89
+ 'Version': '2022-12-22',
90
+ 'Action': 'QueryFinanceUnitConsume'
91
+ },
92
+ 'headers': {
93
+ 'Content-Type': 'application/json'
94
+ }
95
+ },
96
+ 'paramsType': {
97
+ 'StartDay': 'String',
98
+ 'EndDay': 'String',
99
+ 'Page': 'Int',
100
+ 'Size': 'Int'
101
+ }
102
+ },
103
+ 'QueryFinanceUnitConsumeOfMonth': {
104
+ 'url': '/',
105
+ 'method': 'GET',
106
+ 'config': {
107
+ 'query': {
108
+ 'Version': '2022-12-22',
109
+ 'Action': 'QueryFinanceUnitConsumeOfMonth'
110
+ },
111
+ 'headers': {
112
+ 'Content-Type': 'application/json'
113
+ }
114
+ },
115
+ 'paramsType': {
116
+ 'CustomerBillMonth': 'String',
117
+ 'Page': 'Int',
118
+ 'Size': 'Int'
119
+ }
120
+ },
121
+ 'QueryUserConsume': {
122
+ 'url': '/',
123
+ 'method': 'GET',
124
+ 'config': {
125
+ 'query': {
126
+ 'Version': '2022-12-22',
127
+ 'Action': 'QueryUserConsume'
128
+ },
129
+ 'headers': {
130
+ 'Content-Type': 'application/json'
131
+ }
132
+ },
133
+ 'paramsType': {
134
+ 'StartDay': 'String',
135
+ 'EndDay': 'String',
136
+ 'Page': 'Int',
137
+ 'Size': 'Int'
138
+ }
139
+ }
140
+ });
141
+ }
142
+ };
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
6
  const BaseClient = require("../../../base/BaseClient.js");
6
-
7
7
  module.exports = class Client extends BaseClient {
8
8
  constructor(...args) {
9
9
  super(...args);
10
-
11
10
  _defineProperty(this, "_baseConfig", {
12
11
  'protocol': 'http://',
13
12
  'endpoint': 'bws.api.ksyun.com',
@@ -23,7 +22,6 @@ module.exports = class Client extends BaseClient {
23
22
  }
24
23
  }
25
24
  });
26
-
27
25
  _defineProperty(this, "_apiList", {
28
26
  'CreateBandWidthShare': {
29
27
  'url': '/',
@@ -133,8 +131,27 @@ module.exports = class Client extends BaseClient {
133
131
  'paramsType': {
134
132
  'BandWidthShareId': 'String'
135
133
  }
134
+ },
135
+ 'QueryBwsTopEipMonitor': {
136
+ 'url': '/',
137
+ 'method': 'GET',
138
+ 'config': {
139
+ 'query': {
140
+ 'Version': '2016-03-04',
141
+ 'Action': 'QueryBwsTopEipMonitor'
142
+ },
143
+ 'headers': {
144
+ 'Content-Type': 'application/x-www-form-urlencoded'
145
+ }
146
+ },
147
+ 'paramsType': {
148
+ 'BandWidthShareId': 'String',
149
+ 'StartTime': 'String',
150
+ 'EndTime': 'String',
151
+ 'SortType': 'String',
152
+ 'PublicIp': 'String'
153
+ }
136
154
  }
137
155
  });
138
156
  }
139
-
140
157
  };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ const BaseClient = require("../../../base/BaseClient.js");
7
+ module.exports = class Client extends BaseClient {
8
+ constructor(...args) {
9
+ super(...args);
10
+ _defineProperty(this, "_baseConfig", {
11
+ 'protocol': 'http://',
12
+ 'endpoint': 'cdn.api.ksyun.com',
13
+ 'config': {
14
+ 'timeout': 60,
15
+ //设置timeout
16
+ 'headers': {
17
+ 'Accept': 'application/json'
18
+ },
19
+ 'credentials': {
20
+ 'region': 'cn-shanghai-3',
21
+ 'service': 'cdn'
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ 'GetDomainPidDimensionUsageData': {
27
+ 'url': '/',
28
+ 'method': 'GET',
29
+ 'config': {
30
+ 'query': {
31
+ 'Version': '2016-09-01',
32
+ 'Action': 'GetDomainPidDimensionUsageData'
33
+ },
34
+ 'headers': {
35
+ 'Content-Type': 'application/x-www-form-urlencoded'
36
+ }
37
+ },
38
+ 'paramsType': {}
39
+ }
40
+ });
41
+ }
42
+ };