Skip to content

Commit e974859

Browse files
committed
Update API CreateCloudGtmInstanceConfig: add request parameters ChargeType.
1 parent efe5f3c commit e974859

File tree

364 files changed

+6222
-1866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+6222
-1866
lines changed

ChangeLog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2025-10-14 Version: v4.6.1
2+
- Update API CreateCloudGtmInstanceConfig: add request parameters ChargeType.
3+
- Update API CreateCloudGtmInstanceConfig: add response parameters Body.InstanceId.
4+
- Update API ListCloudGtmInstances: add request parameters ChargeType.
5+
- Update API ListCloudGtmInstances: add response parameters Body.Instances.$.ChargeType.
6+
- Update API SearchCloudGtmInstances: add request parameters ChargeType.
7+
- Update API SearchCloudGtmInstances: add response parameters Body.Instances.$.ChargeType.
8+
9+
110
2025-09-09 Version: v4.6.0
211
- Support API AddRecursionRecord.
312
- Support API AddRecursionZone.

client/add_custom_line_request_model.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,16 @@ func (s *AddCustomLineRequest) SetLineName(v string) *AddCustomLineRequest {
9393
}
9494

9595
func (s *AddCustomLineRequest) Validate() error {
96-
return dara.Validate(s)
96+
if s.IpSegment != nil {
97+
for _, item := range s.IpSegment {
98+
if item != nil {
99+
if err := item.Validate(); err != nil {
100+
return err
101+
}
102+
}
103+
}
104+
}
105+
return nil
97106
}
98107

99108
type AddCustomLineRequestIpSegment struct {

client/add_custom_line_response_model.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,10 @@ func (s *AddCustomLineResponse) SetBody(v *AddCustomLineResponseBody) *AddCustom
5959
}
6060

6161
func (s *AddCustomLineResponse) Validate() error {
62-
return dara.Validate(s)
62+
if s.Body != nil {
63+
if err := s.Body.Validate(); err != nil {
64+
return err
65+
}
66+
}
67+
return nil
6368
}

client/add_dns_cache_domain_request_model.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,16 @@ func (s *AddDnsCacheDomainRequest) SetSourceProtocol(v string) *AddDnsCacheDomai
190190
}
191191

192192
func (s *AddDnsCacheDomainRequest) Validate() error {
193-
return dara.Validate(s)
193+
if s.SourceDnsServer != nil {
194+
for _, item := range s.SourceDnsServer {
195+
if item != nil {
196+
if err := item.Validate(); err != nil {
197+
return err
198+
}
199+
}
200+
}
201+
}
202+
return nil
194203
}
195204

196205
type AddDnsCacheDomainRequestSourceDnsServer struct {

client/add_dns_cache_domain_response_model.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,10 @@ func (s *AddDnsCacheDomainResponse) SetBody(v *AddDnsCacheDomainResponseBody) *A
5959
}
6060

6161
func (s *AddDnsCacheDomainResponse) Validate() error {
62-
return dara.Validate(s)
62+
if s.Body != nil {
63+
if err := s.Body.Validate(); err != nil {
64+
return err
65+
}
66+
}
67+
return nil
6368
}

client/add_dns_gtm_access_strategy_request_model.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,25 @@ func (s *AddDnsGtmAccessStrategyRequest) SetStrategyName(v string) *AddDnsGtmAcc
348348
}
349349

350350
func (s *AddDnsGtmAccessStrategyRequest) Validate() error {
351-
return dara.Validate(s)
351+
if s.DefaultAddrPool != nil {
352+
for _, item := range s.DefaultAddrPool {
353+
if item != nil {
354+
if err := item.Validate(); err != nil {
355+
return err
356+
}
357+
}
358+
}
359+
}
360+
if s.FailoverAddrPool != nil {
361+
for _, item := range s.FailoverAddrPool {
362+
if item != nil {
363+
if err := item.Validate(); err != nil {
364+
return err
365+
}
366+
}
367+
}
368+
}
369+
return nil
352370
}
353371

354372
type AddDnsGtmAccessStrategyRequestDefaultAddrPool struct {

client/add_dns_gtm_access_strategy_response_model.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,10 @@ func (s *AddDnsGtmAccessStrategyResponse) SetBody(v *AddDnsGtmAccessStrategyResp
5959
}
6060

6161
func (s *AddDnsGtmAccessStrategyResponse) Validate() error {
62-
return dara.Validate(s)
62+
if s.Body != nil {
63+
if err := s.Body.Validate(); err != nil {
64+
return err
65+
}
66+
}
67+
return nil
6368
}

client/add_dns_gtm_address_pool_request_model.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,25 @@ func (s *AddDnsGtmAddressPoolRequest) SetType(v string) *AddDnsGtmAddressPoolReq
318318
}
319319

320320
func (s *AddDnsGtmAddressPoolRequest) Validate() error {
321-
return dara.Validate(s)
321+
if s.Addr != nil {
322+
for _, item := range s.Addr {
323+
if item != nil {
324+
if err := item.Validate(); err != nil {
325+
return err
326+
}
327+
}
328+
}
329+
}
330+
if s.IspCityNode != nil {
331+
for _, item := range s.IspCityNode {
332+
if item != nil {
333+
if err := item.Validate(); err != nil {
334+
return err
335+
}
336+
}
337+
}
338+
}
339+
return nil
322340
}
323341

324342
type AddDnsGtmAddressPoolRequestAddr struct {

client/add_dns_gtm_address_pool_response_model.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,10 @@ func (s *AddDnsGtmAddressPoolResponse) SetBody(v *AddDnsGtmAddressPoolResponseBo
5959
}
6060

6161
func (s *AddDnsGtmAddressPoolResponse) Validate() error {
62-
return dara.Validate(s)
62+
if s.Body != nil {
63+
if err := s.Body.Validate(); err != nil {
64+
return err
65+
}
66+
}
67+
return nil
6368
}

client/add_dns_gtm_monitor_request_model.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,16 @@ func (s *AddDnsGtmMonitorRequest) SetTimeout(v int32) *AddDnsGtmMonitorRequest {
227227
}
228228

229229
func (s *AddDnsGtmMonitorRequest) Validate() error {
230-
return dara.Validate(s)
230+
if s.IspCityNode != nil {
231+
for _, item := range s.IspCityNode {
232+
if item != nil {
233+
if err := item.Validate(); err != nil {
234+
return err
235+
}
236+
}
237+
}
238+
}
239+
return nil
231240
}
232241

233242
type AddDnsGtmMonitorRequestIspCityNode struct {

0 commit comments

Comments
 (0)