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
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/container/v1beta1/api.py
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,7 @@ async def create_namespace(
279
279
"""
280
280
Create a new namespace.
281
281
Create a new namespace in a specified region.
282
-
:param activate_vpc_integration:
282
+
:param activate_vpc_integration: When activated, containers in the namespace can be connected to a Private Network.
283
283
:param region: Region to target. If none is passed will use default region from the config.
284
284
:param name: Name of the namespace to create.
285
285
:param environment_variables: Environment variables of the namespace to create.
@@ -645,7 +645,9 @@ async def create_container(
645
645
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
646
646
:param health_check: Health check configuration of the container.
647
647
:param tags: Tags of the Serverless Container.
648
-
:param private_network_id:
648
+
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
649
+
650
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
649
651
: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
652
: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.
651
653
:return: :class:`Container <Container>`
@@ -746,9 +748,9 @@ async def update_container(
746
748
:param description: Description of the container.
747
749
:param registry_image: Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
748
750
:param max_concurrency: Number of maximum concurrent executions of the container.
749
-
:param protocol:
750
-
:param port:
751
-
:param secret_environment_variables:
751
+
:param protocol: Protocol the container uses.
752
+
:param port: Port the container listens on.
753
+
:param secret_environment_variables: Secret environment variables of the container.
752
754
:param http_option: Possible values:
753
755
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
754
756
- enabled: Serve both HTTP and HTTPS traffic.
@@ -760,7 +762,9 @@ async def update_container(
760
762
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
761
763
:param health_check: Health check configuration of the container.
762
764
:param tags: Tags of the Serverless Container.
763
-
:param private_network_id:
765
+
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
766
+
767
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
764
768
: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
769
: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/scaleway/container/v1beta1/api.py
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,7 @@ def create_namespace(
277
277
"""
278
278
Create a new namespace.
279
279
Create a new namespace in a specified region.
280
-
:param activate_vpc_integration:
280
+
:param activate_vpc_integration: When activated, containers in the namespace can be connected to a Private Network.
281
281
:param region: Region to target. If none is passed will use default region from the config.
282
282
:param name: Name of the namespace to create.
283
283
:param environment_variables: Environment variables of the namespace to create.
@@ -641,7 +641,9 @@ def create_container(
641
641
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
642
642
:param health_check: Health check configuration of the container.
643
643
:param tags: Tags of the Serverless Container.
644
-
:param private_network_id:
644
+
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
645
+
646
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
645
647
: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
648
: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.
647
649
:return: :class:`Container <Container>`
@@ -742,9 +744,9 @@ def update_container(
742
744
:param description: Description of the container.
743
745
:param registry_image: Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
744
746
:param max_concurrency: Number of maximum concurrent executions of the container.
745
-
:param protocol:
746
-
:param port:
747
-
:param secret_environment_variables:
747
+
:param protocol: Protocol the container uses.
748
+
:param port: Port the container listens on.
749
+
:param secret_environment_variables: Secret environment variables of the container.
748
750
:param http_option: Possible values:
749
751
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
750
752
- enabled: Serve both HTTP and HTTPS traffic.
@@ -756,7 +758,9 @@ def update_container(
756
758
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
757
759
:param health_check: Health check configuration of the container.
758
760
:param tags: Tags of the Serverless Container.
759
-
:param private_network_id:
761
+
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
762
+
763
+
Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
760
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.
761
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.
0 commit comments