File tree 6 files changed +32
-2
lines changed
scaleway/scaleway/container/v1beta1
scaleway-async/scaleway_async/container/v1beta1 6 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,7 @@ async def create_container(
633
633
:param scaling_option: Possible values:
634
634
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
635
635
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
636
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
636
637
:param health_check: Health check configuration of the container.
637
638
:return: :class:`Container <Container>`
638
639
@@ -735,8 +736,8 @@ async def update_container(
735
736
:param scaling_option: Possible values:
736
737
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
737
738
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
739
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
738
740
:param health_check: Health check configuration of the container.
739
-
740
741
:return: :class:`Container <Container>`
741
742
742
743
Usage:
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ def unmarshal_ContainerScalingOption(data: Any) -> ContainerScalingOption:
131
131
else :
132
132
args ["cpu_usage_threshold" ] = None
133
133
134
+ field = data .get ("memory_usage_threshold" , None )
135
+ if field is not None :
136
+ args ["memory_usage_threshold" ] = field
137
+ else :
138
+ args ["memory_usage_threshold" ] = None
139
+
134
140
return ContainerScalingOption (** args )
135
141
136
142
@@ -825,6 +831,9 @@ def marshal_ContainerScalingOption(
825
831
request .concurrent_requests_threshold ,
826
832
),
827
833
OneOfPossibility ("cpu_usage_threshold" , request .cpu_usage_threshold ),
834
+ OneOfPossibility (
835
+ "memory_usage_threshold" , request .memory_usage_threshold
836
+ ),
828
837
]
829
838
),
830
839
)
Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ class ContainerScalingOption:
228
228
229
229
cpu_usage_threshold : Optional [int ]
230
230
231
+ memory_usage_threshold : Optional [int ]
232
+
231
233
232
234
@dataclass
233
235
class SecretHashedValue :
@@ -481,7 +483,7 @@ class Container:
481
483
Possible values:
482
484
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
483
485
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
484
-
486
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
485
487
"""
486
488
487
489
health_check : Optional [ContainerHealthCheckSpec ]
@@ -831,6 +833,7 @@ class CreateContainerRequest:
831
833
Possible values:
832
834
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
833
835
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
836
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
834
837
"""
835
838
836
839
health_check : Optional [ContainerHealthCheckSpec ]
@@ -1509,6 +1512,7 @@ class UpdateContainerRequest:
1509
1512
Possible values:
1510
1513
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
1511
1514
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
1515
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
1512
1516
"""
1513
1517
1514
1518
health_check : Optional [ContainerHealthCheckSpec ]
Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ def create_container(
629
629
:param scaling_option: Possible values:
630
630
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
631
631
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
632
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
632
633
:param health_check: Health check configuration of the container.
633
634
:return: :class:`Container <Container>`
634
635
@@ -731,6 +732,7 @@ def update_container(
731
732
:param scaling_option: Possible values:
732
733
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
733
734
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
735
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
734
736
:param health_check: Health check configuration of the container.
735
737
:return: :class:`Container <Container>`
736
738
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ def unmarshal_ContainerScalingOption(data: Any) -> ContainerScalingOption:
131
131
else :
132
132
args ["cpu_usage_threshold" ] = None
133
133
134
+ field = data .get ("memory_usage_threshold" , None )
135
+ if field is not None :
136
+ args ["memory_usage_threshold" ] = field
137
+ else :
138
+ args ["memory_usage_threshold" ] = None
139
+
134
140
return ContainerScalingOption (** args )
135
141
136
142
@@ -825,6 +831,9 @@ def marshal_ContainerScalingOption(
825
831
request .concurrent_requests_threshold ,
826
832
),
827
833
OneOfPossibility ("cpu_usage_threshold" , request .cpu_usage_threshold ),
834
+ OneOfPossibility (
835
+ "memory_usage_threshold" , request .memory_usage_threshold
836
+ ),
828
837
]
829
838
),
830
839
)
Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ class ContainerScalingOption:
228
228
229
229
cpu_usage_threshold : Optional [int ]
230
230
231
+ memory_usage_threshold : Optional [int ]
232
+
231
233
232
234
@dataclass
233
235
class SecretHashedValue :
@@ -481,6 +483,7 @@ class Container:
481
483
Possible values:
482
484
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
483
485
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
486
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
484
487
"""
485
488
486
489
health_check : Optional [ContainerHealthCheckSpec ]
@@ -830,6 +833,7 @@ class CreateContainerRequest:
830
833
Possible values:
831
834
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
832
835
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
836
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
833
837
"""
834
838
835
839
health_check : Optional [ContainerHealthCheckSpec ]
@@ -1508,6 +1512,7 @@ class UpdateContainerRequest:
1508
1512
Possible values:
1509
1513
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
1510
1514
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
1515
+ - memory_usage_threshold: Scale depending on the memory usage of a container instance.
1511
1516
"""
1512
1517
1513
1518
health_check : Optional [ContainerHealthCheckSpec ]
You can’t perform that action at this time.
0 commit comments