@@ -58,12 +58,8 @@ def with_streaming_response(self) -> AccountsResourceWithStreamingResponse:
58
58
def retrieve (
59
59
self ,
60
60
* ,
61
- encoding : Literal [ "proto" , "json" ] ,
61
+ body : object ,
62
62
connect_protocol_version : Literal [1 ],
63
- base64 : bool | NotGiven = NOT_GIVEN ,
64
- compression : Literal ["identity" , "gzip" , "br" ] | NotGiven = NOT_GIVEN ,
65
- connect : Literal ["v1" ] | NotGiven = NOT_GIVEN ,
66
- message : str | NotGiven = NOT_GIVEN ,
67
63
connect_timeout_ms : float | NotGiven = NOT_GIVEN ,
68
64
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
65
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -76,17 +72,8 @@ def retrieve(
76
72
GetAccount retrieves a single Account.
77
73
78
74
Args:
79
- encoding: Define which encoding or 'Message-Codec' to use
80
-
81
75
connect_protocol_version: Define the version of the Connect protocol
82
76
83
- base64: Specifies if the message query param is base64 encoded, which may be required
84
- for binary data
85
-
86
- compression: Which compression algorithm to use for this request
87
-
88
- connect: Define the version of the Connect protocol
89
-
90
77
connect_timeout_ms: Define the timeout, in ms
91
78
92
79
extra_headers: Send extra headers
@@ -106,23 +93,11 @@ def retrieve(
106
93
),
107
94
** (extra_headers or {}),
108
95
}
109
- return self ._get (
96
+ return self ._post (
110
97
"/gitpod.v1.AccountService/GetAccount" ,
98
+ body = maybe_transform (body , account_retrieve_params .AccountRetrieveParams ),
111
99
options = make_request_options (
112
- extra_headers = extra_headers ,
113
- extra_query = extra_query ,
114
- extra_body = extra_body ,
115
- timeout = timeout ,
116
- query = maybe_transform (
117
- {
118
- "encoding" : encoding ,
119
- "base64" : base64 ,
120
- "compression" : compression ,
121
- "connect" : connect ,
122
- "message" : message ,
123
- },
124
- account_retrieve_params .AccountRetrieveParams ,
125
- ),
100
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
126
101
),
127
102
cast_to = AccountRetrieveResponse ,
128
103
)
@@ -179,12 +154,9 @@ def delete(
179
154
def get_sso_login_url (
180
155
self ,
181
156
* ,
182
- encoding : Literal [ "proto" , "json" ] ,
157
+ return_to : str ,
183
158
connect_protocol_version : Literal [1 ],
184
- base64 : bool | NotGiven = NOT_GIVEN ,
185
- compression : Literal ["identity" , "gzip" , "br" ] | NotGiven = NOT_GIVEN ,
186
- connect : Literal ["v1" ] | NotGiven = NOT_GIVEN ,
187
- message : str | NotGiven = NOT_GIVEN ,
159
+ email : str | NotGiven = NOT_GIVEN ,
188
160
connect_timeout_ms : float | NotGiven = NOT_GIVEN ,
189
161
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
190
162
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -197,16 +169,11 @@ def get_sso_login_url(
197
169
GetSSOLoginURL returns the URL to redirect the user to for SSO login.
198
170
199
171
Args:
200
- encoding: Define which encoding or 'Message-Codec' to use
172
+ return_to: return_to is the URL the user will be redirected to after login
201
173
202
174
connect_protocol_version: Define the version of the Connect protocol
203
175
204
- base64: Specifies if the message query param is base64 encoded, which may be required
205
- for binary data
206
-
207
- compression: Which compression algorithm to use for this request
208
-
209
- connect: Define the version of the Connect protocol
176
+ email: email is the email the user wants to login with
210
177
211
178
connect_timeout_ms: Define the timeout, in ms
212
179
@@ -227,23 +194,17 @@ def get_sso_login_url(
227
194
),
228
195
** (extra_headers or {}),
229
196
}
230
- return self ._get (
197
+ return self ._post (
231
198
"/gitpod.v1.AccountService/GetSSOLoginURL" ,
199
+ body = maybe_transform (
200
+ {
201
+ "return_to" : return_to ,
202
+ "email" : email ,
203
+ },
204
+ account_get_sso_login_url_params .AccountGetSSOLoginURLParams ,
205
+ ),
232
206
options = make_request_options (
233
- extra_headers = extra_headers ,
234
- extra_query = extra_query ,
235
- extra_body = extra_body ,
236
- timeout = timeout ,
237
- query = maybe_transform (
238
- {
239
- "encoding" : encoding ,
240
- "base64" : base64 ,
241
- "compression" : compression ,
242
- "connect" : connect ,
243
- "message" : message ,
244
- },
245
- account_get_sso_login_url_params .AccountGetSSOLoginURLParams ,
246
- ),
207
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
247
208
),
248
209
cast_to = AccountGetSSOLoginURLResponse ,
249
210
)
@@ -345,12 +306,8 @@ def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse:
345
306
async def retrieve (
346
307
self ,
347
308
* ,
348
- encoding : Literal [ "proto" , "json" ] ,
309
+ body : object ,
349
310
connect_protocol_version : Literal [1 ],
350
- base64 : bool | NotGiven = NOT_GIVEN ,
351
- compression : Literal ["identity" , "gzip" , "br" ] | NotGiven = NOT_GIVEN ,
352
- connect : Literal ["v1" ] | NotGiven = NOT_GIVEN ,
353
- message : str | NotGiven = NOT_GIVEN ,
354
311
connect_timeout_ms : float | NotGiven = NOT_GIVEN ,
355
312
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
356
313
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -363,17 +320,8 @@ async def retrieve(
363
320
GetAccount retrieves a single Account.
364
321
365
322
Args:
366
- encoding: Define which encoding or 'Message-Codec' to use
367
-
368
323
connect_protocol_version: Define the version of the Connect protocol
369
324
370
- base64: Specifies if the message query param is base64 encoded, which may be required
371
- for binary data
372
-
373
- compression: Which compression algorithm to use for this request
374
-
375
- connect: Define the version of the Connect protocol
376
-
377
325
connect_timeout_ms: Define the timeout, in ms
378
326
379
327
extra_headers: Send extra headers
@@ -393,23 +341,11 @@ async def retrieve(
393
341
),
394
342
** (extra_headers or {}),
395
343
}
396
- return await self ._get (
344
+ return await self ._post (
397
345
"/gitpod.v1.AccountService/GetAccount" ,
346
+ body = await async_maybe_transform (body , account_retrieve_params .AccountRetrieveParams ),
398
347
options = make_request_options (
399
- extra_headers = extra_headers ,
400
- extra_query = extra_query ,
401
- extra_body = extra_body ,
402
- timeout = timeout ,
403
- query = await async_maybe_transform (
404
- {
405
- "encoding" : encoding ,
406
- "base64" : base64 ,
407
- "compression" : compression ,
408
- "connect" : connect ,
409
- "message" : message ,
410
- },
411
- account_retrieve_params .AccountRetrieveParams ,
412
- ),
348
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
413
349
),
414
350
cast_to = AccountRetrieveResponse ,
415
351
)
@@ -466,12 +402,9 @@ async def delete(
466
402
async def get_sso_login_url (
467
403
self ,
468
404
* ,
469
- encoding : Literal [ "proto" , "json" ] ,
405
+ return_to : str ,
470
406
connect_protocol_version : Literal [1 ],
471
- base64 : bool | NotGiven = NOT_GIVEN ,
472
- compression : Literal ["identity" , "gzip" , "br" ] | NotGiven = NOT_GIVEN ,
473
- connect : Literal ["v1" ] | NotGiven = NOT_GIVEN ,
474
- message : str | NotGiven = NOT_GIVEN ,
407
+ email : str | NotGiven = NOT_GIVEN ,
475
408
connect_timeout_ms : float | NotGiven = NOT_GIVEN ,
476
409
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
477
410
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -484,16 +417,11 @@ async def get_sso_login_url(
484
417
GetSSOLoginURL returns the URL to redirect the user to for SSO login.
485
418
486
419
Args:
487
- encoding: Define which encoding or 'Message-Codec' to use
420
+ return_to: return_to is the URL the user will be redirected to after login
488
421
489
422
connect_protocol_version: Define the version of the Connect protocol
490
423
491
- base64: Specifies if the message query param is base64 encoded, which may be required
492
- for binary data
493
-
494
- compression: Which compression algorithm to use for this request
495
-
496
- connect: Define the version of the Connect protocol
424
+ email: email is the email the user wants to login with
497
425
498
426
connect_timeout_ms: Define the timeout, in ms
499
427
@@ -514,23 +442,17 @@ async def get_sso_login_url(
514
442
),
515
443
** (extra_headers or {}),
516
444
}
517
- return await self ._get (
445
+ return await self ._post (
518
446
"/gitpod.v1.AccountService/GetSSOLoginURL" ,
447
+ body = await async_maybe_transform (
448
+ {
449
+ "return_to" : return_to ,
450
+ "email" : email ,
451
+ },
452
+ account_get_sso_login_url_params .AccountGetSSOLoginURLParams ,
453
+ ),
519
454
options = make_request_options (
520
- extra_headers = extra_headers ,
521
- extra_query = extra_query ,
522
- extra_body = extra_body ,
523
- timeout = timeout ,
524
- query = await async_maybe_transform (
525
- {
526
- "encoding" : encoding ,
527
- "base64" : base64 ,
528
- "compression" : compression ,
529
- "connect" : connect ,
530
- "message" : message ,
531
- },
532
- account_get_sso_login_url_params .AccountGetSSOLoginURLParams ,
533
- ),
455
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
534
456
),
535
457
cast_to = AccountGetSSOLoginURLResponse ,
536
458
)
0 commit comments