Skip to content

docs(ipam): unify wording #651

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

Merged
merged 2 commits into from
Sep 10, 2024
Merged
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
22 changes: 11 additions & 11 deletions scaleway-async/scaleway_async/ipam/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ async def book_ip(
resource: Optional[CustomResource] = None,
) -> IP:
"""
Book a new IP.
Book a new IP from the specified source. Currently IPs can only be booked from a Private Network.
:param source: Source in which to book the IP. Not all sources are available for booking.
Reserve a new IP.
Reserve a new IP from the specified source. Currently IPs can only be reserved from a Private Network.
:param source: Source in which to reserve the IP. Not all sources are available for reservation.
:param is_ipv6: Request an IPv6 instead of an IPv4.
:param region: Region to target. If none is passed will use default region from the config.
:param project_id: When creating an IP in a Private Network, the Project must match the Private Network's Project.
:param address: The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already booked, then the call will fail.
:param address: The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already reserved, then the call will fail.
:param tags: Tags for the IP.
:param resource: Custom resource to attach to the IP being booked. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
:param resource: Custom resource to attach to the IP being reserved. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
:return: :class:`IP <IP>`

Usage:
Expand Down Expand Up @@ -427,8 +427,8 @@ async def attach_ip(
region: Optional[Region] = None,
) -> IP:
"""
Attach existing IP to custom resource.
Attach an existing IP from a Private Network subnet to a custom, named resource via its MAC address. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources as it will fail - see the relevant product API for an equivalent method.
Attach IP to custom resource.
Attach an existing reserved IP from a Private Network subnet to a custom, named resource via its MAC address. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param resource: Custom resource to be attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down Expand Up @@ -472,8 +472,8 @@ async def detach_ip(
region: Optional[Region] = None,
) -> IP:
"""
Detach existing IP from a custom resource.
Detach a private IP from a custom resource. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
Detach IP from a custom resource.
Detach a private IP from a custom resource. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for detaching IP addresses from standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param resource: Custom resource currently attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down Expand Up @@ -518,8 +518,8 @@ async def move_ip(
to_resource: Optional[CustomResource] = None,
) -> IP:
"""
Move existing IP to a custom resource.
Move an existing private IP from one custom resource (e.g. a virtual machine hosted on an Elastic Metal server) to another custom resource. This will detach it from the first resource, and attach it to the second. Do not use this method for moving IP addresses between standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
Move IP to a custom resource.
Move an existing reserved private IP from one custom resource (e.g. a virtual machine hosted on an Elastic Metal server) to another custom resource. This will detach it from the first resource, and attach it to the second. Do not use this method for moving IP addresses between standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param from_resource: Custom resource currently attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down
10 changes: 5 additions & 5 deletions scaleway-async/scaleway_async/ipam/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class IP:

created_at: Optional[datetime]
"""
Date the IP was booked.
Date the IP was reserved.
"""

updated_at: Optional[datetime]
Expand All @@ -157,7 +157,7 @@ class IP:

source: Optional[Source]
"""
Source pool where the IP was booked in.
Source pool where the IP was reserved in.
"""

resource: Optional[Resource]
Expand Down Expand Up @@ -193,7 +193,7 @@ class AttachIPRequest:
class BookIPRequest:
source: Source
"""
Source in which to book the IP. Not all sources are available for booking.
Source in which to reserve the IP. Not all sources are available for reservation.
"""

is_ipv6: bool
Expand All @@ -213,7 +213,7 @@ class BookIPRequest:

address: Optional[str]
"""
The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already booked, then the call will fail.
The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already reserved, then the call will fail.
"""

tags: Optional[List[str]]
Expand All @@ -223,7 +223,7 @@ class BookIPRequest:

resource: Optional[CustomResource]
"""
Custom resource to attach to the IP being booked. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
Custom resource to attach to the IP being reserved. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
"""


Expand Down
22 changes: 11 additions & 11 deletions scaleway/scaleway/ipam/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ def book_ip(
resource: Optional[CustomResource] = None,
) -> IP:
"""
Book a new IP.
Book a new IP from the specified source. Currently IPs can only be booked from a Private Network.
:param source: Source in which to book the IP. Not all sources are available for booking.
Reserve a new IP.
Reserve a new IP from the specified source. Currently IPs can only be reserved from a Private Network.
:param source: Source in which to reserve the IP. Not all sources are available for reservation.
:param is_ipv6: Request an IPv6 instead of an IPv4.
:param region: Region to target. If none is passed will use default region from the config.
:param project_id: When creating an IP in a Private Network, the Project must match the Private Network's Project.
:param address: The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already booked, then the call will fail.
:param address: The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already reserved, then the call will fail.
:param tags: Tags for the IP.
:param resource: Custom resource to attach to the IP being booked. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
:param resource: Custom resource to attach to the IP being reserved. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
:return: :class:`IP <IP>`

Usage:
Expand Down Expand Up @@ -427,8 +427,8 @@ def attach_ip(
region: Optional[Region] = None,
) -> IP:
"""
Attach existing IP to custom resource.
Attach an existing IP from a Private Network subnet to a custom, named resource via its MAC address. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources as it will fail - see the relevant product API for an equivalent method.
Attach IP to custom resource.
Attach an existing reserved IP from a Private Network subnet to a custom, named resource via its MAC address. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param resource: Custom resource to be attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down Expand Up @@ -472,8 +472,8 @@ def detach_ip(
region: Optional[Region] = None,
) -> IP:
"""
Detach existing IP from a custom resource.
Detach a private IP from a custom resource. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
Detach IP from a custom resource.
Detach a private IP from a custom resource. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for detaching IP addresses from standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param resource: Custom resource currently attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down Expand Up @@ -518,8 +518,8 @@ def move_ip(
to_resource: Optional[CustomResource] = None,
) -> IP:
"""
Move existing IP to a custom resource.
Move an existing private IP from one custom resource (e.g. a virtual machine hosted on an Elastic Metal server) to another custom resource. This will detach it from the first resource, and attach it to the second. Do not use this method for moving IP addresses between standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
Move IP to a custom resource.
Move an existing reserved private IP from one custom resource (e.g. a virtual machine hosted on an Elastic Metal server) to another custom resource. This will detach it from the first resource, and attach it to the second. Do not use this method for moving IP addresses between standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
:param ip_id: IP ID.
:param from_resource: Custom resource currently attached to the IP.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down
10 changes: 5 additions & 5 deletions scaleway/scaleway/ipam/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class IP:

created_at: Optional[datetime]
"""
Date the IP was booked.
Date the IP was reserved.
"""

updated_at: Optional[datetime]
Expand All @@ -157,7 +157,7 @@ class IP:

source: Optional[Source]
"""
Source pool where the IP was booked in.
Source pool where the IP was reserved in.
"""

resource: Optional[Resource]
Expand Down Expand Up @@ -193,7 +193,7 @@ class AttachIPRequest:
class BookIPRequest:
source: Source
"""
Source in which to book the IP. Not all sources are available for booking.
Source in which to reserve the IP. Not all sources are available for reservation.
"""

is_ipv6: bool
Expand All @@ -213,7 +213,7 @@ class BookIPRequest:

address: Optional[str]
"""
The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already booked, then the call will fail.
The requested address should not include the subnet mask (/suffix). Note that only the Private Network source allows you to pick a specific IP. If the requested IP is already reserved, then the call will fail.
"""

tags: Optional[List[str]]
Expand All @@ -223,7 +223,7 @@ class BookIPRequest:

resource: Optional[CustomResource]
"""
Custom resource to attach to the IP being booked. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
Custom resource to attach to the IP being reserved. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
"""


Expand Down