Skip to content
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
10 changes: 6 additions & 4 deletions scaleway-async/scaleway_async/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,14 +1098,15 @@ async def list_logs(
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
) -> ListLogsResponse:
"""
List your container logs.
List the logs of the container with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param container_id: UUID of the container.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`ListLogsResponse <ListLogsResponse>`
:deprecated

Usage:
::
Expand Down Expand Up @@ -1141,14 +1142,15 @@ async def list_logs_all(
order_by: Optional[ListLogsRequestOrderBy] = None,
) -> List[Log]:
"""
List your container logs.
List the logs of the container with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param container_id: UUID of the container.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
:deprecated

Usage:
::
Expand Down
48 changes: 28 additions & 20 deletions scaleway-async/scaleway_async/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,27 +821,33 @@ def marshal_CreateTriggerRequest(
[
OneOfPossibility(
"scw_sqs_config",
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None,
(
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None
),
),
OneOfPossibility(
"scw_nats_config",
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None,
(
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None
),
),
OneOfPossibility(
"sqs_config",
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down Expand Up @@ -966,11 +972,13 @@ def marshal_UpdateTriggerRequest(
[
OneOfPossibility(
"sqs_config",
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down
10 changes: 6 additions & 4 deletions scaleway-async/scaleway_async/function/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,14 +1187,15 @@ async def list_logs(
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
) -> ListLogsResponse:
"""
List application logs.
List the application logs of the function with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param function_id: UUID of the function to get the logs for.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`ListLogsResponse <ListLogsResponse>`
:deprecated

Usage:
::
Expand Down Expand Up @@ -1230,14 +1231,15 @@ async def list_logs_all(
order_by: Optional[ListLogsRequestOrderBy] = None,
) -> List[Log]:
"""
List application logs.
List the application logs of the function with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param function_id: UUID of the function to get the logs for.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
:deprecated

Usage:
::
Expand Down
48 changes: 28 additions & 20 deletions scaleway-async/scaleway_async/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,27 +910,33 @@ def marshal_CreateTriggerRequest(
[
OneOfPossibility(
"scw_sqs_config",
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None,
(
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None
),
),
OneOfPossibility(
"scw_nats_config",
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None,
(
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None
),
),
OneOfPossibility(
"sqs_config",
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down Expand Up @@ -1046,11 +1052,13 @@ def marshal_UpdateTriggerRequest(
[
OneOfPossibility(
"sqs_config",
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down
10 changes: 6 additions & 4 deletions scaleway/scaleway/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,14 +1094,15 @@ def list_logs(
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
) -> ListLogsResponse:
"""
List your container logs.
List the logs of the container with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param container_id: UUID of the container.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`ListLogsResponse <ListLogsResponse>`
:deprecated

Usage:
::
Expand Down Expand Up @@ -1137,14 +1138,15 @@ def list_logs_all(
order_by: Optional[ListLogsRequestOrderBy] = None,
) -> List[Log]:
"""
List your container logs.
List the logs of the container with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param container_id: UUID of the container.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
:deprecated

Usage:
::
Expand Down
48 changes: 28 additions & 20 deletions scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,27 +821,33 @@ def marshal_CreateTriggerRequest(
[
OneOfPossibility(
"scw_sqs_config",
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None,
(
marshal_CreateTriggerRequestMnqSqsClientConfig(
request.scw_sqs_config, defaults
)
if request.scw_sqs_config is not None
else None
),
),
OneOfPossibility(
"scw_nats_config",
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None,
(
marshal_CreateTriggerRequestMnqNatsClientConfig(
request.scw_nats_config, defaults
)
if request.scw_nats_config is not None
else None
),
),
OneOfPossibility(
"sqs_config",
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_CreateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down Expand Up @@ -966,11 +972,13 @@ def marshal_UpdateTriggerRequest(
[
OneOfPossibility(
"sqs_config",
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None,
(
marshal_UpdateTriggerRequestSqsClientConfig(
request.sqs_config, defaults
)
if request.sqs_config is not None
else None
),
),
]
),
Expand Down
10 changes: 6 additions & 4 deletions scaleway/scaleway/function/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,14 +1183,15 @@ def list_logs(
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
) -> ListLogsResponse:
"""
List application logs.
List the application logs of the function with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param function_id: UUID of the function to get the logs for.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`ListLogsResponse <ListLogsResponse>`
:deprecated

Usage:
::
Expand Down Expand Up @@ -1226,14 +1227,15 @@ def list_logs_all(
order_by: Optional[ListLogsRequestOrderBy] = None,
) -> List[Log]:
"""
List application logs.
List the application logs of the function with the specified ID.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
:param region: Region to target. If none is passed will use default region from the config.
:param function_id: UUID of the function to get the logs for.
:param page: Page number.
:param page_size: Number of logs per page.
:param order_by: Order of the logs.
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
:deprecated

Usage:
::
Expand Down
Loading