You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param health_check: Health check configuration of the container.
645
647
:param tags: Tags of the Serverless Container.
646
648
:param private_network_id:
649
+
:param command: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
650
+
:param args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
:param health_check: Health check configuration of the container.
754
762
:param tags: Tags of the Serverless Container.
755
763
:param private_network_id:
764
+
:param command: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
765
+
:param args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/container/v1beta1/types.py
+45-15Lines changed: 45 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -416,29 +416,29 @@ class Container:
416
416
Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
417
417
"""
418
418
419
-
timeout: Optional[str]
419
+
max_concurrency: int
420
420
"""
421
-
Processing time limit for the container.
421
+
Number of maximum concurrent executions of the container.
422
422
"""
423
423
424
-
error_message: Optional[str]
424
+
domain_name: str
425
425
"""
426
-
Last error message of the container.
426
+
Domain name attributed to the contaioner.
427
427
"""
428
428
429
-
description: Optional[str]
429
+
timeout: Optional[str]
430
430
"""
431
-
Description of the container.
431
+
Processing time limit for the container.
432
432
"""
433
433
434
-
max_concurrency: int
434
+
error_message: Optional[str]
435
435
"""
436
-
Number of maximum concurrent executions of the container.
436
+
Last error message of the container.
437
437
"""
438
438
439
-
domain_name: str
439
+
description: Optional[str]
440
440
"""
441
-
Domain name attributed to the contaioner.
441
+
Description of the container.
442
442
"""
443
443
444
444
protocol: ContainerProtocol
@@ -473,6 +473,14 @@ class Container:
473
473
Local storage limit of the container (in MB).
474
474
"""
475
475
476
+
scaling_option: Optional[ContainerScalingOption]
477
+
"""
478
+
Possible values:
479
+
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
480
+
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
481
+
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
482
+
"""
483
+
476
484
region: ScwRegion
477
485
"""
478
486
Region in which the container will be deployed.
@@ -483,12 +491,14 @@ class Container:
483
491
List of tags applied to the Serverless Container.
484
492
"""
485
493
486
-
scaling_option: Optional[ContainerScalingOption]
494
+
command: List[str]
487
495
"""
488
-
Possible values:
489
-
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
490
-
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
491
-
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
496
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
497
+
"""
498
+
499
+
args: List[str]
500
+
"""
501
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
492
502
"""
493
503
494
504
health_check: Optional[ContainerHealthCheckSpec]
@@ -867,6 +877,16 @@ class CreateContainerRequest:
867
877
868
878
private_network_id: Optional[str]
869
879
880
+
command: Optional[List[str]]
881
+
"""
882
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
883
+
"""
884
+
885
+
args: Optional[List[str]]
886
+
"""
887
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
888
+
"""
889
+
870
890
871
891
@dataclass
872
892
classCreateCronRequest:
@@ -1555,6 +1575,16 @@ class UpdateContainerRequest:
1555
1575
1556
1576
private_network_id: Optional[str]
1557
1577
1578
+
command: Optional[List[str]]
1579
+
"""
1580
+
Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
1581
+
"""
1582
+
1583
+
args: Optional[List[str]]
1584
+
"""
1585
+
Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
:param health_check: Health check configuration of the container.
641
643
:param tags: Tags of the Serverless Container.
642
644
:param private_network_id:
645
+
:param command: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
646
+
:param args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
:param health_check: Health check configuration of the container.
750
758
:param tags: Tags of the Serverless Container.
751
759
:param private_network_id:
760
+
:param command: Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
761
+
:param args: Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
0 commit comments