Skip to content

Commit 4d19977

Browse files
feat(api): manual updates
1 parent c407e2e commit 4d19977

File tree

210 files changed

+3598
-9939
lines changed

Some content is hidden

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

210 files changed

+3598
-9939
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 106
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-76ecfc3c43432fe5bd5694c008064c2ccdee367459a1c1a06aba00d2a3bbbce1.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-63491b1baa3dbc60caaec79becdece3854356b354909e4bb3f1ccaab80a6be20.yml

README.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ client = Gitpod(
3434
bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted
3535
)
3636

37-
runner = client.runners.create(
38-
connect_protocol_version=1,
39-
)
37+
runner = client.runners.create()
4038
print(runner.access_token)
4139
```
4240

@@ -60,9 +58,7 @@ client = AsyncGitpod(
6058

6159

6260
async def main() -> None:
63-
runner = await client.runners.create(
64-
connect_protocol_version=1,
65-
)
61+
runner = await client.runners.create()
6662
print(runner.access_token)
6763

6864

@@ -96,9 +92,7 @@ from gitpod import Gitpod
9692
client = Gitpod()
9793

9894
try:
99-
client.runners.create(
100-
connect_protocol_version=1,
101-
)
95+
client.runners.create()
10296
except gitpod.APIConnectionError as e:
10397
print("The server could not be reached")
10498
print(e.__cause__) # an underlying Exception, likely raised within httpx.
@@ -141,9 +135,7 @@ client = Gitpod(
141135
)
142136

143137
# Or, configure per-request:
144-
client.with_options(max_retries=5).runners.create(
145-
connect_protocol_version=1,
146-
)
138+
client.with_options(max_retries=5).runners.create()
147139
```
148140

149141
### Timeouts
@@ -166,9 +158,7 @@ client = Gitpod(
166158
)
167159

168160
# Override per-request:
169-
client.with_options(timeout=5.0).runners.create(
170-
connect_protocol_version=1,
171-
)
161+
client.with_options(timeout=5.0).runners.create()
172162
```
173163

174164
On timeout, an `APITimeoutError` is thrown.
@@ -209,9 +199,7 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
209199
from gitpod import Gitpod
210200

211201
client = Gitpod()
212-
response = client.runners.with_raw_response.create(
213-
connect_protocol_version=1,
214-
)
202+
response = client.runners.with_raw_response.create()
215203
print(response.headers.get('X-My-Header'))
216204

217205
runner = response.parse() # get the object that `runners.create()` would have returned
@@ -229,9 +217,7 @@ The above interface eagerly reads the full response body when you make the reque
229217
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
230218

231219
```python
232-
with client.runners.with_streaming_response.create(
233-
connect_protocol_version=1,
234-
) as response:
220+
with client.runners.with_streaming_response.create() as response:
235221
print(response.headers.get("X-My-Header"))
236222

237223
for line in response.iter_lines():

api.md

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)