@@ -284,6 +284,12 @@ export interface IP {
284
284
zone : Zone
285
285
}
286
286
287
+ /** Ipam config. */
288
+ export interface IpamConfig {
289
+ /** Defines whether the default route is enabled on that Gateway Network. */
290
+ pushDefaultRoute : boolean
291
+ }
292
+
287
293
/** List dhcp entries response. */
288
294
export interface ListDHCPEntriesResponse {
289
295
/** DHCP entries in this page. */
@@ -541,33 +547,44 @@ export type CreateGatewayNetworkRequest = {
541
547
privateNetworkId : string
542
548
/** Defines whether to enable masquerade (dynamic NAT) on this network. */
543
549
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
544
556
/**
545
557
* ID of an existing DHCP configuration object to use for this GatewayNetwork.
546
558
*
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.
549
561
*/
550
562
dhcpId ?: string
551
563
/**
552
564
* New DHCP configuration object to use for this GatewayNetwork.
553
565
*
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.
556
568
*/
557
569
dhcp ?: CreateDHCPRequest
558
570
/**
559
571
* Static IP address in CIDR format to to use without DHCP.
560
572
*
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.
563
575
*/
564
576
address ?: string
565
577
/**
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.
569
586
*/
570
- enableDhcp ?: boolean
587
+ ipamConfig ?: IpamConfig
571
588
}
572
589
573
590
export type UpdateGatewayNetworkRequest = {
@@ -577,20 +594,29 @@ export type UpdateGatewayNetworkRequest = {
577
594
gatewayNetworkId : string
578
595
/** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
579
596
enableMasquerade ?: boolean
597
+ /** Defines whether to enable DHCP on the connected Private Network. */
598
+ enableDhcp ?: boolean
580
599
/**
581
600
* ID of the new DHCP configuration object to use with this GatewayNetwork.
582
601
*
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.
584
604
*/
585
605
dhcpId ?: string
586
- /** Defines whether to enable DHCP on the connected Private Network. */
587
- enableDhcp ?: boolean
588
606
/**
589
607
* New static IP address.
590
608
*
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.
592
611
*/
593
612
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
594
620
}
595
621
596
622
export type DeleteGatewayNetworkRequest = {
0 commit comments