Skip to content

Commit 64024ce

Browse files
committed
@sanderegg review: rename
1 parent 677566e commit 64024ce

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

api/specs/web-server/_folders.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def create_folder(
4848
response_model=Envelope[list[FolderGet]],
4949
)
5050
async def list_folders(
51-
_q: Annotated[as_query(FoldersListQueryParams), Depends()],
51+
_query: Annotated[as_query(FoldersListQueryParams), Depends()],
5252
):
5353
...
5454

@@ -58,7 +58,7 @@ async def list_folders(
5858
response_model=Envelope[list[FolderGet]],
5959
)
6060
async def list_folders_full_search(
61-
_q: Annotated[as_query(FolderSearchQueryParams), Depends()],
61+
_query: Annotated[as_query(FolderSearchQueryParams), Depends()],
6262
):
6363
...
6464

@@ -68,7 +68,7 @@ async def list_folders_full_search(
6868
response_model=Envelope[FolderGet],
6969
)
7070
async def get_folder(
71-
_p: Annotated[FoldersPathParams, Depends()],
71+
_path: Annotated[FoldersPathParams, Depends()],
7272
):
7373
...
7474

@@ -78,7 +78,7 @@ async def get_folder(
7878
response_model=Envelope[FolderGet],
7979
)
8080
async def replace_folder(
81-
_p: Annotated[FoldersPathParams, Depends()],
81+
_path: Annotated[FoldersPathParams, Depends()],
8282
_b: PutFolderBodyParams,
8383
):
8484
...
@@ -89,6 +89,6 @@ async def replace_folder(
8989
status_code=status.HTTP_204_NO_CONTENT,
9090
)
9191
async def delete_folder(
92-
_p: Annotated[FoldersPathParams, Depends()],
92+
_path: Annotated[FoldersPathParams, Depends()],
9393
):
9494
...

api/specs/web-server/_groups.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def list_groups():
4848
response_model=Envelope[GroupGet],
4949
status_code=status.HTTP_201_CREATED,
5050
)
51-
async def create_group(_b: GroupCreate):
51+
async def create_group(_body: GroupCreate):
5252
"""
5353
Creates an organization group
5454
"""
@@ -58,7 +58,7 @@ async def create_group(_b: GroupCreate):
5858
"/groups/{gid}",
5959
response_model=Envelope[GroupGet],
6060
)
61-
async def get_group(_p: Annotated[_GroupPathParams, Depends()]):
61+
async def get_group(_path: Annotated[_GroupPathParams, Depends()]):
6262
"""
6363
Get an organization group
6464
"""
@@ -69,8 +69,8 @@ async def get_group(_p: Annotated[_GroupPathParams, Depends()]):
6969
response_model=Envelope[GroupGet],
7070
)
7171
async def update_group(
72-
_p: Annotated[_GroupPathParams, Depends()],
73-
_b: GroupUpdate,
72+
_path: Annotated[_GroupPathParams, Depends()],
73+
_body: GroupUpdate,
7474
):
7575
"""
7676
Updates organization groups
@@ -81,7 +81,7 @@ async def update_group(
8181
"/groups/{gid}",
8282
status_code=status.HTTP_204_NO_CONTENT,
8383
)
84-
async def delete_group(_p: Annotated[_GroupPathParams, Depends()]):
84+
async def delete_group(_path: Annotated[_GroupPathParams, Depends()]):
8585
"""
8686
Deletes organization groups
8787
"""
@@ -91,7 +91,7 @@ async def delete_group(_p: Annotated[_GroupPathParams, Depends()]):
9191
"/groups/{gid}/users",
9292
response_model=Envelope[list[GroupUserGet]],
9393
)
94-
async def get_all_group_users(_p: Annotated[_GroupPathParams, Depends()]):
94+
async def get_all_group_users(_path: Annotated[_GroupPathParams, Depends()]):
9595
"""
9696
Gets users in organization groups
9797
"""
@@ -102,8 +102,8 @@ async def get_all_group_users(_p: Annotated[_GroupPathParams, Depends()]):
102102
status_code=status.HTTP_204_NO_CONTENT,
103103
)
104104
async def add_group_user(
105-
_p: Annotated[_GroupPathParams, Depends()],
106-
_b: GroupUserAdd,
105+
_path: Annotated[_GroupPathParams, Depends()],
106+
_body: GroupUserAdd,
107107
):
108108
"""
109109
Adds a user to an organization group
@@ -115,7 +115,7 @@ async def add_group_user(
115115
response_model=Envelope[GroupUserGet],
116116
)
117117
async def get_group_user(
118-
_p: Annotated[_GroupUserPathParams, Depends()],
118+
_path: Annotated[_GroupUserPathParams, Depends()],
119119
):
120120
"""
121121
Gets specific user in an organization group
@@ -127,8 +127,8 @@ async def get_group_user(
127127
response_model=Envelope[GroupUserGet],
128128
)
129129
async def update_group_user(
130-
_p: Annotated[_GroupUserPathParams, Depends()],
131-
_b: GroupUserUpdate,
130+
_path: Annotated[_GroupUserPathParams, Depends()],
131+
_body: GroupUserUpdate,
132132
):
133133
"""
134134
Updates user (access-rights) to an organization group
@@ -140,7 +140,7 @@ async def update_group_user(
140140
status_code=status.HTTP_204_NO_CONTENT,
141141
)
142142
async def delete_group_user(
143-
_p: Annotated[_GroupUserPathParams, Depends()],
143+
_path: Annotated[_GroupUserPathParams, Depends()],
144144
):
145145
"""
146146
Removes a user from an organization group
@@ -157,8 +157,8 @@ async def delete_group_user(
157157
response_model=Envelope[dict[str, Any]],
158158
)
159159
async def get_group_classifiers(
160-
_p: Annotated[_GroupPathParams, Depends()],
161-
_q: Annotated[_ClassifiersQuery, Depends()],
160+
_path: Annotated[_GroupPathParams, Depends()],
161+
_query: Annotated[_ClassifiersQuery, Depends()],
162162
):
163163
...
164164

api/specs/web-server/_projects_crud.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class _ProjectCreateHeaderParams(BaseModel):
7070
)
7171
async def create_project(
7272
_h: Annotated[_ProjectCreateHeaderParams, Depends()],
73-
_p: Annotated[ProjectCreateParams, Depends()],
73+
_path: Annotated[ProjectCreateParams, Depends()],
7474
_b: ProjectCreateNew | ProjectCopyOverride,
7575
):
7676
...
@@ -81,7 +81,7 @@ async def create_project(
8181
response_model=Page[ProjectListItem],
8282
)
8383
async def list_projects(
84-
_q: Annotated[as_query(ProjectsListQueryParams), Depends()],
84+
_query: Annotated[as_query(ProjectsListQueryParams), Depends()],
8585
):
8686
...
8787

@@ -91,7 +91,7 @@ async def list_projects(
9191
response_model=Envelope[ProjectGet],
9292
)
9393
async def get_active_project(
94-
_q: Annotated[ProjectActiveQueryParams, Depends()],
94+
_query: Annotated[ProjectActiveQueryParams, Depends()],
9595
):
9696
...
9797

@@ -101,7 +101,7 @@ async def get_active_project(
101101
response_model=Envelope[ProjectGet],
102102
)
103103
async def get_project(
104-
_p: Annotated[ProjectPathParams, Depends()],
104+
_path: Annotated[ProjectPathParams, Depends()],
105105
):
106106
...
107107

@@ -112,7 +112,7 @@ async def get_project(
112112
status_code=status.HTTP_204_NO_CONTENT,
113113
)
114114
async def patch_project(
115-
_p: Annotated[ProjectPathParams, Depends()],
115+
_path: Annotated[ProjectPathParams, Depends()],
116116
_b: ProjectPatch,
117117
):
118118
...
@@ -123,7 +123,7 @@ async def patch_project(
123123
status_code=status.HTTP_204_NO_CONTENT,
124124
)
125125
async def delete_project(
126-
_p: Annotated[ProjectPathParams, Depends()],
126+
_path: Annotated[ProjectPathParams, Depends()],
127127
):
128128
...
129129

@@ -134,7 +134,7 @@ async def delete_project(
134134
status_code=status.HTTP_201_CREATED,
135135
)
136136
async def clone_project(
137-
_p: Annotated[ProjectPathParams, Depends()],
137+
_path: Annotated[ProjectPathParams, Depends()],
138138
):
139139
...
140140

@@ -144,7 +144,7 @@ async def clone_project(
144144
response_model=Page[ProjectListItem],
145145
)
146146
async def list_projects_full_search(
147-
_q: Annotated[as_query(ProjectsSearchQueryParams), Depends()],
147+
_query: Annotated[as_query(ProjectsSearchQueryParams), Depends()],
148148
):
149149
...
150150

@@ -155,6 +155,6 @@ async def list_projects_full_search(
155155
status_code=status.HTTP_200_OK,
156156
)
157157
async def get_project_inactivity(
158-
_p: Annotated[ProjectPathParams, Depends()],
158+
_path: Annotated[ProjectPathParams, Depends()],
159159
):
160160
...

api/specs/web-server/_resource_usage.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
tags=["usage"],
5555
)
5656
async def list_resource_usage_services(
57-
_q: Annotated[as_query(ServicesResourceUsagesListQueryParams), Depends()],
57+
_query: Annotated[as_query(ServicesResourceUsagesListQueryParams), Depends()],
5858
):
5959
...
6060

@@ -67,7 +67,7 @@ async def list_resource_usage_services(
6767
tags=["usage"],
6868
)
6969
async def list_osparc_credits_aggregated_usages(
70-
_q: Annotated[as_query(ServicesAggregatedUsagesListQueryParams), Depends()]
70+
_query: Annotated[as_query(ServicesAggregatedUsagesListQueryParams), Depends()]
7171
):
7272
...
7373

@@ -85,7 +85,7 @@ async def list_osparc_credits_aggregated_usages(
8585
"user services (user and product are taken from context, optionally wallet_id parameter might be provided).",
8686
)
8787
async def export_resource_usage_services(
88-
_q: Annotated[as_query(ServicesResourceUsagesReportQueryParams), Depends()]
88+
_query: Annotated[as_query(ServicesResourceUsagesReportQueryParams), Depends()]
8989
):
9090
...
9191

@@ -97,7 +97,7 @@ async def export_resource_usage_services(
9797
tags=["pricing-plans"],
9898
)
9999
async def get_pricing_plan_unit(
100-
_p: Annotated[PricingPlanUnitGetPathParams, Depends()],
100+
_path: Annotated[PricingPlanUnitGetPathParams, Depends()],
101101
):
102102
...
103103

@@ -123,7 +123,7 @@ async def list_pricing_plans():
123123
tags=["admin"],
124124
)
125125
async def get_pricing_plan(
126-
_p: Annotated[PricingPlanGetPathParams, Depends()],
126+
_path: Annotated[PricingPlanGetPathParams, Depends()],
127127
):
128128
...
129129

@@ -147,7 +147,7 @@ async def create_pricing_plan(
147147
tags=["admin"],
148148
)
149149
async def update_pricing_plan(
150-
_p: Annotated[PricingPlanGetPathParams, Depends()],
150+
_path: Annotated[PricingPlanGetPathParams, Depends()],
151151
_b: UpdatePricingPlanBodyParams,
152152
):
153153
...
@@ -163,7 +163,7 @@ async def update_pricing_plan(
163163
tags=["admin"],
164164
)
165165
async def get_pricing_unit(
166-
_p: Annotated[PricingUnitGetPathParams, Depends()],
166+
_path: Annotated[PricingUnitGetPathParams, Depends()],
167167
):
168168
...
169169

@@ -175,7 +175,7 @@ async def get_pricing_unit(
175175
tags=["admin"],
176176
)
177177
async def create_pricing_unit(
178-
_p: Annotated[PricingPlanGetPathParams, Depends()],
178+
_path: Annotated[PricingPlanGetPathParams, Depends()],
179179
_b: CreatePricingUnitBodyParams,
180180
):
181181
...
@@ -188,7 +188,7 @@ async def create_pricing_unit(
188188
tags=["admin"],
189189
)
190190
async def update_pricing_unit(
191-
_p: Annotated[PricingUnitGetPathParams, Depends()],
191+
_path: Annotated[PricingUnitGetPathParams, Depends()],
192192
_b: UpdatePricingUnitBodyParams,
193193
):
194194
...
@@ -204,7 +204,7 @@ async def update_pricing_unit(
204204
tags=["admin"],
205205
)
206206
async def list_connected_services_to_pricing_plan(
207-
_p: Annotated[PricingPlanGetPathParams, Depends()],
207+
_path: Annotated[PricingPlanGetPathParams, Depends()],
208208
):
209209
...
210210

@@ -216,7 +216,7 @@ async def list_connected_services_to_pricing_plan(
216216
tags=["admin"],
217217
)
218218
async def connect_service_to_pricing_plan(
219-
_p: Annotated[PricingPlanGetPathParams, Depends()],
219+
_path: Annotated[PricingPlanGetPathParams, Depends()],
220220
_b: ConnectServiceToPricingPlanBodyParams,
221221
):
222222
...

api/specs/web-server/_trash.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def empty_trash():
4848
},
4949
)
5050
def trash_project(
51-
_p: Annotated[ProjectPathParams, Depends()],
52-
_q: Annotated[RemoveQueryParams, Depends()],
51+
_path: Annotated[ProjectPathParams, Depends()],
52+
_query: Annotated[RemoveQueryParams, Depends()],
5353
):
5454
...
5555

@@ -60,7 +60,7 @@ def trash_project(
6060
status_code=status.HTTP_204_NO_CONTENT,
6161
)
6262
def untrash_project(
63-
_p: Annotated[ProjectPathParams, Depends()],
63+
_path: Annotated[ProjectPathParams, Depends()],
6464
):
6565
...
6666

@@ -81,8 +81,8 @@ def untrash_project(
8181
},
8282
)
8383
def trash_folder(
84-
_p: Annotated[FoldersPathParams, Depends()],
85-
_q: Annotated[RemoveQueryParams_duplicated, Depends()],
84+
_path: Annotated[FoldersPathParams, Depends()],
85+
_query: Annotated[RemoveQueryParams_duplicated, Depends()],
8686
):
8787
...
8888

@@ -93,6 +93,6 @@ def trash_folder(
9393
status_code=status.HTTP_204_NO_CONTENT,
9494
)
9595
def untrash_folder(
96-
_p: Annotated[FoldersPathParams, Depends()],
96+
_path: Annotated[FoldersPathParams, Depends()],
9797
):
9898
...

0 commit comments

Comments
 (0)