File tree Expand file tree Collapse file tree 6 files changed +50
-0
lines changed
scaleway-async/scaleway_async/redis/v1
scaleway/scaleway/redis/v1 Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 17
17
from .types import Endpoint
18
18
from .types import EndpointSpec
19
19
from .types import EndpointSpecPrivateNetworkSpec
20
+ from .types import EndpointSpecPrivateNetworkSpecIpamConfig
20
21
from .types import EndpointSpecPublicNetworkSpec
21
22
from .types import ListClusterVersionsResponse
22
23
from .types import ListClustersResponse
47
48
"Endpoint" ,
48
49
"EndpointSpec" ,
49
50
"EndpointSpecPrivateNetworkSpec" ,
51
+ "EndpointSpecPrivateNetworkSpecIpamConfig" ,
50
52
"EndpointSpecPublicNetworkSpec" ,
51
53
"ListClusterVersionsResponse" ,
52
54
"ListClustersResponse" ,
Original file line number Diff line number Diff line change 26
26
Endpoint ,
27
27
EndpointSpec ,
28
28
EndpointSpecPrivateNetworkSpec ,
29
+ EndpointSpecPrivateNetworkSpecIpamConfig ,
29
30
EndpointSpecPublicNetworkSpec ,
30
31
ListClusterVersionsResponse ,
31
32
ListClustersResponse ,
@@ -449,12 +450,24 @@ def unmarshal_SetEndpointsResponse(data: Any) -> SetEndpointsResponse:
449
450
return SetEndpointsResponse (** args )
450
451
451
452
453
+ def marshal_EndpointSpecPrivateNetworkSpecIpamConfig (
454
+ request : EndpointSpecPrivateNetworkSpecIpamConfig ,
455
+ defaults : ProfileDefaults ,
456
+ ) -> Dict [str , Any ]:
457
+ return {}
458
+
459
+
452
460
def marshal_EndpointSpecPrivateNetworkSpec (
453
461
request : EndpointSpecPrivateNetworkSpec ,
454
462
defaults : ProfileDefaults ,
455
463
) -> Dict [str , Any ]:
456
464
return {
457
465
"id" : request .id ,
466
+ "ipam_config" : marshal_EndpointSpecPrivateNetworkSpecIpamConfig (
467
+ request .ipam_config , defaults
468
+ )
469
+ if request .ipam_config is not None
470
+ else None ,
458
471
"service_ips" : request .service_ips ,
459
472
}
460
473
Original file line number Diff line number Diff line change @@ -417,6 +417,16 @@ class EndpointSpecPrivateNetworkSpec:
417
417
Endpoint IPv4 address with a CIDR notation. You must provide at least one IPv4 per node.
418
418
"""
419
419
420
+ ipam_config : Optional [EndpointSpecPrivateNetworkSpecIpamConfig ]
421
+ """
422
+ Automated configuration of your Private Network endpoint with Scaleway IPAM service.
423
+ """
424
+
425
+
426
+ @dataclass
427
+ class EndpointSpecPrivateNetworkSpecIpamConfig :
428
+ pass
429
+
420
430
421
431
@dataclass
422
432
class EndpointSpecPublicNetworkSpec :
Original file line number Diff line number Diff line change 17
17
from .types import Endpoint
18
18
from .types import EndpointSpec
19
19
from .types import EndpointSpecPrivateNetworkSpec
20
+ from .types import EndpointSpecPrivateNetworkSpecIpamConfig
20
21
from .types import EndpointSpecPublicNetworkSpec
21
22
from .types import ListClusterVersionsResponse
22
23
from .types import ListClustersResponse
47
48
"Endpoint" ,
48
49
"EndpointSpec" ,
49
50
"EndpointSpecPrivateNetworkSpec" ,
51
+ "EndpointSpecPrivateNetworkSpecIpamConfig" ,
50
52
"EndpointSpecPublicNetworkSpec" ,
51
53
"ListClusterVersionsResponse" ,
52
54
"ListClustersResponse" ,
Original file line number Diff line number Diff line change 26
26
Endpoint ,
27
27
EndpointSpec ,
28
28
EndpointSpecPrivateNetworkSpec ,
29
+ EndpointSpecPrivateNetworkSpecIpamConfig ,
29
30
EndpointSpecPublicNetworkSpec ,
30
31
ListClusterVersionsResponse ,
31
32
ListClustersResponse ,
@@ -449,12 +450,24 @@ def unmarshal_SetEndpointsResponse(data: Any) -> SetEndpointsResponse:
449
450
return SetEndpointsResponse (** args )
450
451
451
452
453
+ def marshal_EndpointSpecPrivateNetworkSpecIpamConfig (
454
+ request : EndpointSpecPrivateNetworkSpecIpamConfig ,
455
+ defaults : ProfileDefaults ,
456
+ ) -> Dict [str , Any ]:
457
+ return {}
458
+
459
+
452
460
def marshal_EndpointSpecPrivateNetworkSpec (
453
461
request : EndpointSpecPrivateNetworkSpec ,
454
462
defaults : ProfileDefaults ,
455
463
) -> Dict [str , Any ]:
456
464
return {
457
465
"id" : request .id ,
466
+ "ipam_config" : marshal_EndpointSpecPrivateNetworkSpecIpamConfig (
467
+ request .ipam_config , defaults
468
+ )
469
+ if request .ipam_config is not None
470
+ else None ,
458
471
"service_ips" : request .service_ips ,
459
472
}
460
473
Original file line number Diff line number Diff line change @@ -417,6 +417,16 @@ class EndpointSpecPrivateNetworkSpec:
417
417
Endpoint IPv4 address with a CIDR notation. You must provide at least one IPv4 per node.
418
418
"""
419
419
420
+ ipam_config : Optional [EndpointSpecPrivateNetworkSpecIpamConfig ]
421
+ """
422
+ Automated configuration of your Private Network endpoint with Scaleway IPAM service.
423
+ """
424
+
425
+
426
+ @dataclass
427
+ class EndpointSpecPrivateNetworkSpecIpamConfig :
428
+ pass
429
+
420
430
421
431
@dataclass
422
432
class EndpointSpecPublicNetworkSpec :
You can’t perform that action at this time.
0 commit comments