1515 MyTokenCreate ,
1616 MyTokenGet ,
1717 MyUserGet ,
18+ MyUsersGetParams ,
1819 MyUsersSearchQueryParams ,
1920 UserGet ,
2021 UsersSearchQueryParams ,
@@ -47,7 +48,7 @@ async def get_my_profile():
4748 "/me" ,
4849 status_code = status .HTTP_204_NO_CONTENT ,
4950)
50- async def update_my_profile (_profile : MyProfilePatch ):
51+ async def update_my_profile (_body : MyProfilePatch ):
5152 ...
5253
5354
@@ -57,7 +58,7 @@ async def update_my_profile(_profile: MyProfilePatch):
5758 deprecated = True ,
5859 description = "Use PATCH instead" ,
5960)
60- async def replace_my_profile (_profile : MyProfilePatch ):
61+ async def replace_my_profile (_body : MyProfilePatch ):
6162 ...
6263
6364
@@ -67,7 +68,7 @@ async def replace_my_profile(_profile: MyProfilePatch):
6768)
6869async def set_frontend_preference (
6970 preference_id : PreferenceIdentifier ,
70- body_item : PatchRequestBody ,
71+ _body : PatchRequestBody ,
7172):
7273 ...
7374
@@ -85,23 +86,25 @@ async def list_tokens():
8586 response_model = Envelope [MyTokenGet ],
8687 status_code = status .HTTP_201_CREATED ,
8788)
88- async def create_token (_token : MyTokenCreate ):
89+ async def create_token (_body : MyTokenCreate ):
8990 ...
9091
9192
9293@router .get (
9394 "/me/tokens/{service}" ,
9495 response_model = Envelope [MyTokenGet ],
9596)
96- async def get_token (_params : Annotated [_TokenPathParams , Depends ()]):
97+ async def get_token (
98+ _path : Annotated [_TokenPathParams , Depends ()],
99+ ):
97100 ...
98101
99102
100103@router .delete (
101104 "/me/tokens/{service}" ,
102105 status_code = status .HTTP_204_NO_CONTENT ,
103106)
104- async def delete_token (_params : Annotated [_TokenPathParams , Depends ()]):
107+ async def delete_token (_path : Annotated [_TokenPathParams , Depends ()]):
105108 ...
106109
107110
@@ -117,7 +120,9 @@ async def list_user_notifications():
117120 "/me/notifications" ,
118121 status_code = status .HTTP_204_NO_CONTENT ,
119122)
120- async def create_user_notification (_notification : UserNotificationCreate ):
123+ async def create_user_notification (
124+ _body : UserNotificationCreate ,
125+ ):
121126 ...
122127
123128
@@ -126,8 +131,8 @@ async def create_user_notification(_notification: UserNotificationCreate):
126131 status_code = status .HTTP_204_NO_CONTENT ,
127132)
128133async def mark_notification_as_read (
129- _params : Annotated [_NotificationPathParams , Depends ()],
130- _notification : UserNotificationPatch ,
134+ _path : Annotated [_NotificationPathParams , Depends ()],
135+ _body : UserNotificationPatch ,
131136):
132137 ...
133138
@@ -140,12 +145,20 @@ async def list_user_permissions():
140145 ...
141146
142147
148+ @router .get (
149+ "/me/users/{user_id}" ,
150+ response_model = Envelope [MyUserGet ],
151+ )
152+ async def get_user (_path : Annotated [MyUsersGetParams , Depends ()]):
153+ ...
154+
155+
143156@router .get (
144157 "/me/users:search" ,
145158 response_model = Envelope [list [MyUserGet ]],
146159 description = "Search among users who are publicly visible to the caller (i.e., me) based on their privacy settings." ,
147160)
148- async def search_users (_params : Annotated [MyUsersSearchQueryParams , Depends ()]):
161+ async def search_users (_query : Annotated [MyUsersSearchQueryParams , Depends ()]):
149162 ...
150163
151164
@@ -157,7 +170,7 @@ async def search_users(_params: Annotated[MyUsersSearchQueryParams, Depends()]):
157170 response_model = Envelope [list [UserGet ]],
158171 tags = _extra_tags ,
159172)
160- async def search_users_as_admin (_params : Annotated [UsersSearchQueryParams , Depends ()]):
173+ async def search_users_as_admin (_query : Annotated [UsersSearchQueryParams , Depends ()]):
161174 # NOTE: see `Search` in `Common Custom Methods` in https://cloud.google.com/apis/design/custom_methods
162175 ...
163176
0 commit comments