@@ -66,7 +66,24 @@ def retrieve(
66
66
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
67
67
) -> AccountRetrieveResponse :
68
68
"""
69
- GetAccount retrieves a single Account.
69
+ Gets information about the currently authenticated account.
70
+
71
+ Use this method to:
72
+
73
+ - Retrieve account profile information
74
+ - Check organization memberships
75
+ - View account settings
76
+ - Get joinable organizations
77
+
78
+ ### Examples
79
+
80
+ - Get account details:
81
+
82
+ Retrieves information about the authenticated account.
83
+
84
+ ```yaml
85
+ {}
86
+ ```
70
87
71
88
Args:
72
89
extra_headers: Send extra headers
@@ -97,10 +114,26 @@ def delete(
97
114
extra_body : Body | None = None ,
98
115
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
99
116
) -> object :
100
- """DeleteAccount deletes an Account.
117
+ """
118
+ Deletes an account permanently.
119
+
120
+ Use this method to:
101
121
102
- To Delete an Account, the Account must not be
103
- an active member of any Organization.
122
+ - Remove unused accounts
123
+ - Clean up test accounts
124
+ - Complete account deletion requests
125
+
126
+ The account must not be an active member of any organization.
127
+
128
+ ### Examples
129
+
130
+ - Delete account:
131
+
132
+ Permanently removes an account.
133
+
134
+ ```yaml
135
+ accountId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
136
+ ```
104
137
105
138
Args:
106
139
extra_headers: Send extra headers
@@ -133,7 +166,32 @@ def get_sso_login_url(
133
166
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
134
167
) -> AccountGetSSOLoginURLResponse :
135
168
"""
136
- GetSSOLoginURL returns the URL to redirect the user to for SSO login.
169
+ Gets the SSO login URL for a specific email domain.
170
+
171
+ Use this method to:
172
+
173
+ - Initiate SSO authentication
174
+ - Get organization-specific login URLs
175
+ - Handle SSO redirects
176
+
177
+ ### Examples
178
+
179
+ - Get login URL:
180
+
181
+ Retrieves SSO URL for email domain.
182
+
183
+ ```yaml
184
+ email: "user@company.com"
185
+ ```
186
+
187
+ - Get URL with return path:
188
+
189
+ Gets SSO URL with specific return location.
190
+
191
+ ```yaml
192
+ email: "user@company.com"
193
+ returnTo: "https://gitpod.io/workspaces"
194
+ ```
137
195
138
196
Args:
139
197
email: email is the email the user wants to login with
@@ -178,8 +236,35 @@ def list_login_providers(
178
236
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
179
237
) -> SyncLoginProvidersPage [LoginProvider ]:
180
238
"""
181
- ListLoginProviders returns the list of login providers matching the provided
182
- filters.
239
+ Lists available login providers with optional filtering.
240
+
241
+ Use this method to:
242
+
243
+ - View supported authentication methods
244
+ - Get provider-specific login URLs
245
+ - Filter providers by invite
246
+
247
+ ### Examples
248
+
249
+ - List all providers:
250
+
251
+ Shows all available login providers.
252
+
253
+ ```yaml
254
+ pagination:
255
+ pageSize: 20
256
+ ```
257
+
258
+ - List for specific invite:
259
+
260
+ Shows providers available for an invite.
261
+
262
+ ```yaml
263
+ filter:
264
+ inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
265
+ pagination:
266
+ pageSize: 20
267
+ ```
183
268
184
269
Args:
185
270
filter: filter contains the filter options for listing login methods
@@ -254,7 +339,24 @@ async def retrieve(
254
339
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
255
340
) -> AccountRetrieveResponse :
256
341
"""
257
- GetAccount retrieves a single Account.
342
+ Gets information about the currently authenticated account.
343
+
344
+ Use this method to:
345
+
346
+ - Retrieve account profile information
347
+ - Check organization memberships
348
+ - View account settings
349
+ - Get joinable organizations
350
+
351
+ ### Examples
352
+
353
+ - Get account details:
354
+
355
+ Retrieves information about the authenticated account.
356
+
357
+ ```yaml
358
+ {}
359
+ ```
258
360
259
361
Args:
260
362
extra_headers: Send extra headers
@@ -285,10 +387,26 @@ async def delete(
285
387
extra_body : Body | None = None ,
286
388
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
287
389
) -> object :
288
- """DeleteAccount deletes an Account.
390
+ """
391
+ Deletes an account permanently.
392
+
393
+ Use this method to:
289
394
290
- To Delete an Account, the Account must not be
291
- an active member of any Organization.
395
+ - Remove unused accounts
396
+ - Clean up test accounts
397
+ - Complete account deletion requests
398
+
399
+ The account must not be an active member of any organization.
400
+
401
+ ### Examples
402
+
403
+ - Delete account:
404
+
405
+ Permanently removes an account.
406
+
407
+ ```yaml
408
+ accountId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
409
+ ```
292
410
293
411
Args:
294
412
extra_headers: Send extra headers
@@ -321,7 +439,32 @@ async def get_sso_login_url(
321
439
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
322
440
) -> AccountGetSSOLoginURLResponse :
323
441
"""
324
- GetSSOLoginURL returns the URL to redirect the user to for SSO login.
442
+ Gets the SSO login URL for a specific email domain.
443
+
444
+ Use this method to:
445
+
446
+ - Initiate SSO authentication
447
+ - Get organization-specific login URLs
448
+ - Handle SSO redirects
449
+
450
+ ### Examples
451
+
452
+ - Get login URL:
453
+
454
+ Retrieves SSO URL for email domain.
455
+
456
+ ```yaml
457
+ email: "user@company.com"
458
+ ```
459
+
460
+ - Get URL with return path:
461
+
462
+ Gets SSO URL with specific return location.
463
+
464
+ ```yaml
465
+ email: "user@company.com"
466
+ returnTo: "https://gitpod.io/workspaces"
467
+ ```
325
468
326
469
Args:
327
470
email: email is the email the user wants to login with
@@ -366,8 +509,35 @@ def list_login_providers(
366
509
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
367
510
) -> AsyncPaginator [LoginProvider , AsyncLoginProvidersPage [LoginProvider ]]:
368
511
"""
369
- ListLoginProviders returns the list of login providers matching the provided
370
- filters.
512
+ Lists available login providers with optional filtering.
513
+
514
+ Use this method to:
515
+
516
+ - View supported authentication methods
517
+ - Get provider-specific login URLs
518
+ - Filter providers by invite
519
+
520
+ ### Examples
521
+
522
+ - List all providers:
523
+
524
+ Shows all available login providers.
525
+
526
+ ```yaml
527
+ pagination:
528
+ pageSize: 20
529
+ ```
530
+
531
+ - List for specific invite:
532
+
533
+ Shows providers available for an invite.
534
+
535
+ ```yaml
536
+ filter:
537
+ inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
538
+ pagination:
539
+ pageSize: 20
540
+ ```
371
541
372
542
Args:
373
543
filter: filter contains the filter options for listing login methods
0 commit comments