Skip to content

Commit 3e66ecc

Browse files
feat(api): update via SDK Studio
1 parent 66db733 commit 3e66ecc

File tree

59 files changed

+334
-1805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+334
-1805
lines changed

Diff for: api.md

+20-20
Large diffs are not rendered by default.

Diff for: src/gitpod/resources/accounts.py

+34-112
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ def with_streaming_response(self) -> AccountsResourceWithStreamingResponse:
5858
def retrieve(
5959
self,
6060
*,
61-
encoding: Literal["proto", "json"],
61+
body: object,
6262
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,
6763
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
6864
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6965
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -76,17 +72,8 @@ def retrieve(
7672
GetAccount retrieves a single Account.
7773
7874
Args:
79-
encoding: Define which encoding or 'Message-Codec' to use
80-
8175
connect_protocol_version: Define the version of the Connect protocol
8276
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-
9077
connect_timeout_ms: Define the timeout, in ms
9178
9279
extra_headers: Send extra headers
@@ -106,23 +93,11 @@ def retrieve(
10693
),
10794
**(extra_headers or {}),
10895
}
109-
return self._get(
96+
return self._post(
11097
"/gitpod.v1.AccountService/GetAccount",
98+
body=maybe_transform(body, account_retrieve_params.AccountRetrieveParams),
11199
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
126101
),
127102
cast_to=AccountRetrieveResponse,
128103
)
@@ -179,12 +154,9 @@ def delete(
179154
def get_sso_login_url(
180155
self,
181156
*,
182-
encoding: Literal["proto", "json"],
157+
return_to: str,
183158
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,
188160
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
189161
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
190162
# 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(
197169
GetSSOLoginURL returns the URL to redirect the user to for SSO login.
198170
199171
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
201173
202174
connect_protocol_version: Define the version of the Connect protocol
203175
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
210177
211178
connect_timeout_ms: Define the timeout, in ms
212179
@@ -227,23 +194,17 @@ def get_sso_login_url(
227194
),
228195
**(extra_headers or {}),
229196
}
230-
return self._get(
197+
return self._post(
231198
"/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+
),
232206
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
247208
),
248209
cast_to=AccountGetSSOLoginURLResponse,
249210
)
@@ -345,12 +306,8 @@ def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse:
345306
async def retrieve(
346307
self,
347308
*,
348-
encoding: Literal["proto", "json"],
309+
body: object,
349310
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,
354311
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
355312
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
356313
# 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(
363320
GetAccount retrieves a single Account.
364321
365322
Args:
366-
encoding: Define which encoding or 'Message-Codec' to use
367-
368323
connect_protocol_version: Define the version of the Connect protocol
369324
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-
377325
connect_timeout_ms: Define the timeout, in ms
378326
379327
extra_headers: Send extra headers
@@ -393,23 +341,11 @@ async def retrieve(
393341
),
394342
**(extra_headers or {}),
395343
}
396-
return await self._get(
344+
return await self._post(
397345
"/gitpod.v1.AccountService/GetAccount",
346+
body=await async_maybe_transform(body, account_retrieve_params.AccountRetrieveParams),
398347
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
413349
),
414350
cast_to=AccountRetrieveResponse,
415351
)
@@ -466,12 +402,9 @@ async def delete(
466402
async def get_sso_login_url(
467403
self,
468404
*,
469-
encoding: Literal["proto", "json"],
405+
return_to: str,
470406
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,
475408
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
476409
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
477410
# 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(
484417
GetSSOLoginURL returns the URL to redirect the user to for SSO login.
485418
486419
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
488421
489422
connect_protocol_version: Define the version of the Connect protocol
490423
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
497425
498426
connect_timeout_ms: Define the timeout, in ms
499427
@@ -514,23 +442,17 @@ async def get_sso_login_url(
514442
),
515443
**(extra_headers or {}),
516444
}
517-
return await self._get(
445+
return await self._post(
518446
"/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+
),
519454
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
534456
),
535457
cast_to=AccountGetSSOLoginURLResponse,
536458
)

Diff for: src/gitpod/resources/editors.py

+10-56
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,8 @@ def with_streaming_response(self) -> EditorsResourceWithStreamingResponse:
5353
def retrieve(
5454
self,
5555
*,
56-
encoding: Literal["proto", "json"],
5756
connect_protocol_version: Literal[1],
58-
base64: bool | NotGiven = NOT_GIVEN,
59-
compression: Literal["identity", "gzip", "br"] | NotGiven = NOT_GIVEN,
60-
connect: Literal["v1"] | NotGiven = NOT_GIVEN,
61-
message: str | NotGiven = NOT_GIVEN,
57+
id: str | NotGiven = NOT_GIVEN,
6258
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
6359
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6460
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -71,16 +67,9 @@ def retrieve(
7167
GetEditor returns the editor with the given ID
7268
7369
Args:
74-
encoding: Define which encoding or 'Message-Codec' to use
75-
7670
connect_protocol_version: Define the version of the Connect protocol
7771
78-
base64: Specifies if the message query param is base64 encoded, which may be required
79-
for binary data
80-
81-
compression: Which compression algorithm to use for this request
82-
83-
connect: Define the version of the Connect protocol
72+
id: id is the ID of the editor to get
8473
8574
connect_timeout_ms: Define the timeout, in ms
8675
@@ -101,23 +90,11 @@ def retrieve(
10190
),
10291
**(extra_headers or {}),
10392
}
104-
return self._get(
93+
return self._post(
10594
"/gitpod.v1.EditorService/GetEditor",
95+
body=maybe_transform({"id": id}, editor_retrieve_params.EditorRetrieveParams),
10696
options=make_request_options(
107-
extra_headers=extra_headers,
108-
extra_query=extra_query,
109-
extra_body=extra_body,
110-
timeout=timeout,
111-
query=maybe_transform(
112-
{
113-
"encoding": encoding,
114-
"base64": base64,
115-
"compression": compression,
116-
"connect": connect,
117-
"message": message,
118-
},
119-
editor_retrieve_params.EditorRetrieveParams,
120-
),
97+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
12198
),
12299
cast_to=EditorRetrieveResponse,
123100
)
@@ -280,12 +257,8 @@ def with_streaming_response(self) -> AsyncEditorsResourceWithStreamingResponse:
280257
async def retrieve(
281258
self,
282259
*,
283-
encoding: Literal["proto", "json"],
284260
connect_protocol_version: Literal[1],
285-
base64: bool | NotGiven = NOT_GIVEN,
286-
compression: Literal["identity", "gzip", "br"] | NotGiven = NOT_GIVEN,
287-
connect: Literal["v1"] | NotGiven = NOT_GIVEN,
288-
message: str | NotGiven = NOT_GIVEN,
261+
id: str | NotGiven = NOT_GIVEN,
289262
connect_timeout_ms: float | NotGiven = NOT_GIVEN,
290263
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
291264
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -298,16 +271,9 @@ async def retrieve(
298271
GetEditor returns the editor with the given ID
299272
300273
Args:
301-
encoding: Define which encoding or 'Message-Codec' to use
302-
303274
connect_protocol_version: Define the version of the Connect protocol
304275
305-
base64: Specifies if the message query param is base64 encoded, which may be required
306-
for binary data
307-
308-
compression: Which compression algorithm to use for this request
309-
310-
connect: Define the version of the Connect protocol
276+
id: id is the ID of the editor to get
311277
312278
connect_timeout_ms: Define the timeout, in ms
313279
@@ -328,23 +294,11 @@ async def retrieve(
328294
),
329295
**(extra_headers or {}),
330296
}
331-
return await self._get(
297+
return await self._post(
332298
"/gitpod.v1.EditorService/GetEditor",
299+
body=await async_maybe_transform({"id": id}, editor_retrieve_params.EditorRetrieveParams),
333300
options=make_request_options(
334-
extra_headers=extra_headers,
335-
extra_query=extra_query,
336-
extra_body=extra_body,
337-
timeout=timeout,
338-
query=await async_maybe_transform(
339-
{
340-
"encoding": encoding,
341-
"base64": base64,
342-
"compression": compression,
343-
"connect": connect,
344-
"message": message,
345-
},
346-
editor_retrieve_params.EditorRetrieveParams,
347-
),
301+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
348302
),
349303
cast_to=EditorRetrieveResponse,
350304
)

0 commit comments

Comments
 (0)