@huaweicloud/huaweicloud-sdk-cdn 3.1.33 → 3.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/package.json +2 -2
  2. package/v1/model/CacheRules.d.ts +31 -0
  3. package/v1/model/CacheRules.js +107 -0
  4. package/v1/model/Configs.d.ts +17 -0
  5. package/v1/model/Configs.js +46 -0
  6. package/v1/model/ConfigsGetBody.d.ts +17 -0
  7. package/v1/model/ConfigsGetBody.js +46 -0
  8. package/v1/model/ForceRedirectConfig.d.ts +4 -0
  9. package/v1/model/ForceRedirectConfig.js +14 -0
  10. package/v1/model/IpFilter.d.ts +7 -0
  11. package/v1/model/IpFilter.js +18 -0
  12. package/v1/model/RefererConfig.d.ts +11 -0
  13. package/v1/model/RefererConfig.js +32 -0
  14. package/v1/public-api.d.ts +3 -0
  15. package/v1/public-api.js +3 -0
  16. package/v2/CdnClient.d.ts +57 -0
  17. package/v2/CdnClient.js +122 -0
  18. package/v2/model/CacheRules.d.ts +31 -0
  19. package/v2/model/CacheRules.js +107 -0
  20. package/v2/model/CacheUrlParameterFilter.d.ts +7 -0
  21. package/v2/model/CacheUrlParameterFilter.js +17 -0
  22. package/v2/model/Compress.d.ts +7 -0
  23. package/v2/model/Compress.js +18 -0
  24. package/v2/model/Configs.d.ts +86 -0
  25. package/v2/model/Configs.js +235 -0
  26. package/v2/model/ConfigsGetBody.d.ts +78 -0
  27. package/v2/model/ConfigsGetBody.js +207 -0
  28. package/v2/model/ErrorCodeCache.d.ts +23 -0
  29. package/v2/model/ErrorCodeCache.js +34 -0
  30. package/v2/model/ErrorCodeRedirectRules.d.ts +15 -0
  31. package/v2/model/ErrorCodeRedirectRules.js +54 -0
  32. package/v2/model/ForceRedirectConfig.d.ts +11 -0
  33. package/v2/model/ForceRedirectConfig.js +32 -0
  34. package/v2/model/HttpGetBody.d.ts +27 -0
  35. package/v2/model/HttpGetBody.js +93 -0
  36. package/v2/model/HttpPutBody.d.ts +31 -0
  37. package/v2/model/HttpPutBody.js +107 -0
  38. package/v2/model/HttpResponseHeader.d.ts +9 -0
  39. package/v2/model/HttpResponseHeader.js +23 -0
  40. package/v2/model/IpFilter.d.ts +7 -0
  41. package/v2/model/IpFilter.js +18 -0
  42. package/v2/model/ModifyDomainConfigRequestBody.d.ts +6 -0
  43. package/v2/model/ModifyDomainConfigRequestBody.js +13 -0
  44. package/v2/model/OriginRequestHeader.d.ts +9 -0
  45. package/v2/model/OriginRequestHeader.js +23 -0
  46. package/v2/model/OriginRequestUrlRewrite.d.ts +17 -0
  47. package/v2/model/OriginRequestUrlRewrite.js +58 -0
  48. package/v2/model/RefererConfig.d.ts +11 -0
  49. package/v2/model/RefererConfig.js +32 -0
  50. package/v2/model/ShowDomainFullConfigRequest.d.ts +11 -0
  51. package/v2/model/ShowDomainFullConfigRequest.js +38 -0
  52. package/v2/model/ShowDomainFullConfigResponse.d.ts +7 -0
  53. package/v2/model/ShowDomainFullConfigResponse.js +31 -0
  54. package/v2/model/UpdateDomainFullConfigRequest.d.ts +14 -0
  55. package/v2/model/UpdateDomainFullConfigRequest.js +42 -0
  56. package/v2/model/UpdateDomainFullConfigResponse.d.ts +4 -0
  57. package/v2/model/UpdateDomainFullConfigResponse.js +27 -0
  58. package/v2/model/UrlAuth.d.ts +17 -0
  59. package/v2/model/UrlAuth.js +50 -0
  60. package/v2/model/UrlAuthGetBody.d.ts +15 -0
  61. package/v2/model/UrlAuthGetBody.js +46 -0
  62. package/v2/model/UserAgentFilter.d.ts +7 -0
  63. package/v2/model/UserAgentFilter.js +18 -0
  64. package/v2/public-api.d.ts +23 -0
  65. 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.33",
3
+ "version": "3.1.35",
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.33"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.35"
18
18
  }
19
19
  }
@@ -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;
@@ -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 { HttpGetBody } from './HttpGetBody';
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 { UrlAuthGetBody } from './UrlAuthGetBody';
12
15
  import { UserAgentFilter } from './UserAgentFilter';
@@ -16,6 +19,10 @@ export declare class ConfigsGetBody {
16
19
  private 'url_auth'?;
17
20
  https?: HttpGetBody;
18
21
  sources?: Array<SourcesConfig>;
22
+ private 'origin_follow302_status'?;
23
+ private 'cache_rules'?;
24
+ private 'ip_filter'?;
25
+ referer?: RefererConfig;
19
26
  private 'origin_protocol'?;
20
27
  private 'force_redirect'?;
21
28
  compress?: Compress;
@@ -38,6 +45,16 @@ export declare class ConfigsGetBody {
38
45
  get urlAuth(): UrlAuthGetBody | undefined;
39
46
  withHttps(https: HttpGetBody): ConfigsGetBody;
40
47
  withSources(sources: Array<SourcesConfig>): ConfigsGetBody;
48
+ withOriginFollow302Status(originFollow302Status: string): ConfigsGetBody;
49
+ set originFollow302Status(originFollow302Status: string | undefined);
50
+ get originFollow302Status(): string | undefined;
51
+ withCacheRules(cacheRules: Array<CacheRules>): ConfigsGetBody;
52
+ set cacheRules(cacheRules: Array<CacheRules> | undefined);
53
+ get cacheRules(): Array<CacheRules> | undefined;
54
+ withIpFilter(ipFilter: IpFilter): ConfigsGetBody;
55
+ set ipFilter(ipFilter: IpFilter | undefined);
56
+ get ipFilter(): IpFilter | undefined;
57
+ withReferer(referer: RefererConfig): ConfigsGetBody;
41
58
  withOriginProtocol(originProtocol: string): ConfigsGetBody;
42
59
  set originProtocol(originProtocol: string | undefined);
43
60
  get originProtocol(): string | undefined;
@@ -54,6 +54,52 @@ var ConfigsGetBody = /** @class */ (function () {
54
54
  this['sources'] = sources;
55
55
  return this;
56
56
  };
57
+ ConfigsGetBody.prototype.withOriginFollow302Status = function (originFollow302Status) {
58
+ this['origin_follow302_status'] = originFollow302Status;
59
+ return this;
60
+ };
61
+ Object.defineProperty(ConfigsGetBody.prototype, "originFollow302Status", {
62
+ get: function () {
63
+ return this['origin_follow302_status'];
64
+ },
65
+ set: function (originFollow302Status) {
66
+ this['origin_follow302_status'] = originFollow302Status;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ ConfigsGetBody.prototype.withCacheRules = function (cacheRules) {
72
+ this['cache_rules'] = cacheRules;
73
+ return this;
74
+ };
75
+ Object.defineProperty(ConfigsGetBody.prototype, "cacheRules", {
76
+ get: function () {
77
+ return this['cache_rules'];
78
+ },
79
+ set: function (cacheRules) {
80
+ this['cache_rules'] = cacheRules;
81
+ },
82
+ enumerable: false,
83
+ configurable: true
84
+ });
85
+ ConfigsGetBody.prototype.withIpFilter = function (ipFilter) {
86
+ this['ip_filter'] = ipFilter;
87
+ return this;
88
+ };
89
+ Object.defineProperty(ConfigsGetBody.prototype, "ipFilter", {
90
+ get: function () {
91
+ return this['ip_filter'];
92
+ },
93
+ set: function (ipFilter) {
94
+ this['ip_filter'] = ipFilter;
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ ConfigsGetBody.prototype.withReferer = function (referer) {
100
+ this['referer'] = referer;
101
+ return this;
102
+ };
57
103
  ConfigsGetBody.prototype.withOriginProtocol = function (originProtocol) {
58
104
  this['origin_protocol'] = originProtocol;
59
105
  return this;
@@ -1,7 +1,11 @@
1
1
  export declare class ForceRedirectConfig {
2
2
  status: string;
3
3
  type?: string;
4
+ private 'redirect_code'?;
4
5
  constructor(status?: any);
5
6
  withStatus(status: string): ForceRedirectConfig;
6
7
  withType(type: string): ForceRedirectConfig;
8
+ withRedirectCode(redirectCode: number): ForceRedirectConfig;
9
+ set redirectCode(redirectCode: number | undefined);
10
+ get redirectCode(): number | undefined;
7
11
  }
@@ -13,6 +13,20 @@ var ForceRedirectConfig = /** @class */ (function () {
13
13
  this['type'] = type;
14
14
  return this;
15
15
  };
16
+ ForceRedirectConfig.prototype.withRedirectCode = function (redirectCode) {
17
+ this['redirect_code'] = redirectCode;
18
+ return this;
19
+ };
20
+ Object.defineProperty(ForceRedirectConfig.prototype, "redirectCode", {
21
+ get: function () {
22
+ return this['redirect_code'];
23
+ },
24
+ set: function (redirectCode) {
25
+ this['redirect_code'] = redirectCode;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
16
30
  return ForceRedirectConfig;
17
31
  }());
18
32
  exports.ForceRedirectConfig = ForceRedirectConfig;
@@ -0,0 +1,7 @@
1
+ export declare class IpFilter {
2
+ type: string;
3
+ value?: string;
4
+ constructor(type?: any);
5
+ withType(type: string): IpFilter;
6
+ withValue(value: string): IpFilter;
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IpFilter = void 0;
4
+ var IpFilter = /** @class */ (function () {
5
+ function IpFilter(type) {
6
+ this['type'] = type;
7
+ }
8
+ IpFilter.prototype.withType = function (type) {
9
+ this['type'] = type;
10
+ return this;
11
+ };
12
+ IpFilter.prototype.withValue = function (value) {
13
+ this['value'] = value;
14
+ return this;
15
+ };
16
+ return IpFilter;
17
+ }());
18
+ exports.IpFilter = IpFilter;
@@ -0,0 +1,11 @@
1
+ export declare class RefererConfig {
2
+ type: string;
3
+ value?: string;
4
+ private 'include_empty'?;
5
+ constructor(type?: any);
6
+ withType(type: string): RefererConfig;
7
+ withValue(value: string): RefererConfig;
8
+ withIncludeEmpty(includeEmpty: boolean): RefererConfig;
9
+ set includeEmpty(includeEmpty: boolean | undefined);
10
+ get includeEmpty(): boolean | undefined;
11
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefererConfig = void 0;
4
+ var RefererConfig = /** @class */ (function () {
5
+ function RefererConfig(type) {
6
+ this['type'] = type;
7
+ }
8
+ RefererConfig.prototype.withType = function (type) {
9
+ this['type'] = type;
10
+ return this;
11
+ };
12
+ RefererConfig.prototype.withValue = function (value) {
13
+ this['value'] = value;
14
+ return this;
15
+ };
16
+ RefererConfig.prototype.withIncludeEmpty = function (includeEmpty) {
17
+ this['include_empty'] = includeEmpty;
18
+ return this;
19
+ };
20
+ Object.defineProperty(RefererConfig.prototype, "includeEmpty", {
21
+ get: function () {
22
+ return this['include_empty'];
23
+ },
24
+ set: function (includeEmpty) {
25
+ this['include_empty'] = includeEmpty;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ return RefererConfig;
31
+ }());
32
+ exports.RefererConfig = RefererConfig;
@@ -5,6 +5,7 @@ export * from './model/BlackWhiteListBody';
5
5
  export * from './model/CacheConfig';
6
6
  export * from './model/CacheConfigRequest';
7
7
  export * from './model/CacheConfigRequestBody';
8
+ export * from './model/CacheRules';
8
9
  export * from './model/CacheUrlParameterFilter';
9
10
  export * from './model/CdnIps';
10
11
  export * from './model/Compress';
@@ -54,6 +55,7 @@ export * from './model/HttpInfoResponseBody';
54
55
  export * from './model/HttpPutBody';
55
56
  export * from './model/HttpResponseHeader';
56
57
  export * from './model/HttpsDetail';
58
+ export * from './model/IpFilter';
57
59
  export * from './model/ListDomainsRequest';
58
60
  export * from './model/ListDomainsResponse';
59
61
  export * from './model/LogObject';
@@ -71,6 +73,7 @@ export * from './model/Quotas';
71
73
  export * from './model/RangeStatusRequest';
72
74
  export * from './model/Referer';
73
75
  export * from './model/RefererBody';
76
+ export * from './model/RefererConfig';
74
77
  export * from './model/RefererRsp';
75
78
  export * from './model/RefreshTaskRequest';
76
79
  export * from './model/RefreshTaskRequestBody';
package/v1/public-api.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./model/BlackWhiteListBody"), exports);
21
21
  __exportStar(require("./model/CacheConfig"), exports);
22
22
  __exportStar(require("./model/CacheConfigRequest"), exports);
23
23
  __exportStar(require("./model/CacheConfigRequestBody"), exports);
24
+ __exportStar(require("./model/CacheRules"), exports);
24
25
  __exportStar(require("./model/CacheUrlParameterFilter"), exports);
25
26
  __exportStar(require("./model/CdnIps"), exports);
26
27
  __exportStar(require("./model/Compress"), exports);
@@ -70,6 +71,7 @@ __exportStar(require("./model/HttpInfoResponseBody"), exports);
70
71
  __exportStar(require("./model/HttpPutBody"), exports);
71
72
  __exportStar(require("./model/HttpResponseHeader"), exports);
72
73
  __exportStar(require("./model/HttpsDetail"), exports);
74
+ __exportStar(require("./model/IpFilter"), exports);
73
75
  __exportStar(require("./model/ListDomainsRequest"), exports);
74
76
  __exportStar(require("./model/ListDomainsResponse"), exports);
75
77
  __exportStar(require("./model/LogObject"), exports);
@@ -87,6 +89,7 @@ __exportStar(require("./model/Quotas"), exports);
87
89
  __exportStar(require("./model/RangeStatusRequest"), exports);
88
90
  __exportStar(require("./model/Referer"), exports);
89
91
  __exportStar(require("./model/RefererBody"), exports);
92
+ __exportStar(require("./model/RefererConfig"), exports);
90
93
  __exportStar(require("./model/RefererRsp"), exports);
91
94
  __exportStar(require("./model/RefreshTaskRequest"), exports);
92
95
  __exportStar(require("./model/RefreshTaskRequestBody"), exports);
package/v2/CdnClient.d.ts CHANGED
@@ -16,6 +16,8 @@ import { ShowChargeModesRequest } from './model/ShowChargeModesRequest';
16
16
  import { ShowChargeModesResponse } from './model/ShowChargeModesResponse';
17
17
  import { ShowDomainDetailByNameRequest } from './model/ShowDomainDetailByNameRequest';
18
18
  import { ShowDomainDetailByNameResponse } from './model/ShowDomainDetailByNameResponse';
19
+ import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
20
+ import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
19
21
  import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
20
22
  import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
21
23
  import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
@@ -24,6 +26,8 @@ import { ShowTopDomainNamesRequest } from './model/ShowTopDomainNamesRequest';
24
26
  import { ShowTopDomainNamesResponse } from './model/ShowTopDomainNamesResponse';
25
27
  import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
26
28
  import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
29
+ import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
30
+ import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
27
31
  export declare class CdnClient {
28
32
  static newBuilder(): ClientBuilder<CdnClient>;
29
33
  private hcClient;
@@ -197,6 +201,18 @@ export declare class CdnClient {
197
201
  * @throws {RequiredError}
198
202
  */
199
203
  showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): Promise<ShowDomainDetailByNameResponse>;
204
+ /**
205
+ * 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
206
+ *
207
+ * Please refer to HUAWEI cloud API Explorer for details.
208
+ *
209
+ * @summary 查询域名配置接口
210
+ * @param {string} domainName 加速域名
211
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\&quot;all\&quot;表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse>;
200
216
  /**
201
217
  * - 支持查询90天内的数据。
202
218
  *
@@ -317,6 +333,19 @@ export declare class CdnClient {
317
333
  * @throws {RequiredError}
318
334
  */
319
335
  showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse>;
336
+ /**
337
+ * 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
338
+ *
339
+ * Please refer to HUAWEI cloud API Explorer for details.
340
+ *
341
+ * @summary 修改域名全量配置接口
342
+ * @param {string} domainName 加速域名
343
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\&quot;all\&quot;代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
344
+ * @param {ModifyDomainConfigRequestBody} [modifyDomainConfigRequestBody] 域名配置
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse>;
320
349
  }
321
350
  export declare const ParamCreater: () => {
322
351
  /**
@@ -479,6 +508,20 @@ export declare const ParamCreater: () => {
479
508
  headers: {};
480
509
  data: {};
481
510
  };
511
+ /**
512
+ * 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
513
+ *
514
+ * Please refer to HUAWEI cloud API Explorer for details.
515
+ */
516
+ showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): {
517
+ method: string;
518
+ url: string;
519
+ contentType: string;
520
+ queryParams: {};
521
+ pathParams: {};
522
+ headers: {};
523
+ data: {};
524
+ };
482
525
  /**
483
526
  * - 支持查询90天内的数据。
484
527
  *
@@ -583,6 +626,20 @@ export declare const ParamCreater: () => {
583
626
  headers: {};
584
627
  data: {};
585
628
  };
629
+ /**
630
+ * 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
631
+ *
632
+ * Please refer to HUAWEI cloud API Explorer for details.
633
+ */
634
+ updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): {
635
+ method: string;
636
+ url: string;
637
+ contentType: string;
638
+ queryParams: {};
639
+ pathParams: {};
640
+ headers: {};
641
+ data: {};
642
+ };
586
643
  };
587
644
  /**
588
645
  *