Skip to content

Commit e90bd00

Browse files
authored
chore(serverless): deprecate /logs and /metrics endpoint (#435)
1 parent 3945ac7 commit e90bd00

File tree

8 files changed

+136
-96
lines changed

8 files changed

+136
-96
lines changed

scaleway-async/scaleway_async/container/v1beta1/api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,14 +1098,15 @@ async def list_logs(
10981098
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
10991099
) -> ListLogsResponse:
11001100
"""
1101-
List your container logs.
1102-
List the logs of the container with the specified ID.
1101+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
1102+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
11031103
:param region: Region to target. If none is passed will use default region from the config.
11041104
:param container_id: UUID of the container.
11051105
:param page: Page number.
11061106
:param page_size: Number of logs per page.
11071107
:param order_by: Order of the logs.
11081108
:return: :class:`ListLogsResponse <ListLogsResponse>`
1109+
:deprecated
11091110
11101111
Usage:
11111112
::
@@ -1141,14 +1142,15 @@ async def list_logs_all(
11411142
order_by: Optional[ListLogsRequestOrderBy] = None,
11421143
) -> List[Log]:
11431144
"""
1144-
List your container logs.
1145-
List the logs of the container with the specified ID.
1145+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
1146+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
11461147
:param region: Region to target. If none is passed will use default region from the config.
11471148
:param container_id: UUID of the container.
11481149
:param page: Page number.
11491150
:param page_size: Number of logs per page.
11501151
:param order_by: Order of the logs.
11511152
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
1153+
:deprecated
11521154
11531155
Usage:
11541156
::

scaleway-async/scaleway_async/container/v1beta1/marshalling.py

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -821,27 +821,33 @@ def marshal_CreateTriggerRequest(
821821
[
822822
OneOfPossibility(
823823
"scw_sqs_config",
824-
marshal_CreateTriggerRequestMnqSqsClientConfig(
825-
request.scw_sqs_config, defaults
826-
)
827-
if request.scw_sqs_config is not None
828-
else None,
824+
(
825+
marshal_CreateTriggerRequestMnqSqsClientConfig(
826+
request.scw_sqs_config, defaults
827+
)
828+
if request.scw_sqs_config is not None
829+
else None
830+
),
829831
),
830832
OneOfPossibility(
831833
"scw_nats_config",
832-
marshal_CreateTriggerRequestMnqNatsClientConfig(
833-
request.scw_nats_config, defaults
834-
)
835-
if request.scw_nats_config is not None
836-
else None,
834+
(
835+
marshal_CreateTriggerRequestMnqNatsClientConfig(
836+
request.scw_nats_config, defaults
837+
)
838+
if request.scw_nats_config is not None
839+
else None
840+
),
837841
),
838842
OneOfPossibility(
839843
"sqs_config",
840-
marshal_CreateTriggerRequestSqsClientConfig(
841-
request.sqs_config, defaults
842-
)
843-
if request.sqs_config is not None
844-
else None,
844+
(
845+
marshal_CreateTriggerRequestSqsClientConfig(
846+
request.sqs_config, defaults
847+
)
848+
if request.sqs_config is not None
849+
else None
850+
),
845851
),
846852
]
847853
),
@@ -966,11 +972,13 @@ def marshal_UpdateTriggerRequest(
966972
[
967973
OneOfPossibility(
968974
"sqs_config",
969-
marshal_UpdateTriggerRequestSqsClientConfig(
970-
request.sqs_config, defaults
971-
)
972-
if request.sqs_config is not None
973-
else None,
975+
(
976+
marshal_UpdateTriggerRequestSqsClientConfig(
977+
request.sqs_config, defaults
978+
)
979+
if request.sqs_config is not None
980+
else None
981+
),
974982
),
975983
]
976984
),

scaleway-async/scaleway_async/function/v1beta1/api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,14 +1187,15 @@ async def list_logs(
11871187
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
11881188
) -> ListLogsResponse:
11891189
"""
1190-
List application logs.
1191-
List the application logs of the function with the specified ID.
1190+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
1191+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
11921192
:param region: Region to target. If none is passed will use default region from the config.
11931193
:param function_id: UUID of the function to get the logs for.
11941194
:param page: Page number.
11951195
:param page_size: Number of logs per page.
11961196
:param order_by: Order of the logs.
11971197
:return: :class:`ListLogsResponse <ListLogsResponse>`
1198+
:deprecated
11981199
11991200
Usage:
12001201
::
@@ -1230,14 +1231,15 @@ async def list_logs_all(
12301231
order_by: Optional[ListLogsRequestOrderBy] = None,
12311232
) -> List[Log]:
12321233
"""
1233-
List application logs.
1234-
List the application logs of the function with the specified ID.
1234+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
1235+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
12351236
:param region: Region to target. If none is passed will use default region from the config.
12361237
:param function_id: UUID of the function to get the logs for.
12371238
:param page: Page number.
12381239
:param page_size: Number of logs per page.
12391240
:param order_by: Order of the logs.
12401241
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
1242+
:deprecated
12411243
12421244
Usage:
12431245
::

scaleway-async/scaleway_async/function/v1beta1/marshalling.py

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -910,27 +910,33 @@ def marshal_CreateTriggerRequest(
910910
[
911911
OneOfPossibility(
912912
"scw_sqs_config",
913-
marshal_CreateTriggerRequestMnqSqsClientConfig(
914-
request.scw_sqs_config, defaults
915-
)
916-
if request.scw_sqs_config is not None
917-
else None,
913+
(
914+
marshal_CreateTriggerRequestMnqSqsClientConfig(
915+
request.scw_sqs_config, defaults
916+
)
917+
if request.scw_sqs_config is not None
918+
else None
919+
),
918920
),
919921
OneOfPossibility(
920922
"scw_nats_config",
921-
marshal_CreateTriggerRequestMnqNatsClientConfig(
922-
request.scw_nats_config, defaults
923-
)
924-
if request.scw_nats_config is not None
925-
else None,
923+
(
924+
marshal_CreateTriggerRequestMnqNatsClientConfig(
925+
request.scw_nats_config, defaults
926+
)
927+
if request.scw_nats_config is not None
928+
else None
929+
),
926930
),
927931
OneOfPossibility(
928932
"sqs_config",
929-
marshal_CreateTriggerRequestSqsClientConfig(
930-
request.sqs_config, defaults
931-
)
932-
if request.sqs_config is not None
933-
else None,
933+
(
934+
marshal_CreateTriggerRequestSqsClientConfig(
935+
request.sqs_config, defaults
936+
)
937+
if request.sqs_config is not None
938+
else None
939+
),
934940
),
935941
]
936942
),
@@ -1046,11 +1052,13 @@ def marshal_UpdateTriggerRequest(
10461052
[
10471053
OneOfPossibility(
10481054
"sqs_config",
1049-
marshal_UpdateTriggerRequestSqsClientConfig(
1050-
request.sqs_config, defaults
1051-
)
1052-
if request.sqs_config is not None
1053-
else None,
1055+
(
1056+
marshal_UpdateTriggerRequestSqsClientConfig(
1057+
request.sqs_config, defaults
1058+
)
1059+
if request.sqs_config is not None
1060+
else None
1061+
),
10541062
),
10551063
]
10561064
),

scaleway/scaleway/container/v1beta1/api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,14 +1094,15 @@ def list_logs(
10941094
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
10951095
) -> ListLogsResponse:
10961096
"""
1097-
List your container logs.
1098-
List the logs of the container with the specified ID.
1097+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
1098+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
10991099
:param region: Region to target. If none is passed will use default region from the config.
11001100
:param container_id: UUID of the container.
11011101
:param page: Page number.
11021102
:param page_size: Number of logs per page.
11031103
:param order_by: Order of the logs.
11041104
:return: :class:`ListLogsResponse <ListLogsResponse>`
1105+
:deprecated
11051106
11061107
Usage:
11071108
::
@@ -1137,14 +1138,15 @@ def list_logs_all(
11371138
order_by: Optional[ListLogsRequestOrderBy] = None,
11381139
) -> List[Log]:
11391140
"""
1140-
List your container logs.
1141-
List the logs of the container with the specified ID.
1141+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs.
1142+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
11421143
:param region: Region to target. If none is passed will use default region from the config.
11431144
:param container_id: UUID of the container.
11441145
:param page: Page number.
11451146
:param page_size: Number of logs per page.
11461147
:param order_by: Order of the logs.
11471148
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
1149+
:deprecated
11481150
11491151
Usage:
11501152
::

scaleway/scaleway/container/v1beta1/marshalling.py

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -821,27 +821,33 @@ def marshal_CreateTriggerRequest(
821821
[
822822
OneOfPossibility(
823823
"scw_sqs_config",
824-
marshal_CreateTriggerRequestMnqSqsClientConfig(
825-
request.scw_sqs_config, defaults
826-
)
827-
if request.scw_sqs_config is not None
828-
else None,
824+
(
825+
marshal_CreateTriggerRequestMnqSqsClientConfig(
826+
request.scw_sqs_config, defaults
827+
)
828+
if request.scw_sqs_config is not None
829+
else None
830+
),
829831
),
830832
OneOfPossibility(
831833
"scw_nats_config",
832-
marshal_CreateTriggerRequestMnqNatsClientConfig(
833-
request.scw_nats_config, defaults
834-
)
835-
if request.scw_nats_config is not None
836-
else None,
834+
(
835+
marshal_CreateTriggerRequestMnqNatsClientConfig(
836+
request.scw_nats_config, defaults
837+
)
838+
if request.scw_nats_config is not None
839+
else None
840+
),
837841
),
838842
OneOfPossibility(
839843
"sqs_config",
840-
marshal_CreateTriggerRequestSqsClientConfig(
841-
request.sqs_config, defaults
842-
)
843-
if request.sqs_config is not None
844-
else None,
844+
(
845+
marshal_CreateTriggerRequestSqsClientConfig(
846+
request.sqs_config, defaults
847+
)
848+
if request.sqs_config is not None
849+
else None
850+
),
845851
),
846852
]
847853
),
@@ -966,11 +972,13 @@ def marshal_UpdateTriggerRequest(
966972
[
967973
OneOfPossibility(
968974
"sqs_config",
969-
marshal_UpdateTriggerRequestSqsClientConfig(
970-
request.sqs_config, defaults
971-
)
972-
if request.sqs_config is not None
973-
else None,
975+
(
976+
marshal_UpdateTriggerRequestSqsClientConfig(
977+
request.sqs_config, defaults
978+
)
979+
if request.sqs_config is not None
980+
else None
981+
),
974982
),
975983
]
976984
),

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,14 +1183,15 @@ def list_logs(
11831183
order_by: ListLogsRequestOrderBy = ListLogsRequestOrderBy.TIMESTAMP_DESC,
11841184
) -> ListLogsResponse:
11851185
"""
1186-
List application logs.
1187-
List the application logs of the function with the specified ID.
1186+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
1187+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
11881188
:param region: Region to target. If none is passed will use default region from the config.
11891189
:param function_id: UUID of the function to get the logs for.
11901190
:param page: Page number.
11911191
:param page_size: Number of logs per page.
11921192
:param order_by: Order of the logs.
11931193
:return: :class:`ListLogsResponse <ListLogsResponse>`
1194+
:deprecated
11941195
11951196
Usage:
11961197
::
@@ -1226,14 +1227,15 @@ def list_logs_all(
12261227
order_by: Optional[ListLogsRequestOrderBy] = None,
12271228
) -> List[Log]:
12281229
"""
1229-
List application logs.
1230-
List the application logs of the function with the specified ID.
1230+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs.
1231+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
12311232
:param region: Region to target. If none is passed will use default region from the config.
12321233
:param function_id: UUID of the function to get the logs for.
12331234
:param page: Page number.
12341235
:param page_size: Number of logs per page.
12351236
:param order_by: Order of the logs.
12361237
:return: :class:`List[ListLogsResponse] <List[ListLogsResponse]>`
1238+
:deprecated
12371239
12381240
Usage:
12391241
::

0 commit comments

Comments
 (0)