Skip to content

docs(containers): document VPC integration fields #1018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions scaleway-async/scaleway_async/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def create_namespace(
"""
Create a new namespace.
Create a new namespace in a specified region.
:param activate_vpc_integration:
:param activate_vpc_integration: When activated, containers in the namespace can be connected to a Private Network.
:param region: Region to target. If none is passed will use default region from the config.
:param name: Name of the namespace to create.
:param environment_variables: Environment variables of the namespace to create.
Expand Down Expand Up @@ -645,7 +645,9 @@ async def create_container(
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
:param health_check: Health check configuration of the container.
:param tags: Tags of the Serverless Container.
:param private_network_id:
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
: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.
: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.
:return: :class:`Container <Container>`
Expand Down Expand Up @@ -746,9 +748,9 @@ async def update_container(
:param description: Description of the container.
:param registry_image: Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
:param max_concurrency: Number of maximum concurrent executions of the container.
:param protocol:
:param port:
:param secret_environment_variables:
:param protocol: Protocol the container uses.
:param port: Port the container listens on.
:param secret_environment_variables: Secret environment variables of the container.
:param http_option: Possible values:
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
- enabled: Serve both HTTP and HTTPS traffic.
Expand All @@ -760,7 +762,9 @@ async def update_container(
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
:param health_check: Health check configuration of the container.
:param tags: Tags of the Serverless Container.
:param private_network_id:
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
: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.
: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.
:return: :class:`Container <Container>`
Expand Down
29 changes: 29 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ class Container:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
"""


@dataclass
Expand Down Expand Up @@ -668,6 +671,10 @@ class Namespace:
"""

vpc_integration_activated: Optional[bool]
"""
When activated, containers in the namespace can be connected to a Private Network.
Note that activating the VPC integration can only be done when creating a new namespace.
"""


@dataclass
Expand Down Expand Up @@ -876,6 +883,11 @@ class CreateContainerRequest:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
"""

command: Optional[List[str]]
"""
Expand Down Expand Up @@ -937,6 +949,9 @@ class CreateDomainRequest:
@dataclass
class CreateNamespaceRequest:
activate_vpc_integration: bool
"""
When activated, containers in the namespace can be connected to a Private Network.
"""

region: Optional[ScwRegion]
"""
Expand Down Expand Up @@ -1533,10 +1548,19 @@ class UpdateContainerRequest:
"""

protocol: Optional[ContainerProtocol]
"""
Protocol the container uses.
"""

port: Optional[int]
"""
Port the container listens on.
"""

secret_environment_variables: Optional[List[Secret]]
"""
Secret environment variables of the container.
"""

http_option: Optional[ContainerHttpOption]
"""
Expand Down Expand Up @@ -1574,6 +1598,11 @@ class UpdateContainerRequest:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
"""

command: Optional[List[str]]
"""
Expand Down
16 changes: 10 additions & 6 deletions scaleway/scaleway/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def create_namespace(
"""
Create a new namespace.
Create a new namespace in a specified region.
:param activate_vpc_integration:
:param activate_vpc_integration: When activated, containers in the namespace can be connected to a Private Network.
:param region: Region to target. If none is passed will use default region from the config.
:param name: Name of the namespace to create.
:param environment_variables: Environment variables of the namespace to create.
Expand Down Expand Up @@ -641,7 +641,9 @@ def create_container(
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
:param health_check: Health check configuration of the container.
:param tags: Tags of the Serverless Container.
:param private_network_id:
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
: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.
: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.
:return: :class:`Container <Container>`
Expand Down Expand Up @@ -742,9 +744,9 @@ def update_container(
:param description: Description of the container.
:param registry_image: Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
:param max_concurrency: Number of maximum concurrent executions of the container.
:param protocol:
:param port:
:param secret_environment_variables:
:param protocol: Protocol the container uses.
:param port: Port the container listens on.
:param secret_environment_variables: Secret environment variables of the container.
:param http_option: Possible values:
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
- enabled: Serve both HTTP and HTTPS traffic.
Expand All @@ -756,7 +758,9 @@ def update_container(
- memory_usage_threshold: Scale depending on the memory usage of a container instance.
:param health_check: Health check configuration of the container.
:param tags: Tags of the Serverless Container.
:param private_network_id:
:param private_network_id: When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
: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.
: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.
:return: :class:`Container <Container>`
Expand Down
29 changes: 29 additions & 0 deletions scaleway/scaleway/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ class Container:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.
"""


@dataclass
Expand Down Expand Up @@ -668,6 +671,10 @@ class Namespace:
"""

vpc_integration_activated: Optional[bool]
"""
When activated, containers in the namespace can be connected to a Private Network.
Note that activating the VPC integration can only be done when creating a new namespace.
"""


@dataclass
Expand Down Expand Up @@ -876,6 +883,11 @@ class CreateContainerRequest:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
"""

command: Optional[List[str]]
"""
Expand Down Expand Up @@ -937,6 +949,9 @@ class CreateDomainRequest:
@dataclass
class CreateNamespaceRequest:
activate_vpc_integration: bool
"""
When activated, containers in the namespace can be connected to a Private Network.
"""

region: Optional[ScwRegion]
"""
Expand Down Expand Up @@ -1533,10 +1548,19 @@ class UpdateContainerRequest:
"""

protocol: Optional[ContainerProtocol]
"""
Protocol the container uses.
"""

port: Optional[int]
"""
Port the container listens on.
"""

secret_environment_variables: Optional[List[Secret]]
"""
Secret environment variables of the container.
"""

http_option: Optional[ContainerHttpOption]
"""
Expand Down Expand Up @@ -1574,6 +1598,11 @@ class UpdateContainerRequest:
"""

private_network_id: Optional[str]
"""
When connected to a Private Network, the container can access other Scaleway resources in this Private Network.

Note: this feature is currently in beta and requires a namespace with VPC integration activated, using the `activate_vpc_integration` flag.
"""

command: Optional[List[str]]
"""
Expand Down