Skip to content
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
29 changes: 17 additions & 12 deletions scaleway-async/scaleway_async/autoscaling/v1alpha2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@


class AutoscalingV1Alpha2API(API):
"""
Instances Autoscaling Groups management API.
"""
""" """

async def list_groups(
self,
Expand Down Expand Up @@ -101,7 +99,8 @@ async def get_group(
) -> Group:
"""
Get an autoscaling group.
Get details of a specified autoscaling group including its configuration, current size, and status.
Get details of a specified autoscaling group including its
configuration, current size, and status.
:param group_id: ID of the group to get.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -134,7 +133,8 @@ async def wait_for_group(
) -> Group:
"""
Get an autoscaling group.
Get details of a specified autoscaling group including its configuration, current size, and status.
Get details of a specified autoscaling group including its
configuration, current size, and status.
:param group_id: ID of the group to get.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -177,7 +177,9 @@ async def create_group(
) -> Group:
"""
Create an autoscaling group.
Create a new autoscaling group with the specified configuration including template, scaling policy, and optional load balancer settings.
Create a new autoscaling group with the specified configuration
including template, scaling policy, and optional load balancer
settings.
:param name: Name of the autoscaling group.
:param template_id: Template ID for instances in this group.
:param zone: Zone to target. If none is passed will use default zone from the config.
Expand Down Expand Up @@ -233,7 +235,8 @@ async def update_group(
) -> Group:
"""
Update an autoscaling group.
Update the configuration of a specified autoscaling group including name, tags, template, scaling policy, and load balancer settings.
Update the configuration of a specified autoscaling group including
name, tags, template, scaling policy, and load balancer settings.
:param group_id: ID of the group to update.
:param zone: Zone to target. If none is passed will use default zone from the config.
:param name: New name for the group.
Expand Down Expand Up @@ -282,7 +285,8 @@ async def delete_group(
) -> Group:
"""
Delete an autoscaling group.
Delete a specified autoscaling group and all its associated resources.
Delete a specified autoscaling group and all its associated
resources.
:param group_id: ID of the group to delete.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -317,8 +321,9 @@ async def list_logs(
end_time: Optional[datetime] = None,
) -> ListLogsResponse:
"""
List group logs.
List logs for a specified autoscaling group to view scaling events and activities.
List autoscaling group logs.
List logs for a specified autoscaling group to view scaling events
and activities.
:param group_id:
:param zone: Zone to target. If none is passed will use default zone from the config.
:param page_token:
Expand Down Expand Up @@ -361,7 +366,7 @@ async def list_servers(
page_size: Optional[int] = None,
) -> ListServersResponse:
"""
List group servers.
List autoscaling group servers.
List all Instances belonging to a specified autoscaling group.
:param group_id:
:param zone: Zone to target. If none is passed will use default zone from the config.
Expand Down Expand Up @@ -402,7 +407,7 @@ async def list_alerts(
project_id: Optional[str] = None,
) -> ListAlertsResponse:
"""
List group alerts.
List autoscaling group alerts.
List active and historical alerts for a specified autoscaling group.
:param zone: Zone to target. If none is passed will use default zone from the config.
:param group_id:
Expand Down
29 changes: 17 additions & 12 deletions scaleway/scaleway/autoscaling/v1alpha2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@


class AutoscalingV1Alpha2API(API):
"""
Instances Autoscaling Groups management API.
"""
""" """

def list_groups(
self,
Expand Down Expand Up @@ -101,7 +99,8 @@ def get_group(
) -> Group:
"""
Get an autoscaling group.
Get details of a specified autoscaling group including its configuration, current size, and status.
Get details of a specified autoscaling group including its
configuration, current size, and status.
:param group_id: ID of the group to get.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -134,7 +133,8 @@ def wait_for_group(
) -> Group:
"""
Get an autoscaling group.
Get details of a specified autoscaling group including its configuration, current size, and status.
Get details of a specified autoscaling group including its
configuration, current size, and status.
:param group_id: ID of the group to get.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -177,7 +177,9 @@ def create_group(
) -> Group:
"""
Create an autoscaling group.
Create a new autoscaling group with the specified configuration including template, scaling policy, and optional load balancer settings.
Create a new autoscaling group with the specified configuration
including template, scaling policy, and optional load balancer
settings.
:param name: Name of the autoscaling group.
:param template_id: Template ID for instances in this group.
:param zone: Zone to target. If none is passed will use default zone from the config.
Expand Down Expand Up @@ -233,7 +235,8 @@ def update_group(
) -> Group:
"""
Update an autoscaling group.
Update the configuration of a specified autoscaling group including name, tags, template, scaling policy, and load balancer settings.
Update the configuration of a specified autoscaling group including
name, tags, template, scaling policy, and load balancer settings.
:param group_id: ID of the group to update.
:param zone: Zone to target. If none is passed will use default zone from the config.
:param name: New name for the group.
Expand Down Expand Up @@ -282,7 +285,8 @@ def delete_group(
) -> Group:
"""
Delete an autoscaling group.
Delete a specified autoscaling group and all its associated resources.
Delete a specified autoscaling group and all its associated
resources.
:param group_id: ID of the group to delete.
:param zone: Zone to target. If none is passed will use default zone from the config.
:return: :class:`Group <Group>`
Expand Down Expand Up @@ -317,8 +321,9 @@ def list_logs(
end_time: Optional[datetime] = None,
) -> ListLogsResponse:
"""
List group logs.
List logs for a specified autoscaling group to view scaling events and activities.
List autoscaling group logs.
List logs for a specified autoscaling group to view scaling events
and activities.
:param group_id:
:param zone: Zone to target. If none is passed will use default zone from the config.
:param page_token:
Expand Down Expand Up @@ -361,7 +366,7 @@ def list_servers(
page_size: Optional[int] = None,
) -> ListServersResponse:
"""
List group servers.
List autoscaling group servers.
List all Instances belonging to a specified autoscaling group.
:param group_id:
:param zone: Zone to target. If none is passed will use default zone from the config.
Expand Down Expand Up @@ -402,7 +407,7 @@ def list_alerts(
project_id: Optional[str] = None,
) -> ListAlertsResponse:
"""
List group alerts.
List autoscaling group alerts.
List active and historical alerts for a specified autoscaling group.
:param zone: Zone to target. If none is passed will use default zone from the config.
:param group_id:
Expand Down
Loading