@@ -36,33 +36,119 @@ func NewAccountService(opts ...option.RequestOption) (r *AccountService) {
36
36
return
37
37
}
38
38
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
+ // ```
40
57
func (r * AccountService ) Get (ctx context.Context , body AccountGetParams , opts ... option.RequestOption ) (res * AccountGetResponse , err error ) {
41
58
opts = append (r .Options [:], opts ... )
42
59
path := "gitpod.v1.AccountService/GetAccount"
43
60
err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
44
61
return
45
62
}
46
63
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
+ // ```
49
83
func (r * AccountService ) Delete (ctx context.Context , body AccountDeleteParams , opts ... option.RequestOption ) (res * AccountDeleteResponse , err error ) {
50
84
opts = append (r .Options [:], opts ... )
51
85
path := "gitpod.v1.AccountService/DeleteAccount"
52
86
err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
53
87
return
54
88
}
55
89
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
+ // ```
57
116
func (r * AccountService ) GetSSOLoginURL (ctx context.Context , body AccountGetSSOLoginURLParams , opts ... option.RequestOption ) (res * AccountGetSSOLoginURLResponse , err error ) {
58
117
opts = append (r .Options [:], opts ... )
59
118
path := "gitpod.v1.AccountService/GetSSOLoginURL"
60
119
err = requestconfig .ExecuteNewRequest (ctx , http .MethodPost , path , body , & res , opts ... )
61
120
return
62
121
}
63
122
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
+ // ```
66
152
func (r * AccountService ) ListLoginProviders (ctx context.Context , params AccountListLoginProvidersParams , opts ... option.RequestOption ) (res * pagination.LoginProvidersPage [LoginProvider ], err error ) {
67
153
var raw * http.Response
68
154
opts = append (r .Options [:], opts ... )
@@ -80,8 +166,35 @@ func (r *AccountService) ListLoginProviders(ctx context.Context, params AccountL
80
166
return res , nil
81
167
}
82
168
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
+ // ```
85
198
func (r * AccountService ) ListLoginProvidersAutoPaging (ctx context.Context , params AccountListLoginProvidersParams , opts ... option.RequestOption ) * pagination.LoginProvidersPageAutoPager [LoginProvider ] {
86
199
return pagination .NewLoginProvidersPageAutoPager (r .ListLoginProviders (ctx , params , opts ... ))
87
200
}
0 commit comments