Skip to content

Commit 60ba134

Browse files
committed
Update API CreateCacheRule: add request parameters PostBodyCacheKey.
1 parent 48d34b0 commit 60ba134

7 files changed

+225
-0
lines changed

ChangeLog.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2025-12-03 Version: v2.40.2
2+
- Update API CreateCacheRule: add request parameters PostBodyCacheKey.
3+
- Update API CreateCacheRule: add request parameters PostBodySizeLimit.
4+
- Update API CreateCacheRule: add request parameters PostCache.
5+
- Update API GetCacheRule: add response parameters Body.PostBodyCacheKey.
6+
- Update API GetCacheRule: add response parameters Body.PostBodySizeLimit.
7+
- Update API GetCacheRule: add response parameters Body.PostCache.
8+
- Update API ListCacheRules: add response parameters Body.Configs.$.PostBodyCacheKey.
9+
- Update API ListCacheRules: add response parameters Body.Configs.$.PostBodySizeLimit.
10+
- Update API ListCacheRules: add response parameters Body.Configs.$.PostCache.
11+
- Update API UpdateCacheRule: add request parameters PostBodyCacheKey.
12+
- Update API UpdateCacheRule: add request parameters PostBodySizeLimit.
13+
- Update API UpdateCacheRule: add request parameters PostCache.
14+
15+
116
2025-11-07 Version: v2.40.1
217
- Update API CreateOriginPool: add request parameters Origins.$.IpVersionPolicy.
318
- Update API GetOriginPool: add response parameters Body.Origins.$.IpVersionPolicy.

client/client.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,18 @@ func (client *Client) CreateCacheRuleWithOptions(request *CreateCacheRuleRequest
19331933
query["IncludeHeader"] = request.IncludeHeader
19341934
}
19351935

1936+
if !dara.IsNil(request.PostBodyCacheKey) {
1937+
query["PostBodyCacheKey"] = request.PostBodyCacheKey
1938+
}
1939+
1940+
if !dara.IsNil(request.PostBodySizeLimit) {
1941+
query["PostBodySizeLimit"] = request.PostBodySizeLimit
1942+
}
1943+
1944+
if !dara.IsNil(request.PostCache) {
1945+
query["PostCache"] = request.PostCache
1946+
}
1947+
19361948
if !dara.IsNil(request.QueryString) {
19371949
query["QueryString"] = request.QueryString
19381950
}
@@ -21869,6 +21881,18 @@ func (client *Client) UpdateCacheRuleWithOptions(request *UpdateCacheRuleRequest
2186921881
query["IncludeHeader"] = request.IncludeHeader
2187021882
}
2187121883

21884+
if !dara.IsNil(request.PostBodyCacheKey) {
21885+
query["PostBodyCacheKey"] = request.PostBodyCacheKey
21886+
}
21887+
21888+
if !dara.IsNil(request.PostBodySizeLimit) {
21889+
query["PostBodySizeLimit"] = request.PostBodySizeLimit
21890+
}
21891+
21892+
if !dara.IsNil(request.PostCache) {
21893+
query["PostCache"] = request.PostCache
21894+
}
21895+
2187221896
if !dara.IsNil(request.QueryString) {
2187321897
query["QueryString"] = request.QueryString
2187421898
}

client/client_context_func.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,18 @@ func (client *Client) CreateCacheRuleWithContext(ctx context.Context, request *C
10901090
query["IncludeHeader"] = request.IncludeHeader
10911091
}
10921092

1093+
if !dara.IsNil(request.PostBodyCacheKey) {
1094+
query["PostBodyCacheKey"] = request.PostBodyCacheKey
1095+
}
1096+
1097+
if !dara.IsNil(request.PostBodySizeLimit) {
1098+
query["PostBodySizeLimit"] = request.PostBodySizeLimit
1099+
}
1100+
1101+
if !dara.IsNil(request.PostCache) {
1102+
query["PostCache"] = request.PostCache
1103+
}
1104+
10931105
if !dara.IsNil(request.QueryString) {
10941106
query["QueryString"] = request.QueryString
10951107
}
@@ -15328,6 +15340,18 @@ func (client *Client) UpdateCacheRuleWithContext(ctx context.Context, request *U
1532815340
query["IncludeHeader"] = request.IncludeHeader
1532915341
}
1533015342

15343+
if !dara.IsNil(request.PostBodyCacheKey) {
15344+
query["PostBodyCacheKey"] = request.PostBodyCacheKey
15345+
}
15346+
15347+
if !dara.IsNil(request.PostBodySizeLimit) {
15348+
query["PostBodySizeLimit"] = request.PostBodySizeLimit
15349+
}
15350+
15351+
if !dara.IsNil(request.PostCache) {
15352+
query["PostCache"] = request.PostCache
15353+
}
15354+
1533115355
if !dara.IsNil(request.QueryString) {
1533215356
query["QueryString"] = request.QueryString
1533315357
}

client/create_cache_rule_request_model.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ type iCreateCacheRuleRequest interface {
3535
GetIncludeCookie() *string
3636
SetIncludeHeader(v string) *CreateCacheRuleRequest
3737
GetIncludeHeader() *string
38+
SetPostBodyCacheKey(v string) *CreateCacheRuleRequest
39+
GetPostBodyCacheKey() *string
40+
SetPostBodySizeLimit(v string) *CreateCacheRuleRequest
41+
GetPostBodySizeLimit() *string
42+
SetPostCache(v string) *CreateCacheRuleRequest
43+
GetPostCache() *string
3844
SetQueryString(v string) *CreateCacheRuleRequest
3945
GetQueryString() *string
4046
SetQueryStringMode(v string) *CreateCacheRuleRequest
@@ -168,6 +174,15 @@ type CreateCacheRuleRequest struct {
168174
//
169175
// example
170176
IncludeHeader *string `json:"IncludeHeader,omitempty" xml:"IncludeHeader,omitempty"`
177+
// example:
178+
//
179+
// ignore
180+
PostBodyCacheKey *string `json:"PostBodyCacheKey,omitempty" xml:"PostBodyCacheKey,omitempty"`
181+
PostBodySizeLimit *string `json:"PostBodySizeLimit,omitempty" xml:"PostBodySizeLimit,omitempty"`
182+
// example:
183+
//
184+
// on
185+
PostCache *string `json:"PostCache,omitempty" xml:"PostCache,omitempty"`
171186
// Query strings to be reserved or excluded. Multiple values are supported, separated by spaces.
172187
//
173188
// example:
@@ -341,6 +356,18 @@ func (s *CreateCacheRuleRequest) GetIncludeHeader() *string {
341356
return s.IncludeHeader
342357
}
343358

359+
func (s *CreateCacheRuleRequest) GetPostBodyCacheKey() *string {
360+
return s.PostBodyCacheKey
361+
}
362+
363+
func (s *CreateCacheRuleRequest) GetPostBodySizeLimit() *string {
364+
return s.PostBodySizeLimit
365+
}
366+
367+
func (s *CreateCacheRuleRequest) GetPostCache() *string {
368+
return s.PostCache
369+
}
370+
344371
func (s *CreateCacheRuleRequest) GetQueryString() *string {
345372
return s.QueryString
346373
}
@@ -458,6 +485,21 @@ func (s *CreateCacheRuleRequest) SetIncludeHeader(v string) *CreateCacheRuleRequ
458485
return s
459486
}
460487

488+
func (s *CreateCacheRuleRequest) SetPostBodyCacheKey(v string) *CreateCacheRuleRequest {
489+
s.PostBodyCacheKey = &v
490+
return s
491+
}
492+
493+
func (s *CreateCacheRuleRequest) SetPostBodySizeLimit(v string) *CreateCacheRuleRequest {
494+
s.PostBodySizeLimit = &v
495+
return s
496+
}
497+
498+
func (s *CreateCacheRuleRequest) SetPostCache(v string) *CreateCacheRuleRequest {
499+
s.PostCache = &v
500+
return s
501+
}
502+
461503
func (s *CreateCacheRuleRequest) SetQueryString(v string) *CreateCacheRuleRequest {
462504
s.QueryString = &v
463505
return s

client/get_cache_rule_response_body_model.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ type iGetCacheRuleResponseBody interface {
3939
GetIncludeCookie() *string
4040
SetIncludeHeader(v string) *GetCacheRuleResponseBody
4141
GetIncludeHeader() *string
42+
SetPostBodyCacheKey(v string) *GetCacheRuleResponseBody
43+
GetPostBodyCacheKey() *string
44+
SetPostBodySizeLimit(v string) *GetCacheRuleResponseBody
45+
GetPostBodySizeLimit() *string
46+
SetPostCache(v string) *GetCacheRuleResponseBody
47+
GetPostCache() *string
4248
SetQueryString(v string) *GetCacheRuleResponseBody
4349
GetQueryString() *string
4450
SetQueryStringMode(v string) *GetCacheRuleResponseBody
@@ -188,6 +194,15 @@ type GetCacheRuleResponseBody struct {
188194
//
189195
// example
190196
IncludeHeader *string `json:"IncludeHeader,omitempty" xml:"IncludeHeader,omitempty"`
197+
// example:
198+
//
199+
// ignore
200+
PostBodyCacheKey *string `json:"PostBodyCacheKey,omitempty" xml:"PostBodyCacheKey,omitempty"`
201+
PostBodySizeLimit *string `json:"PostBodySizeLimit,omitempty" xml:"PostBodySizeLimit,omitempty"`
202+
// example:
203+
//
204+
// on
205+
PostCache *string `json:"PostCache,omitempty" xml:"PostCache,omitempty"`
191206
// The query strings to be retained or deleted, supporting multiple values separated by spaces.
192207
//
193208
// example:
@@ -372,6 +387,18 @@ func (s *GetCacheRuleResponseBody) GetIncludeHeader() *string {
372387
return s.IncludeHeader
373388
}
374389

390+
func (s *GetCacheRuleResponseBody) GetPostBodyCacheKey() *string {
391+
return s.PostBodyCacheKey
392+
}
393+
394+
func (s *GetCacheRuleResponseBody) GetPostBodySizeLimit() *string {
395+
return s.PostBodySizeLimit
396+
}
397+
398+
func (s *GetCacheRuleResponseBody) GetPostCache() *string {
399+
return s.PostCache
400+
}
401+
375402
func (s *GetCacheRuleResponseBody) GetQueryString() *string {
376403
return s.QueryString
377404
}
@@ -499,6 +526,21 @@ func (s *GetCacheRuleResponseBody) SetIncludeHeader(v string) *GetCacheRuleRespo
499526
return s
500527
}
501528

529+
func (s *GetCacheRuleResponseBody) SetPostBodyCacheKey(v string) *GetCacheRuleResponseBody {
530+
s.PostBodyCacheKey = &v
531+
return s
532+
}
533+
534+
func (s *GetCacheRuleResponseBody) SetPostBodySizeLimit(v string) *GetCacheRuleResponseBody {
535+
s.PostBodySizeLimit = &v
536+
return s
537+
}
538+
539+
func (s *GetCacheRuleResponseBody) SetPostCache(v string) *GetCacheRuleResponseBody {
540+
s.PostCache = &v
541+
return s
542+
}
543+
502544
func (s *GetCacheRuleResponseBody) SetQueryString(v string) *GetCacheRuleResponseBody {
503545
s.QueryString = &v
504546
return s

client/list_cache_rules_response_body_model.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ type ListCacheRulesResponseBodyConfigs struct {
254254
//
255255
// example
256256
IncludeHeader *string `json:"IncludeHeader,omitempty" xml:"IncludeHeader,omitempty"`
257+
// example:
258+
//
259+
// ignore
260+
PostBodyCacheKey *string `json:"PostBodyCacheKey,omitempty" xml:"PostBodyCacheKey,omitempty"`
261+
PostBodySizeLimit *string `json:"PostBodySizeLimit,omitempty" xml:"PostBodySizeLimit,omitempty"`
262+
// example:
263+
//
264+
// on
265+
PostCache *string `json:"PostCache,omitempty" xml:"PostCache,omitempty"`
257266
// The query strings to be reserved or excluded. Multiple values are supported, separated by spaces.
258267
//
259268
// example:
@@ -432,6 +441,18 @@ func (s *ListCacheRulesResponseBodyConfigs) GetIncludeHeader() *string {
432441
return s.IncludeHeader
433442
}
434443

444+
func (s *ListCacheRulesResponseBodyConfigs) GetPostBodyCacheKey() *string {
445+
return s.PostBodyCacheKey
446+
}
447+
448+
func (s *ListCacheRulesResponseBodyConfigs) GetPostBodySizeLimit() *string {
449+
return s.PostBodySizeLimit
450+
}
451+
452+
func (s *ListCacheRulesResponseBodyConfigs) GetPostCache() *string {
453+
return s.PostCache
454+
}
455+
435456
func (s *ListCacheRulesResponseBodyConfigs) GetQueryString() *string {
436457
return s.QueryString
437458
}
@@ -555,6 +576,21 @@ func (s *ListCacheRulesResponseBodyConfigs) SetIncludeHeader(v string) *ListCach
555576
return s
556577
}
557578

579+
func (s *ListCacheRulesResponseBodyConfigs) SetPostBodyCacheKey(v string) *ListCacheRulesResponseBodyConfigs {
580+
s.PostBodyCacheKey = &v
581+
return s
582+
}
583+
584+
func (s *ListCacheRulesResponseBodyConfigs) SetPostBodySizeLimit(v string) *ListCacheRulesResponseBodyConfigs {
585+
s.PostBodySizeLimit = &v
586+
return s
587+
}
588+
589+
func (s *ListCacheRulesResponseBodyConfigs) SetPostCache(v string) *ListCacheRulesResponseBodyConfigs {
590+
s.PostCache = &v
591+
return s
592+
}
593+
558594
func (s *ListCacheRulesResponseBodyConfigs) SetQueryString(v string) *ListCacheRulesResponseBodyConfigs {
559595
s.QueryString = &v
560596
return s

client/update_cache_rule_request_model.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ type iUpdateCacheRuleRequest interface {
3737
GetIncludeCookie() *string
3838
SetIncludeHeader(v string) *UpdateCacheRuleRequest
3939
GetIncludeHeader() *string
40+
SetPostBodyCacheKey(v string) *UpdateCacheRuleRequest
41+
GetPostBodyCacheKey() *string
42+
SetPostBodySizeLimit(v string) *UpdateCacheRuleRequest
43+
GetPostBodySizeLimit() *string
44+
SetPostCache(v string) *UpdateCacheRuleRequest
45+
GetPostCache() *string
4046
SetQueryString(v string) *UpdateCacheRuleRequest
4147
GetQueryString() *string
4248
SetQueryStringMode(v string) *UpdateCacheRuleRequest
@@ -176,6 +182,15 @@ type UpdateCacheRuleRequest struct {
176182
//
177183
// headername
178184
IncludeHeader *string `json:"IncludeHeader,omitempty" xml:"IncludeHeader,omitempty"`
185+
// example:
186+
//
187+
// ignore
188+
PostBodyCacheKey *string `json:"PostBodyCacheKey,omitempty" xml:"PostBodyCacheKey,omitempty"`
189+
PostBodySizeLimit *string `json:"PostBodySizeLimit,omitempty" xml:"PostBodySizeLimit,omitempty"`
190+
// example:
191+
//
192+
// on
193+
PostCache *string `json:"PostCache,omitempty" xml:"PostCache,omitempty"`
179194
// Query strings to be retained or excluded, supporting multiple values separated by spaces.
180195
//
181196
// example:
@@ -347,6 +362,18 @@ func (s *UpdateCacheRuleRequest) GetIncludeHeader() *string {
347362
return s.IncludeHeader
348363
}
349364

365+
func (s *UpdateCacheRuleRequest) GetPostBodyCacheKey() *string {
366+
return s.PostBodyCacheKey
367+
}
368+
369+
func (s *UpdateCacheRuleRequest) GetPostBodySizeLimit() *string {
370+
return s.PostBodySizeLimit
371+
}
372+
373+
func (s *UpdateCacheRuleRequest) GetPostCache() *string {
374+
return s.PostCache
375+
}
376+
350377
func (s *UpdateCacheRuleRequest) GetQueryString() *string {
351378
return s.QueryString
352379
}
@@ -465,6 +492,21 @@ func (s *UpdateCacheRuleRequest) SetIncludeHeader(v string) *UpdateCacheRuleRequ
465492
return s
466493
}
467494

495+
func (s *UpdateCacheRuleRequest) SetPostBodyCacheKey(v string) *UpdateCacheRuleRequest {
496+
s.PostBodyCacheKey = &v
497+
return s
498+
}
499+
500+
func (s *UpdateCacheRuleRequest) SetPostBodySizeLimit(v string) *UpdateCacheRuleRequest {
501+
s.PostBodySizeLimit = &v
502+
return s
503+
}
504+
505+
func (s *UpdateCacheRuleRequest) SetPostCache(v string) *UpdateCacheRuleRequest {
506+
s.PostCache = &v
507+
return s
508+
}
509+
468510
func (s *UpdateCacheRuleRequest) SetQueryString(v string) *UpdateCacheRuleRequest {
469511
s.QueryString = &v
470512
return s

0 commit comments

Comments
 (0)