File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed
scaleway-async/scaleway_async/edge_services/v1alpha1
scaleway/scaleway/edge_services/v1alpha1 Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -1674,12 +1674,13 @@ async def get_current_plan(
16741674 result = await api.get_current_plan()
16751675 """
16761676
1677+ param_project_id = validate_path_param (
1678+ "project_id" , project_id or self .client .default_project_id
1679+ )
1680+
16771681 res = self ._request (
16781682 "GET" ,
1679- "/edge-services/v1alpha1/current-plan" ,
1680- params = {
1681- "project_id" : project_id or self .client .default_project_id ,
1682- },
1683+ f"/edge-services/v1alpha1/current-plan/{ param_project_id } " ,
16831684 )
16841685
16851686 self ._throw_on_error (res )
@@ -1699,12 +1700,13 @@ async def delete_current_plan(
16991700 result = await api.delete_current_plan()
17001701 """
17011702
1703+ param_project_id = validate_path_param (
1704+ "project_id" , project_id or self .client .default_project_id
1705+ )
1706+
17021707 res = self ._request (
17031708 "DELETE" ,
1704- "/edge-services/v1alpha1/current-plan" ,
1705- params = {
1706- "project_id" : project_id or self .client .default_project_id ,
1707- },
1709+ f"/edge-services/v1alpha1/current-plan/{ param_project_id } " ,
17081710 )
17091711
17101712 self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -1670,12 +1670,13 @@ def get_current_plan(
16701670 result = api.get_current_plan()
16711671 """
16721672
1673+ param_project_id = validate_path_param (
1674+ "project_id" , project_id or self .client .default_project_id
1675+ )
1676+
16731677 res = self ._request (
16741678 "GET" ,
1675- "/edge-services/v1alpha1/current-plan" ,
1676- params = {
1677- "project_id" : project_id or self .client .default_project_id ,
1678- },
1679+ f"/edge-services/v1alpha1/current-plan/{ param_project_id } " ,
16791680 )
16801681
16811682 self ._throw_on_error (res )
@@ -1695,12 +1696,13 @@ def delete_current_plan(
16951696 result = api.delete_current_plan()
16961697 """
16971698
1699+ param_project_id = validate_path_param (
1700+ "project_id" , project_id or self .client .default_project_id
1701+ )
1702+
16981703 res = self ._request (
16991704 "DELETE" ,
1700- "/edge-services/v1alpha1/current-plan" ,
1701- params = {
1702- "project_id" : project_id or self .client .default_project_id ,
1703- },
1705+ f"/edge-services/v1alpha1/current-plan/{ param_project_id } " ,
17041706 )
17051707
17061708 self ._throw_on_error (res )
You can’t perform that action at this time.
0 commit comments