Skip to content

Commit 4ec1978

Browse files
authored
fix(vpc-gw): field dhcp in doc & SDK for gw network create (#1570)
1 parent 0c8a21c commit 4ec1978

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/vpcgw/v1/vpcgw_sdk.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,13 @@ type CreateGatewayNetworkRequest struct {
11091109
// EnableMasquerade: whether to enable masquerade on this network.
11101110
EnableMasquerade bool `json:"enable_masquerade"`
11111111
// DHCPID: existing configuration.
1112-
// Precisely one of Address, DHCPID must be set.
1112+
// Precisely one of Address, DHCP, DHCPID must be set.
11131113
DHCPID *string `json:"dhcp_id,omitempty"`
1114+
// DHCP: new DHCP configuration.
1115+
// Precisely one of Address, DHCP, DHCPID must be set.
1116+
DHCP *CreateDHCPRequest `json:"dhcp,omitempty"`
11141117
// Address: static IP address in CIDR format to to use without DHCP.
1115-
// Precisely one of Address, DHCPID must be set.
1118+
// Precisely one of Address, DHCP, DHCPID must be set.
11161119
Address *scw.IPNet `json:"address,omitempty"`
11171120
// EnableDHCP: whether to enable DHCP on this Private Network. Defaults to `true` if either `dhcp_id` or `dhcp` short: are present. If set to `true`, requires that either `dhcp_id` or `dhcp` to be present.
11181121
EnableDHCP *bool `json:"enable_dhcp"`

0 commit comments

Comments
 (0)