3939 "/me" ,
4040 response_model = Envelope [MyProfileGet ],
4141)
42- async def get_my_profile ():
43- ...
42+ async def get_my_profile (): ...
4443
4544
4645@router .patch (
4746 "/me" ,
4847 status_code = status .HTTP_204_NO_CONTENT ,
4948)
50- async def update_my_profile (_body : MyProfilePatch ):
51- ...
52-
53-
54- @router .put (
55- "/me" ,
56- status_code = status .HTTP_204_NO_CONTENT ,
57- deprecated = True ,
58- description = "Use PATCH instead" ,
59- )
60- async def replace_my_profile (_body : MyProfilePatch ):
61- ...
49+ async def update_my_profile (_body : MyProfilePatch ): ...
6250
6351
6452@router .patch (
@@ -68,25 +56,22 @@ async def replace_my_profile(_body: MyProfilePatch):
6856async def set_frontend_preference (
6957 preference_id : PreferenceIdentifier ,
7058 _body : PatchRequestBody ,
71- ):
72- ...
59+ ): ...
7360
7461
7562@router .get (
7663 "/me/tokens" ,
7764 response_model = Envelope [list [MyTokenGet ]],
7865)
79- async def list_tokens ():
80- ...
66+ async def list_tokens (): ...
8167
8268
8369@router .post (
8470 "/me/tokens" ,
8571 response_model = Envelope [MyTokenGet ],
8672 status_code = status .HTTP_201_CREATED ,
8773)
88- async def create_token (_body : MyTokenCreate ):
89- ...
74+ async def create_token (_body : MyTokenCreate ): ...
9075
9176
9277@router .get (
@@ -95,24 +80,21 @@ async def create_token(_body: MyTokenCreate):
9580)
9681async def get_token (
9782 _path : Annotated [_TokenPathParams , Depends ()],
98- ):
99- ...
83+ ): ...
10084
10185
10286@router .delete (
10387 "/me/tokens/{service}" ,
10488 status_code = status .HTTP_204_NO_CONTENT ,
10589)
106- async def delete_token (_path : Annotated [_TokenPathParams , Depends ()]):
107- ...
90+ async def delete_token (_path : Annotated [_TokenPathParams , Depends ()]): ...
10891
10992
11093@router .get (
11194 "/me/notifications" ,
11295 response_model = Envelope [list [UserNotification ]],
11396)
114- async def list_user_notifications ():
115- ...
97+ async def list_user_notifications (): ...
11698
11799
118100@router .post (
@@ -121,8 +103,7 @@ async def list_user_notifications():
121103)
122104async def create_user_notification (
123105 _body : UserNotificationCreate ,
124- ):
125- ...
106+ ): ...
126107
127108
128109@router .patch (
@@ -132,16 +113,14 @@ async def create_user_notification(
132113async def mark_notification_as_read (
133114 _path : Annotated [_NotificationPathParams , Depends ()],
134115 _body : UserNotificationPatch ,
135- ):
136- ...
116+ ): ...
137117
138118
139119@router .get (
140120 "/me/permissions" ,
141121 response_model = Envelope [list [MyPermissionGet ]],
142122)
143- async def list_user_permissions ():
144- ...
123+ async def list_user_permissions (): ...
145124
146125
147126#
@@ -154,8 +133,7 @@ async def list_user_permissions():
154133 response_model = Envelope [list [UserGet ]],
155134 description = "Search among users who are publicly visible to the caller (i.e., me) based on their privacy settings." ,
156135)
157- async def search_users (_body : UsersSearch ):
158- ...
136+ async def search_users (_body : UsersSearch ): ...
159137
160138
161139#
@@ -171,7 +149,7 @@ async def search_users(_body: UsersSearch):
171149 tags = _extra_tags ,
172150)
173151async def search_users_for_admin (
174- _query : Annotated [UsersForAdminSearchQueryParams , Depends ()]
152+ _query : Annotated [UsersForAdminSearchQueryParams , Depends ()],
175153):
176154 # NOTE: see `Search` in `Common Custom Methods` in https://cloud.google.com/apis/design/custom_methods
177155 ...
@@ -182,5 +160,4 @@ async def search_users_for_admin(
182160 response_model = Envelope [UserForAdminGet ],
183161 tags = _extra_tags ,
184162)
185- async def pre_register_user_for_admin (_body : PreRegisteredUserGet ):
186- ...
163+ async def pre_register_user_for_admin (_body : PreRegisteredUserGet ): ...
0 commit comments