@@ -284,6 +284,12 @@ export interface IP {
284284 zone : Zone
285285}
286286
287+ /** Ipam config. */
288+ export interface IpamConfig {
289+ /** Defines whether the default route is enabled on that Gateway Network. */
290+ pushDefaultRoute : boolean
291+ }
292+
287293/** List dhcp entries response. */
288294export interface ListDHCPEntriesResponse {
289295 /** DHCP entries in this page. */
@@ -541,33 +547,44 @@ export type CreateGatewayNetworkRequest = {
541547 privateNetworkId : string
542548 /** Defines whether to enable masquerade (dynamic NAT) on this network. */
543549 enableMasquerade : boolean
550+ /**
551+ * Defines whether to enable DHCP on this Private Network. Defaults to `true`
552+ * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
553+ * `dhcp_id` or `dhcp` must be present.
554+ */
555+ enableDhcp ?: boolean
544556 /**
545557 * ID of an existing DHCP configuration object to use for this GatewayNetwork.
546558 *
547- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
548- * set.
559+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
560+ * 'ipamConfig' could be set.
549561 */
550562 dhcpId ?: string
551563 /**
552564 * New DHCP configuration object to use for this GatewayNetwork.
553565 *
554- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
555- * set.
566+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
567+ * 'ipamConfig' could be set.
556568 */
557569 dhcp ?: CreateDHCPRequest
558570 /**
559571 * Static IP address in CIDR format to to use without DHCP.
560572 *
561- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
562- * set.
573+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
574+ * 'ipamConfig' could be set.
563575 */
564576 address ?: string
565577 /**
566- * Defines whether to enable DHCP on this Private Network. Defaults to `true`
567- * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
568- * `dhcp_id` or `dhcp` must be present.
578+ * Auto-configure the GatewayNetwork using Scaleway's IPAM (IP address
579+ * management service). Note: all or none of the GatewayNetworks for a single
580+ * gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed.
581+ * Some products may require that the Public Gateway uses the IPAM, to ensure
582+ * correct functionality.
583+ *
584+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
585+ * 'ipamConfig' could be set.
569586 */
570- enableDhcp ?: boolean
587+ ipamConfig ?: IpamConfig
571588}
572589
573590export type UpdateGatewayNetworkRequest = {
@@ -577,20 +594,29 @@ export type UpdateGatewayNetworkRequest = {
577594 gatewayNetworkId : string
578595 /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
579596 enableMasquerade ?: boolean
597+ /** Defines whether to enable DHCP on the connected Private Network. */
598+ enableDhcp ?: boolean
580599 /**
581600 * ID of the new DHCP configuration object to use with this GatewayNetwork.
582601 *
583- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
602+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
603+ * be set.
584604 */
585605 dhcpId ?: string
586- /** Defines whether to enable DHCP on the connected Private Network. */
587- enableDhcp ?: boolean
588606 /**
589607 * New static IP address.
590608 *
591- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
609+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
610+ * be set.
592611 */
593612 address ?: string
613+ /**
614+ * New IPAM configuration to use for this GatewayNetwork.
615+ *
616+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
617+ * be set.
618+ */
619+ ipamConfig ?: IpamConfig
594620}
595621
596622export type DeleteGatewayNetworkRequest = {
0 commit comments