@@ -36,33 +36,119 @@ func NewAccountService(opts ...option.RequestOption) (r *AccountService) {
3636 return
3737}
3838
39- // GetAccount retrieves a single Account.
39+ // Gets information about the currently authenticated account.
40+ //
41+ // Use this method to:
42+ //
43+ // - Retrieve account profile information
44+ // - Check organization memberships
45+ // - View account settings
46+ // - Get joinable organizations
47+ //
48+ // ### Examples
49+ //
50+ // - Get account details:
51+ //
52+ // Retrieves information about the authenticated account.
53+ //
54+ // ```yaml
55+ // {}
56+ // ```
4057func (r * AccountService ) Get (ctx context.Context , body AccountGetParams , opts ... option.RequestOption ) (res * AccountGetResponse , err error ) {
4158 opts = append (r .Options [:], opts ... )
4259 path := "gitpod.v1.AccountService/GetAccount"
4360 err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
4461 return
4562}
4663
47- // DeleteAccount deletes an Account. To Delete an Account, the Account must not be
48- // an active member of any Organization.
64+ // Deletes an account permanently.
65+ //
66+ // Use this method to:
67+ //
68+ // - Remove unused accounts
69+ // - Clean up test accounts
70+ // - Complete account deletion requests
71+ //
72+ // The account must not be an active member of any organization.
73+ //
74+ // ### Examples
75+ //
76+ // - Delete account:
77+ //
78+ // Permanently removes an account.
79+ //
80+ // ```yaml
81+ // accountId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
82+ // ```
4983func (r * AccountService ) Delete (ctx context.Context , body AccountDeleteParams , opts ... option.RequestOption ) (res * AccountDeleteResponse , err error ) {
5084 opts = append (r .Options [:], opts ... )
5185 path := "gitpod.v1.AccountService/DeleteAccount"
5286 err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
5387 return
5488}
5589
56- // GetSSOLoginURL returns the URL to redirect the user to for SSO login.
90+ // Gets the SSO login URL for a specific email domain.
91+ //
92+ // Use this method to:
93+ //
94+ // - Initiate SSO authentication
95+ // - Get organization-specific login URLs
96+ // - Handle SSO redirects
97+ //
98+ // ### Examples
99+ //
100+ // - Get login URL:
101+ //
102+ // Retrieves SSO URL for email domain.
103+ //
104+ // ```yaml
105+ 106+ // ```
107+ //
108+ // - Get URL with return path:
109+ //
110+ // Gets SSO URL with specific return location.
111+ //
112+ // ```yaml
113+ 114+ // returnTo: "https://gitpod.io/workspaces"
115+ // ```
57116func (r * AccountService ) GetSSOLoginURL (ctx context.Context , body AccountGetSSOLoginURLParams , opts ... option.RequestOption ) (res * AccountGetSSOLoginURLResponse , err error ) {
58117 opts = append (r .Options [:], opts ... )
59118 path := "gitpod.v1.AccountService/GetSSOLoginURL"
60119 err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
61120 return
62121}
63122
64- // ListLoginProviders returns the list of login providers matching the provided
65- // filters.
123+ // Lists available login providers with optional filtering.
124+ //
125+ // Use this method to:
126+ //
127+ // - View supported authentication methods
128+ // - Get provider-specific login URLs
129+ // - Filter providers by invite
130+ //
131+ // ### Examples
132+ //
133+ // - List all providers:
134+ //
135+ // Shows all available login providers.
136+ //
137+ // ```yaml
138+ // pagination:
139+ // pageSize: 20
140+ // ```
141+ //
142+ // - List for specific invite:
143+ //
144+ // Shows providers available for an invite.
145+ //
146+ // ```yaml
147+ // filter:
148+ // inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
149+ // pagination:
150+ // pageSize: 20
151+ // ```
66152func (r * AccountService ) ListLoginProviders (ctx context.Context , params AccountListLoginProvidersParams , opts ... option.RequestOption ) (res * pagination.LoginProvidersPage [LoginProvider ], err error ) {
67153 var raw * http.Response
68154 opts = append (r .Options [:], opts ... )
@@ -80,8 +166,35 @@ func (r *AccountService) ListLoginProviders(ctx context.Context, params AccountL
80166 return res , nil
81167}
82168
83- // ListLoginProviders returns the list of login providers matching the provided
84- // filters.
169+ // Lists available login providers with optional filtering.
170+ //
171+ // Use this method to:
172+ //
173+ // - View supported authentication methods
174+ // - Get provider-specific login URLs
175+ // - Filter providers by invite
176+ //
177+ // ### Examples
178+ //
179+ // - List all providers:
180+ //
181+ // Shows all available login providers.
182+ //
183+ // ```yaml
184+ // pagination:
185+ // pageSize: 20
186+ // ```
187+ //
188+ // - List for specific invite:
189+ //
190+ // Shows providers available for an invite.
191+ //
192+ // ```yaml
193+ // filter:
194+ // inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
195+ // pagination:
196+ // pageSize: 20
197+ // ```
85198func (r * AccountService ) ListLoginProvidersAutoPaging (ctx context.Context , params AccountListLoginProvidersParams , opts ... option.RequestOption ) * pagination.LoginProvidersPageAutoPager [LoginProvider ] {
86199 return pagination .NewLoginProvidersPageAutoPager (r .ListLoginProviders (ctx , params , opts ... ))
87200}
0 commit comments