File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
packages/clients/src/api/redis/v1 Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export type {
2626 Endpoint ,
2727 EndpointSpec ,
2828 EndpointSpecPrivateNetworkSpec ,
29+ EndpointSpecPrivateNetworkSpecIpamConfig ,
2930 EndpointSpecPublicNetworkSpec ,
3031 GetAclRuleRequest ,
3132 GetClusterCertificateRequest ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import type {
2727 Endpoint ,
2828 EndpointSpec ,
2929 EndpointSpecPrivateNetworkSpec ,
30+ EndpointSpecPrivateNetworkSpecIpamConfig ,
3031 EndpointSpecPublicNetworkSpec ,
3132 ListClusterVersionsResponse ,
3233 ListClustersResponse ,
@@ -313,11 +314,22 @@ export const unmarshalSetEndpointsResponse = (data: unknown) => {
313314 } as SetEndpointsResponse
314315}
315316
317+ const marshalEndpointSpecPrivateNetworkSpecIpamConfig = (
318+ request : EndpointSpecPrivateNetworkSpecIpamConfig ,
319+ defaults : DefaultValues ,
320+ ) : Record < string , unknown > => ( { } )
321+
316322const marshalEndpointSpecPrivateNetworkSpec = (
317323 request : EndpointSpecPrivateNetworkSpec ,
318324 defaults : DefaultValues ,
319325) : Record < string , unknown > => ( {
320326 id : request . id ,
327+ ipam_config : request . ipamConfig
328+ ? marshalEndpointSpecPrivateNetworkSpecIpamConfig (
329+ request . ipamConfig ,
330+ defaults ,
331+ )
332+ : undefined ,
321333 service_ips : request . serviceIps ,
322334} )
323335
Original file line number Diff line number Diff line change @@ -209,8 +209,15 @@ export interface EndpointSpecPrivateNetworkSpec {
209209 * IPv4 per node.
210210 */
211211 serviceIps : string [ ]
212+ /**
213+ * Automated configuration of your Private Network endpoint with Scaleway IPAM
214+ * service.
215+ */
216+ ipamConfig ?: EndpointSpecPrivateNetworkSpecIpamConfig
212217}
213218
219+ export interface EndpointSpecPrivateNetworkSpecIpamConfig { }
220+
214221/** Endpoint spec. public network spec. */
215222export interface EndpointSpecPublicNetworkSpec { }
216223
You can’t perform that action at this time.
0 commit comments