Skip to content

Commit 81ebe8a

Browse files
committed
Update API CreatePdnsUdpIpSegment: add param IpToken.
1 parent 4265076 commit 81ebe8a

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-08-01 Version: v4.5.3
2+
- Update API CreatePdnsUdpIpSegment: add param IpToken.
3+
- Update API ValidatePdnsUdpIpSegment: add param IpToken.
4+
5+
16
2024-07-30 Version: v4.5.2
27
- Update API DescribePdnsUdpIpSegments: update response param.
38

client/client.go

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -785,15 +785,15 @@ type AddDnsGtmAddressPoolRequest struct {
785785
LbaStrategy *string `json:"LbaStrategy,omitempty" xml:"LbaStrategy,omitempty"`
786786
// The extended information. The required parameters vary based on the value of ProtocolType.
787787
//
788-
// - When ProtocolType is set to HTTP or HTTPS:
788+
// - HTTP or HTTPS
789789
//
790790
// - port: the port that you want to check
791791
//
792792
// - host: the host settings
793793
//
794794
// - path: the URL path
795795
//
796-
// - code: the return code. The health check result is deemed abnormal if the returned value is greater than the specified value.
796+
// - code: the response code. The health check result is deemed abnormal if the returned value is greater than the specified value. Values: 400, 500.
797797
//
798798
// - failureRate: the failure rate
799799
//
@@ -809,7 +809,7 @@ type AddDnsGtmAddressPoolRequest struct {
809809
//
810810
// - IPV6
811811
//
812-
// - When ProtocolType is set to PING:
812+
// - PING
813813
//
814814
// - failureRate: the failure rate
815815
//
@@ -823,7 +823,7 @@ type AddDnsGtmAddressPoolRequest struct {
823823
//
824824
// - IPV6
825825
//
826-
// - When ProtocolType is set to TCP:
826+
// - TCP
827827
//
828828
// - port: the port that you want to check
829829
//
@@ -977,7 +977,7 @@ type AddDnsGtmAddressPoolRequestAddr struct {
977977
Addr *string `json:"Addr,omitempty" xml:"Addr,omitempty"`
978978
// The information about the source region of the address. The value of this parameter is a JSON string. Valid values:
979979
//
980-
// - LineCode: the line code of the source region for the address
980+
// - lineCode: the line code of the source region for the address
981981
//
982982
// - lineCodeRectifyType: the rectification type of the line code. Default value: AUTO. Valid values:
983983
//
@@ -993,7 +993,7 @@ type AddDnsGtmAddressPoolRequestAddr struct {
993993
//
994994
// default
995995
AttributeInfo *string `json:"AttributeInfo,omitempty" xml:"AttributeInfo,omitempty"`
996-
// The weight of the address pool.
996+
// The weight of the address.
997997
//
998998
// example:
999999
//
@@ -1013,7 +1013,7 @@ type AddDnsGtmAddressPoolRequestAddr struct {
10131013
//
10141014
// online
10151015
Mode *string `json:"Mode,omitempty" xml:"Mode,omitempty"`
1016-
// The remarks.
1016+
// The description of the address pool.
10171017
//
10181018
// example:
10191019
//
@@ -1100,7 +1100,7 @@ type AddDnsGtmAddressPoolResponseBody struct {
11001100
//
11011101
// testpool1
11021102
AddrPoolId *string `json:"AddrPoolId,omitempty" xml:"AddrPoolId,omitempty"`
1103-
// The ID of the health check task.
1103+
// The ID of the health check configuration.
11041104
//
11051105
// example:
11061106
//
@@ -4459,9 +4459,10 @@ func (s *CreatePdnsAppKeyResponse) SetBody(v *CreatePdnsAppKeyResponseBody) *Cre
44594459
}
44604460

44614461
type CreatePdnsUdpIpSegmentRequest struct {
4462-
Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"`
4463-
Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
4464-
Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
4462+
Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"`
4463+
IpToken *string `json:"IpToken,omitempty" xml:"IpToken,omitempty"`
4464+
Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
4465+
Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
44654466
}
44664467

44674468
func (s CreatePdnsUdpIpSegmentRequest) String() string {
@@ -4477,6 +4478,11 @@ func (s *CreatePdnsUdpIpSegmentRequest) SetIp(v string) *CreatePdnsUdpIpSegmentR
44774478
return s
44784479
}
44794480

4481+
func (s *CreatePdnsUdpIpSegmentRequest) SetIpToken(v string) *CreatePdnsUdpIpSegmentRequest {
4482+
s.IpToken = &v
4483+
return s
4484+
}
4485+
44804486
func (s *CreatePdnsUdpIpSegmentRequest) SetLang(v string) *CreatePdnsUdpIpSegmentRequest {
44814487
s.Lang = &v
44824488
return s
@@ -46247,8 +46253,9 @@ func (s *ValidateDnsGtmCnameRrCanUseResponse) SetBody(v *ValidateDnsGtmCnameRrCa
4624746253
}
4624846254

4624946255
type ValidatePdnsUdpIpSegmentRequest struct {
46250-
Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"`
46251-
Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
46256+
Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"`
46257+
IpToken *string `json:"IpToken,omitempty" xml:"IpToken,omitempty"`
46258+
Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
4625246259
}
4625346260

4625446261
func (s ValidatePdnsUdpIpSegmentRequest) String() string {
@@ -46264,6 +46271,11 @@ func (s *ValidatePdnsUdpIpSegmentRequest) SetIp(v string) *ValidatePdnsUdpIpSegm
4626446271
return s
4626546272
}
4626646273

46274+
func (s *ValidatePdnsUdpIpSegmentRequest) SetIpToken(v string) *ValidatePdnsUdpIpSegmentRequest {
46275+
s.IpToken = &v
46276+
return s
46277+
}
46278+
4626746279
func (s *ValidatePdnsUdpIpSegmentRequest) SetLang(v string) *ValidatePdnsUdpIpSegmentRequest {
4626846280
s.Lang = &v
4626946281
return s
@@ -48245,6 +48257,10 @@ func (client *Client) CreatePdnsUdpIpSegmentWithOptions(request *CreatePdnsUdpIp
4824548257
query["Ip"] = request.Ip
4824648258
}
4824748259

48260+
if !tea.BoolValue(util.IsUnset(request.IpToken)) {
48261+
query["IpToken"] = request.IpToken
48262+
}
48263+
4824848264
if !tea.BoolValue(util.IsUnset(request.Lang)) {
4824948265
query["Lang"] = request.Lang
4825048266
}
@@ -61724,6 +61740,10 @@ func (client *Client) ValidatePdnsUdpIpSegmentWithOptions(request *ValidatePdnsU
6172461740
query["Ip"] = request.Ip
6172561741
}
6172661742

61743+
if !tea.BoolValue(util.IsUnset(request.IpToken)) {
61744+
query["IpToken"] = request.IpToken
61745+
}
61746+
6172761747
if !tea.BoolValue(util.IsUnset(request.Lang)) {
6172861748
query["Lang"] = request.Lang
6172961749
}

0 commit comments

Comments
 (0)