@huaweicloud/huaweicloud-sdk-cdn 3.1.34 → 3.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/package.json +2 -2
  2. package/v1/CdnClient.d.ts +0 -25
  3. package/v1/CdnClient.js +25 -50
  4. package/v1/model/CacheRules.d.ts +31 -0
  5. package/v1/model/CacheRules.js +107 -0
  6. package/v1/model/Configs.d.ts +17 -0
  7. package/v1/model/Configs.js +46 -0
  8. package/v1/model/ConfigsGetBody.d.ts +17 -0
  9. package/v1/model/ConfigsGetBody.js +46 -0
  10. package/v1/model/ForceRedirectConfig.d.ts +4 -0
  11. package/v1/model/ForceRedirectConfig.js +14 -0
  12. package/v1/model/IpFilter.d.ts +7 -0
  13. package/v1/model/IpFilter.js +18 -0
  14. package/v1/model/RefererConfig.d.ts +11 -0
  15. package/v1/model/RefererConfig.js +32 -0
  16. package/v1/public-api.d.ts +3 -0
  17. package/v1/public-api.js +3 -0
  18. package/v2/CdnClient.d.ts +55 -9
  19. package/v2/CdnClient.js +131 -20
  20. package/v2/model/CacheRules.d.ts +31 -0
  21. package/v2/model/CacheRules.js +107 -0
  22. package/v2/model/CacheUrlParameterFilter.d.ts +7 -0
  23. package/v2/model/CacheUrlParameterFilter.js +17 -0
  24. package/v2/model/Compress.d.ts +7 -0
  25. package/v2/model/Compress.js +18 -0
  26. package/v2/model/Configs.d.ts +86 -0
  27. package/v2/model/Configs.js +235 -0
  28. package/v2/model/ConfigsGetBody.d.ts +86 -0
  29. package/v2/model/ConfigsGetBody.js +235 -0
  30. package/v2/model/ErrorCodeCache.d.ts +23 -0
  31. package/v2/model/ErrorCodeCache.js +34 -0
  32. package/v2/model/ErrorCodeRedirectRules.d.ts +15 -0
  33. package/v2/model/ErrorCodeRedirectRules.js +54 -0
  34. package/v2/model/ForceRedirectConfig.d.ts +11 -0
  35. package/v2/model/ForceRedirectConfig.js +32 -0
  36. package/v2/model/HttpGetBody.d.ts +27 -0
  37. package/v2/model/HttpGetBody.js +93 -0
  38. package/v2/model/HttpPutBody.d.ts +31 -0
  39. package/v2/model/HttpPutBody.js +107 -0
  40. package/v2/model/HttpResponseHeader.d.ts +9 -0
  41. package/v2/model/HttpResponseHeader.js +23 -0
  42. package/v2/model/IpFilter.d.ts +7 -0
  43. package/v2/model/IpFilter.js +18 -0
  44. package/v2/model/ModifyDomainConfigRequestBody.d.ts +6 -0
  45. package/v2/model/ModifyDomainConfigRequestBody.js +13 -0
  46. package/v2/model/OriginRequestHeader.d.ts +9 -0
  47. package/v2/model/OriginRequestHeader.js +23 -0
  48. package/v2/model/OriginRequestUrlRewrite.d.ts +17 -0
  49. package/v2/model/OriginRequestUrlRewrite.js +58 -0
  50. package/v2/model/RefererConfig.d.ts +11 -0
  51. package/v2/model/RefererConfig.js +32 -0
  52. package/v2/model/ShowDomainFullConfigRequest.d.ts +11 -0
  53. package/v2/model/ShowDomainFullConfigRequest.js +38 -0
  54. package/v2/model/ShowDomainFullConfigResponse.d.ts +7 -0
  55. package/v2/model/ShowDomainFullConfigResponse.js +31 -0
  56. package/v2/model/UpdateDomainFullConfigRequest.d.ts +14 -0
  57. package/v2/model/UpdateDomainFullConfigRequest.js +42 -0
  58. package/v2/model/UpdateDomainFullConfigResponse.d.ts +4 -0
  59. package/v2/model/UpdateDomainFullConfigResponse.js +27 -0
  60. package/v2/model/UrlAuth.d.ts +17 -0
  61. package/v2/model/UrlAuth.js +50 -0
  62. package/v2/model/UrlAuthGetBody.d.ts +15 -0
  63. package/v2/model/UrlAuthGetBody.js +46 -0
  64. package/v2/model/UserAgentFilter.d.ts +7 -0
  65. package/v2/model/UserAgentFilter.js +18 -0
  66. package/v2/public-api.d.ts +23 -0
  67. package/v2/public-api.js +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-cdn",
3
- "version": "3.1.34",
3
+ "version": "3.1.36",
4
4
  "description": "Huaweicloud SDK for cdn",
5
5
  "main": "huaweicloud-sdk-cdn.js",
6
6
  "typings": "huaweicloud-sdk-cdn.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.34"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.36"
18
18
  }
19
19
  }
package/v1/CdnClient.d.ts CHANGED
@@ -799,7 +799,6 @@ export declare const ParamCreater: () => {
799
799
  queryParams: {};
800
800
  pathParams: {};
801
801
  headers: {};
802
- data: {};
803
802
  };
804
803
  /**
805
804
  * 停用加速域名。
@@ -813,7 +812,6 @@ export declare const ParamCreater: () => {
813
812
  queryParams: {};
814
813
  pathParams: {};
815
814
  headers: {};
816
- data: {};
817
815
  };
818
816
  /**
819
817
  * 启用加速域名。
@@ -827,7 +825,6 @@ export declare const ParamCreater: () => {
827
825
  queryParams: {};
828
826
  pathParams: {};
829
827
  headers: {};
830
- data: {};
831
828
  };
832
829
  /**
833
830
  * 查询加速域名信息
@@ -841,7 +838,6 @@ export declare const ParamCreater: () => {
841
838
  queryParams: {};
842
839
  pathParams: {};
843
840
  headers: {};
844
- data: {};
845
841
  };
846
842
  /**
847
843
  * 查询域名已经设置的IP黑白名单。
@@ -855,7 +851,6 @@ export declare const ParamCreater: () => {
855
851
  queryParams: {};
856
852
  pathParams: {};
857
853
  headers: {};
858
- data: {};
859
854
  };
860
855
  /**
861
856
  * 查询缓存规则。
@@ -869,7 +864,6 @@ export declare const ParamCreater: () => {
869
864
  queryParams: {};
870
865
  pathParams: {};
871
866
  headers: {};
872
- data: {};
873
867
  };
874
868
  /**
875
869
  * 查询所有绑定HTTPS证书的域名信息
@@ -883,7 +877,6 @@ export declare const ParamCreater: () => {
883
877
  queryParams: {};
884
878
  pathParams: {};
885
879
  headers: {};
886
- data: {};
887
880
  };
888
881
  /**
889
882
  * 查询加速域名详情。
@@ -897,7 +890,6 @@ export declare const ParamCreater: () => {
897
890
  queryParams: {};
898
891
  pathParams: {};
899
892
  headers: {};
900
- data: {};
901
893
  };
902
894
  /**
903
895
  * 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
@@ -911,7 +903,6 @@ export declare const ParamCreater: () => {
911
903
  queryParams: {};
912
904
  pathParams: {};
913
905
  headers: {};
914
- data: {};
915
906
  };
916
907
  /**
917
908
  * - 支持查询90天内的数据。
@@ -933,7 +924,6 @@ export declare const ParamCreater: () => {
933
924
  queryParams: {};
934
925
  pathParams: {};
935
926
  headers: {};
936
- data: {};
937
927
  };
938
928
  /**
939
929
  * - 支持查询90天内的数据。
@@ -958,7 +948,6 @@ export declare const ParamCreater: () => {
958
948
  queryParams: {};
959
949
  pathParams: {};
960
950
  headers: {};
961
- data: {};
962
951
  };
963
952
  /**
964
953
  * - 支持查询90天内的数据。
@@ -984,7 +973,6 @@ export declare const ParamCreater: () => {
984
973
  queryParams: {};
985
974
  pathParams: {};
986
975
  headers: {};
987
- data: {};
988
976
  };
989
977
  /**
990
978
  * - 支持查询90天内的数据。
@@ -1010,7 +998,6 @@ export declare const ParamCreater: () => {
1010
998
  queryParams: {};
1011
999
  pathParams: {};
1012
1000
  headers: {};
1013
- data: {};
1014
1001
  };
1015
1002
  /**
1016
1003
  * 查询刷新预热任务详情。
@@ -1024,7 +1011,6 @@ export declare const ParamCreater: () => {
1024
1011
  queryParams: {};
1025
1012
  pathParams: {};
1026
1013
  headers: {};
1027
- data: {};
1028
1014
  };
1029
1015
  /**
1030
1016
  * 查询刷新预热任务。
@@ -1038,7 +1024,6 @@ export declare const ParamCreater: () => {
1038
1024
  queryParams: {};
1039
1025
  pathParams: {};
1040
1026
  headers: {};
1041
- data: {};
1042
1027
  };
1043
1028
  /**
1044
1029
  * 获取加速域名证书。
@@ -1052,7 +1037,6 @@ export declare const ParamCreater: () => {
1052
1037
  queryParams: {};
1053
1038
  pathParams: {};
1054
1039
  headers: {};
1055
- data: {};
1056
1040
  };
1057
1041
  /**
1058
1042
  * 查询IP归属信息。
@@ -1066,7 +1050,6 @@ export declare const ParamCreater: () => {
1066
1050
  queryParams: {};
1067
1051
  pathParams: {};
1068
1052
  headers: {};
1069
- data: {};
1070
1053
  };
1071
1054
  /**
1072
1055
  * 日志查询。
@@ -1080,7 +1063,6 @@ export declare const ParamCreater: () => {
1080
1063
  queryParams: {};
1081
1064
  pathParams: {};
1082
1065
  headers: {};
1083
- data: {};
1084
1066
  };
1085
1067
  /**
1086
1068
  * 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
@@ -1094,7 +1076,6 @@ export declare const ParamCreater: () => {
1094
1076
  queryParams: {};
1095
1077
  pathParams: {};
1096
1078
  headers: {};
1097
- data: {};
1098
1079
  };
1099
1080
  /**
1100
1081
  * 查询当前用户域名、刷新文件、刷新目录和预热的配额
@@ -1108,7 +1089,6 @@ export declare const ParamCreater: () => {
1108
1089
  queryParams: {};
1109
1090
  pathParams: {};
1110
1091
  headers: {};
1111
- data: {};
1112
1092
  };
1113
1093
  /**
1114
1094
  * 查询Referer过滤规则。
@@ -1122,7 +1102,6 @@ export declare const ParamCreater: () => {
1122
1102
  queryParams: {};
1123
1103
  pathParams: {};
1124
1104
  headers: {};
1125
- data: {};
1126
1105
  };
1127
1106
  /**
1128
1107
  * 列举header所有配置。
@@ -1136,7 +1115,6 @@ export declare const ParamCreater: () => {
1136
1115
  queryParams: {};
1137
1116
  pathParams: {};
1138
1117
  headers: {};
1139
- data: {};
1140
1118
  };
1141
1119
  /**
1142
1120
  * 用于查询资源标签列表
@@ -1150,7 +1128,6 @@ export declare const ParamCreater: () => {
1150
1128
  queryParams: {};
1151
1129
  pathParams: {};
1152
1130
  headers: {};
1153
- data: {};
1154
1131
  };
1155
1132
  /**
1156
1133
  * - 查询TOP100 URL明细。
@@ -1177,7 +1154,6 @@ export declare const ParamCreater: () => {
1177
1154
  queryParams: {};
1178
1155
  pathParams: {};
1179
1156
  headers: {};
1180
- data: {};
1181
1157
  };
1182
1158
  /**
1183
1159
  * 查询刷新预热URL记录。如需此接口,请提交工单开通
@@ -1191,7 +1167,6 @@ export declare const ParamCreater: () => {
1191
1167
  queryParams: {};
1192
1168
  pathParams: {};
1193
1169
  headers: {};
1194
- data: {};
1195
1170
  };
1196
1171
  /**
1197
1172
  * 设置域名的IP黑白名单。
package/v1/CdnClient.js CHANGED
@@ -1103,8 +1103,7 @@ var ParamCreater = function () {
1103
1103
  contentType: "application/json",
1104
1104
  queryParams: {},
1105
1105
  pathParams: {},
1106
- headers: {},
1107
- data: {}
1106
+ headers: {}
1108
1107
  };
1109
1108
  var localVarHeaderParameter = {};
1110
1109
  var localVarQueryParameter = {};
@@ -1143,8 +1142,7 @@ var ParamCreater = function () {
1143
1142
  contentType: "application/json",
1144
1143
  queryParams: {},
1145
1144
  pathParams: {},
1146
- headers: {},
1147
- data: {}
1145
+ headers: {}
1148
1146
  };
1149
1147
  var localVarHeaderParameter = {};
1150
1148
  var localVarQueryParameter = {};
@@ -1183,8 +1181,7 @@ var ParamCreater = function () {
1183
1181
  contentType: "application/json",
1184
1182
  queryParams: {},
1185
1183
  pathParams: {},
1186
- headers: {},
1187
- data: {}
1184
+ headers: {}
1188
1185
  };
1189
1186
  var localVarHeaderParameter = {};
1190
1187
  var localVarQueryParameter = {};
@@ -1223,8 +1220,7 @@ var ParamCreater = function () {
1223
1220
  contentType: "application/json",
1224
1221
  queryParams: {},
1225
1222
  pathParams: {},
1226
- headers: {},
1227
- data: {}
1223
+ headers: {}
1228
1224
  };
1229
1225
  var localVarHeaderParameter = {};
1230
1226
  var localVarQueryParameter = {};
@@ -1304,8 +1300,7 @@ var ParamCreater = function () {
1304
1300
  contentType: "application/json",
1305
1301
  queryParams: {},
1306
1302
  pathParams: {},
1307
- headers: {},
1308
- data: {}
1303
+ headers: {}
1309
1304
  };
1310
1305
  var localVarHeaderParameter = {};
1311
1306
  var localVarQueryParameter = {};
@@ -1344,8 +1339,7 @@ var ParamCreater = function () {
1344
1339
  contentType: "application/json",
1345
1340
  queryParams: {},
1346
1341
  pathParams: {},
1347
- headers: {},
1348
- data: {}
1342
+ headers: {}
1349
1343
  };
1350
1344
  var localVarHeaderParameter = {};
1351
1345
  var localVarQueryParameter = {};
@@ -1384,8 +1378,7 @@ var ParamCreater = function () {
1384
1378
  contentType: "application/json",
1385
1379
  queryParams: {},
1386
1380
  pathParams: {},
1387
- headers: {},
1388
- data: {}
1381
+ headers: {}
1389
1382
  };
1390
1383
  var localVarHeaderParameter = {};
1391
1384
  var localVarQueryParameter = {};
@@ -1441,8 +1434,7 @@ var ParamCreater = function () {
1441
1434
  contentType: "application/json",
1442
1435
  queryParams: {},
1443
1436
  pathParams: {},
1444
- headers: {},
1445
- data: {}
1437
+ headers: {}
1446
1438
  };
1447
1439
  var localVarHeaderParameter = {};
1448
1440
  var localVarQueryParameter = {};
@@ -1481,8 +1473,7 @@ var ParamCreater = function () {
1481
1473
  contentType: "application/json",
1482
1474
  queryParams: {},
1483
1475
  pathParams: {},
1484
- headers: {},
1485
- data: {}
1476
+ headers: {}
1486
1477
  };
1487
1478
  var localVarHeaderParameter = {};
1488
1479
  var localVarQueryParameter = {};
@@ -1529,8 +1520,7 @@ var ParamCreater = function () {
1529
1520
  contentType: "application/json",
1530
1521
  queryParams: {},
1531
1522
  pathParams: {},
1532
- headers: {},
1533
- data: {}
1523
+ headers: {}
1534
1524
  };
1535
1525
  var localVarHeaderParameter = {};
1536
1526
  var localVarQueryParameter = {};
@@ -1615,8 +1605,7 @@ var ParamCreater = function () {
1615
1605
  contentType: "application/json",
1616
1606
  queryParams: {},
1617
1607
  pathParams: {},
1618
- headers: {},
1619
- data: {}
1608
+ headers: {}
1620
1609
  };
1621
1610
  var localVarHeaderParameter = {};
1622
1611
  var localVarQueryParameter = {};
@@ -1714,8 +1703,7 @@ var ParamCreater = function () {
1714
1703
  contentType: "application/json",
1715
1704
  queryParams: {},
1716
1705
  pathParams: {},
1717
- headers: {},
1718
- data: {}
1706
+ headers: {}
1719
1707
  };
1720
1708
  var localVarHeaderParameter = {};
1721
1709
  var localVarQueryParameter = {};
@@ -1834,8 +1822,7 @@ var ParamCreater = function () {
1834
1822
  contentType: "application/json",
1835
1823
  queryParams: {},
1836
1824
  pathParams: {},
1837
- headers: {},
1838
- data: {}
1825
+ headers: {}
1839
1826
  };
1840
1827
  var localVarHeaderParameter = {};
1841
1828
  var localVarQueryParameter = {};
@@ -1930,8 +1917,7 @@ var ParamCreater = function () {
1930
1917
  contentType: "application/json",
1931
1918
  queryParams: {},
1932
1919
  pathParams: {},
1933
- headers: {},
1934
- data: {}
1920
+ headers: {}
1935
1921
  };
1936
1922
  var localVarHeaderParameter = {};
1937
1923
  var localVarQueryParameter = {};
@@ -2000,8 +1986,7 @@ var ParamCreater = function () {
2000
1986
  contentType: "application/json",
2001
1987
  queryParams: {},
2002
1988
  pathParams: {},
2003
- headers: {},
2004
- data: {}
1989
+ headers: {}
2005
1990
  };
2006
1991
  var localVarHeaderParameter = {};
2007
1992
  var localVarQueryParameter = {};
@@ -2081,8 +2066,7 @@ var ParamCreater = function () {
2081
2066
  contentType: "application/json",
2082
2067
  queryParams: {},
2083
2068
  pathParams: {},
2084
- headers: {},
2085
- data: {}
2069
+ headers: {}
2086
2070
  };
2087
2071
  var localVarHeaderParameter = {};
2088
2072
  var localVarQueryParameter = {};
@@ -2121,8 +2105,7 @@ var ParamCreater = function () {
2121
2105
  contentType: "application/json",
2122
2106
  queryParams: {},
2123
2107
  pathParams: {},
2124
- headers: {},
2125
- data: {}
2108
+ headers: {}
2126
2109
  };
2127
2110
  var localVarHeaderParameter = {};
2128
2111
  var localVarQueryParameter = {};
@@ -2163,8 +2146,7 @@ var ParamCreater = function () {
2163
2146
  contentType: "application/json",
2164
2147
  queryParams: {},
2165
2148
  pathParams: {},
2166
- headers: {},
2167
- data: {}
2149
+ headers: {}
2168
2150
  };
2169
2151
  var localVarHeaderParameter = {};
2170
2152
  var localVarQueryParameter = {};
@@ -2226,8 +2208,7 @@ var ParamCreater = function () {
2226
2208
  contentType: "application/json",
2227
2209
  queryParams: {},
2228
2210
  pathParams: {},
2229
- headers: {},
2230
- data: {}
2211
+ headers: {}
2231
2212
  };
2232
2213
  var localVarHeaderParameter = {};
2233
2214
  var localVarQueryParameter = {};
@@ -2266,8 +2247,7 @@ var ParamCreater = function () {
2266
2247
  contentType: "application/json",
2267
2248
  queryParams: {},
2268
2249
  pathParams: {},
2269
- headers: {},
2270
- data: {}
2250
+ headers: {}
2271
2251
  };
2272
2252
  var localVarHeaderParameter = {};
2273
2253
  options.headers = localVarHeaderParameter;
@@ -2285,8 +2265,7 @@ var ParamCreater = function () {
2285
2265
  contentType: "application/json",
2286
2266
  queryParams: {},
2287
2267
  pathParams: {},
2288
- headers: {},
2289
- data: {}
2268
+ headers: {}
2290
2269
  };
2291
2270
  var localVarHeaderParameter = {};
2292
2271
  var localVarQueryParameter = {};
@@ -2325,8 +2304,7 @@ var ParamCreater = function () {
2325
2304
  contentType: "application/json",
2326
2305
  queryParams: {},
2327
2306
  pathParams: {},
2328
- headers: {},
2329
- data: {}
2307
+ headers: {}
2330
2308
  };
2331
2309
  var localVarHeaderParameter = {};
2332
2310
  var localVarQueryParameter = {};
@@ -2365,8 +2343,7 @@ var ParamCreater = function () {
2365
2343
  contentType: "application/json",
2366
2344
  queryParams: {},
2367
2345
  pathParams: {},
2368
- headers: {},
2369
- data: {}
2346
+ headers: {}
2370
2347
  };
2371
2348
  var localVarHeaderParameter = {};
2372
2349
  var localVarQueryParameter = {};
@@ -2414,8 +2391,7 @@ var ParamCreater = function () {
2414
2391
  contentType: "application/json",
2415
2392
  queryParams: {},
2416
2393
  pathParams: {},
2417
- headers: {},
2418
- data: {}
2394
+ headers: {}
2419
2395
  };
2420
2396
  var localVarHeaderParameter = {};
2421
2397
  var localVarQueryParameter = {};
@@ -2489,8 +2465,7 @@ var ParamCreater = function () {
2489
2465
  contentType: "application/json",
2490
2466
  queryParams: {},
2491
2467
  pathParams: {},
2492
- headers: {},
2493
- data: {}
2468
+ headers: {}
2494
2469
  };
2495
2470
  var localVarHeaderParameter = {};
2496
2471
  var localVarQueryParameter = {};
@@ -0,0 +1,31 @@
1
+ export declare class CacheRules {
2
+ private 'match_type';
3
+ private 'match_value'?;
4
+ ttl: number;
5
+ private 'ttl_unit';
6
+ priority: number;
7
+ private 'follow_origin';
8
+ private 'url_parameter_type';
9
+ private 'url_parameter_value'?;
10
+ constructor(matchType?: any, ttl?: any, ttlUnit?: any, priority?: any, followOrigin?: any, urlParameterType?: any);
11
+ withMatchType(matchType: string): CacheRules;
12
+ set matchType(matchType: string | undefined);
13
+ get matchType(): string | undefined;
14
+ withMatchValue(matchValue: string): CacheRules;
15
+ set matchValue(matchValue: string | undefined);
16
+ get matchValue(): string | undefined;
17
+ withTtl(ttl: number): CacheRules;
18
+ withTtlUnit(ttlUnit: string): CacheRules;
19
+ set ttlUnit(ttlUnit: string | undefined);
20
+ get ttlUnit(): string | undefined;
21
+ withPriority(priority: number): CacheRules;
22
+ withFollowOrigin(followOrigin: string): CacheRules;
23
+ set followOrigin(followOrigin: string | undefined);
24
+ get followOrigin(): string | undefined;
25
+ withUrlParameterType(urlParameterType: string): CacheRules;
26
+ set urlParameterType(urlParameterType: string | undefined);
27
+ get urlParameterType(): string | undefined;
28
+ withUrlParameterValue(urlParameterValue: string): CacheRules;
29
+ set urlParameterValue(urlParameterValue: string | undefined);
30
+ get urlParameterValue(): string | undefined;
31
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CacheRules = void 0;
4
+ var CacheRules = /** @class */ (function () {
5
+ function CacheRules(matchType, ttl, ttlUnit, priority, followOrigin, urlParameterType) {
6
+ this['match_type'] = matchType;
7
+ this['ttl'] = ttl;
8
+ this['ttl_unit'] = ttlUnit;
9
+ this['priority'] = priority;
10
+ this['follow_origin'] = followOrigin;
11
+ this['url_parameter_type'] = urlParameterType;
12
+ }
13
+ CacheRules.prototype.withMatchType = function (matchType) {
14
+ this['match_type'] = matchType;
15
+ return this;
16
+ };
17
+ Object.defineProperty(CacheRules.prototype, "matchType", {
18
+ get: function () {
19
+ return this['match_type'];
20
+ },
21
+ set: function (matchType) {
22
+ this['match_type'] = matchType;
23
+ },
24
+ enumerable: false,
25
+ configurable: true
26
+ });
27
+ CacheRules.prototype.withMatchValue = function (matchValue) {
28
+ this['match_value'] = matchValue;
29
+ return this;
30
+ };
31
+ Object.defineProperty(CacheRules.prototype, "matchValue", {
32
+ get: function () {
33
+ return this['match_value'];
34
+ },
35
+ set: function (matchValue) {
36
+ this['match_value'] = matchValue;
37
+ },
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ CacheRules.prototype.withTtl = function (ttl) {
42
+ this['ttl'] = ttl;
43
+ return this;
44
+ };
45
+ CacheRules.prototype.withTtlUnit = function (ttlUnit) {
46
+ this['ttl_unit'] = ttlUnit;
47
+ return this;
48
+ };
49
+ Object.defineProperty(CacheRules.prototype, "ttlUnit", {
50
+ get: function () {
51
+ return this['ttl_unit'];
52
+ },
53
+ set: function (ttlUnit) {
54
+ this['ttl_unit'] = ttlUnit;
55
+ },
56
+ enumerable: false,
57
+ configurable: true
58
+ });
59
+ CacheRules.prototype.withPriority = function (priority) {
60
+ this['priority'] = priority;
61
+ return this;
62
+ };
63
+ CacheRules.prototype.withFollowOrigin = function (followOrigin) {
64
+ this['follow_origin'] = followOrigin;
65
+ return this;
66
+ };
67
+ Object.defineProperty(CacheRules.prototype, "followOrigin", {
68
+ get: function () {
69
+ return this['follow_origin'];
70
+ },
71
+ set: function (followOrigin) {
72
+ this['follow_origin'] = followOrigin;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ CacheRules.prototype.withUrlParameterType = function (urlParameterType) {
78
+ this['url_parameter_type'] = urlParameterType;
79
+ return this;
80
+ };
81
+ Object.defineProperty(CacheRules.prototype, "urlParameterType", {
82
+ get: function () {
83
+ return this['url_parameter_type'];
84
+ },
85
+ set: function (urlParameterType) {
86
+ this['url_parameter_type'] = urlParameterType;
87
+ },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ CacheRules.prototype.withUrlParameterValue = function (urlParameterValue) {
92
+ this['url_parameter_value'] = urlParameterValue;
93
+ return this;
94
+ };
95
+ Object.defineProperty(CacheRules.prototype, "urlParameterValue", {
96
+ get: function () {
97
+ return this['url_parameter_value'];
98
+ },
99
+ set: function (urlParameterValue) {
100
+ this['url_parameter_value'] = urlParameterValue;
101
+ },
102
+ enumerable: false,
103
+ configurable: true
104
+ });
105
+ return CacheRules;
106
+ }());
107
+ exports.CacheRules = CacheRules;
@@ -1,3 +1,4 @@
1
+ import { CacheRules } from './CacheRules';
1
2
  import { CacheUrlParameterFilter } from './CacheUrlParameterFilter';
2
3
  import { Compress } from './Compress';
3
4
  import { ErrorCodeCache } from './ErrorCodeCache';
@@ -5,8 +6,10 @@ import { ErrorCodeRedirectRules } from './ErrorCodeRedirectRules';
5
6
  import { ForceRedirectConfig } from './ForceRedirectConfig';
6
7
  import { HttpPutBody } from './HttpPutBody';
7
8
  import { HttpResponseHeader } from './HttpResponseHeader';
9
+ import { IpFilter } from './IpFilter';
8
10
  import { OriginRequestHeader } from './OriginRequestHeader';
9
11
  import { OriginRequestUrlRewrite } from './OriginRequestUrlRewrite';
12
+ import { RefererConfig } from './RefererConfig';
10
13
  import { SourcesConfig } from './SourcesConfig';
11
14
  import { UrlAuth } from './UrlAuth';
12
15
  import { UserAgentFilter } from './UserAgentFilter';
@@ -17,6 +20,10 @@ export declare class Configs {
17
20
  https?: HttpPutBody;
18
21
  sources?: Array<SourcesConfig>;
19
22
  private 'origin_protocol'?;
23
+ private 'origin_follow302_status'?;
24
+ private 'cache_rules'?;
25
+ private 'ip_filter'?;
26
+ referer?: RefererConfig;
20
27
  private 'force_redirect'?;
21
28
  compress?: Compress;
22
29
  private 'cache_url_parameter_filter'?;
@@ -41,6 +48,16 @@ export declare class Configs {
41
48
  withOriginProtocol(originProtocol: string): Configs;
42
49
  set originProtocol(originProtocol: string | undefined);
43
50
  get originProtocol(): string | undefined;
51
+ withOriginFollow302Status(originFollow302Status: string): Configs;
52
+ set originFollow302Status(originFollow302Status: string | undefined);
53
+ get originFollow302Status(): string | undefined;
54
+ withCacheRules(cacheRules: Array<CacheRules>): Configs;
55
+ set cacheRules(cacheRules: Array<CacheRules> | undefined);
56
+ get cacheRules(): Array<CacheRules> | undefined;
57
+ withIpFilter(ipFilter: IpFilter): Configs;
58
+ set ipFilter(ipFilter: IpFilter | undefined);
59
+ get ipFilter(): IpFilter | undefined;
60
+ withReferer(referer: RefererConfig): Configs;
44
61
  withForceRedirect(forceRedirect: ForceRedirectConfig): Configs;
45
62
  set forceRedirect(forceRedirect: ForceRedirectConfig | undefined);
46
63
  get forceRedirect(): ForceRedirectConfig | undefined;
@@ -68,6 +68,52 @@ var Configs = /** @class */ (function () {
68
68
  enumerable: false,
69
69
  configurable: true
70
70
  });
71
+ Configs.prototype.withOriginFollow302Status = function (originFollow302Status) {
72
+ this['origin_follow302_status'] = originFollow302Status;
73
+ return this;
74
+ };
75
+ Object.defineProperty(Configs.prototype, "originFollow302Status", {
76
+ get: function () {
77
+ return this['origin_follow302_status'];
78
+ },
79
+ set: function (originFollow302Status) {
80
+ this['origin_follow302_status'] = originFollow302Status;
81
+ },
82
+ enumerable: false,
83
+ configurable: true
84
+ });
85
+ Configs.prototype.withCacheRules = function (cacheRules) {
86
+ this['cache_rules'] = cacheRules;
87
+ return this;
88
+ };
89
+ Object.defineProperty(Configs.prototype, "cacheRules", {
90
+ get: function () {
91
+ return this['cache_rules'];
92
+ },
93
+ set: function (cacheRules) {
94
+ this['cache_rules'] = cacheRules;
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ Configs.prototype.withIpFilter = function (ipFilter) {
100
+ this['ip_filter'] = ipFilter;
101
+ return this;
102
+ };
103
+ Object.defineProperty(Configs.prototype, "ipFilter", {
104
+ get: function () {
105
+ return this['ip_filter'];
106
+ },
107
+ set: function (ipFilter) {
108
+ this['ip_filter'] = ipFilter;
109
+ },
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ Configs.prototype.withReferer = function (referer) {
114
+ this['referer'] = referer;
115
+ return this;
116
+ };
71
117
  Configs.prototype.withForceRedirect = function (forceRedirect) {
72
118
  this['force_redirect'] = forceRedirect;
73
119
  return this;