You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/vpcgw/v1/vpcgw_sdk.go
+22-9Lines changed: 22 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -556,6 +556,12 @@ type IP struct {
556
556
Zone scw.Zone`json:"zone"`
557
557
}
558
558
559
+
// IpamConfig: ipam config.
560
+
typeIpamConfigstruct {
561
+
// PushDefaultRoute: defines whether the default route is enabled on that Gateway Network.
562
+
PushDefaultRoutebool`json:"push_default_route"`
563
+
}
564
+
559
565
// ListDHCPEntriesResponse: list dhcp entries response.
560
566
typeListDHCPEntriesResponsestruct {
561
567
// DHCPEntries: DHCP entries in this page.
@@ -1118,17 +1124,21 @@ type CreateGatewayNetworkRequest struct {
1118
1124
PrivateNetworkIDstring`json:"private_network_id"`
1119
1125
// EnableMasquerade: defines whether to enable masquerade (dynamic NAT) on this network.
1120
1126
EnableMasqueradebool`json:"enable_masquerade"`
1127
+
// EnableDHCP: defines whether to enable DHCP on this Private Network. Defaults to `true` if either `dhcp_id` or `dhcp` are present. If set to `true`, either `dhcp_id` or `dhcp` must be present.
1128
+
EnableDHCP*bool`json:"enable_dhcp"`
1121
1129
// DHCPID: ID of an existing DHCP configuration object to use for this GatewayNetwork.
1122
-
// Precisely one of Address, DHCP, DHCPID must be set.
1130
+
// Precisely one of Address, DHCP, DHCPID, IpamConfig must be set.
1123
1131
DHCPID*string`json:"dhcp_id,omitempty"`
1124
1132
// DHCP: new DHCP configuration object to use for this GatewayNetwork.
1125
-
// Precisely one of Address, DHCP, DHCPID must be set.
1133
+
// Precisely one of Address, DHCP, DHCPID, IpamConfig must be set.
1126
1134
DHCP*CreateDHCPRequest`json:"dhcp,omitempty"`
1127
1135
// Address: static IP address in CIDR format to to use without DHCP.
1128
-
// Precisely one of Address, DHCP, DHCPID must be set.
1136
+
// Precisely one of Address, DHCP, DHCPID, IpamConfig must be set.
1129
1137
Address*scw.IPNet`json:"address,omitempty"`
1130
-
// EnableDHCP: defines whether to enable DHCP on this Private Network. Defaults to `true` if either `dhcp_id` or `dhcp` are present. If set to `true`, either `dhcp_id` or `dhcp` must be present.
1131
-
EnableDHCP*bool`json:"enable_dhcp"`
1138
+
// IpamConfig: auto-configure the GatewayNetwork using Scaleway's IPAM (IP address management service).
1139
+
// Note: all or none of the GatewayNetworks for a single gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed. Some products may require that the Public Gateway uses the IPAM, to ensure correct functionality.
1140
+
// Precisely one of Address, DHCP, DHCPID, IpamConfig must be set.
0 commit comments