Skip to content

Commit bd7dba1

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.178.0
1 parent ca75411 commit bd7dba1

38 files changed

+171
-337
lines changed

.speakeasy/gen.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ management:
44
docChecksum: c101e6356aa26bcdee80457c4dc64471
55
docVersion: 1.0.0
66
speakeasyVersion: internal
7-
generationVersion: 2.250.12
7+
generationVersion: 2.253.0
88
releaseVersion: 0.47.0
99
configChecksum: 3fcff865c11ce83075716a8313369445
1010
repoURL: https://github.com/airbytehq/airbyte-api-python-sdk.git

README.md

Lines changed: 2 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,7 @@ s = airbyte.Airbyte(
4242
req = shared.ConnectionCreateRequest(
4343
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
4444
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
45-
configurations=shared.StreamConfigurations(
46-
streams=[
47-
shared.StreamConfiguration(
48-
name='string',
49-
cursor_field=[
50-
'string',
51-
],
52-
primary_key=[
53-
[
54-
'string',
55-
],
56-
],
57-
),
58-
],
59-
),
6045
namespace_format='${SOURCE_NAMESPACE}',
61-
schedule=shared.ConnectionSchedule(
62-
schedule_type=shared.ScheduleTypeEnum.CRON,
63-
),
6446
)
6547

6648
res = s.connections.create_connection(req)
@@ -141,7 +123,7 @@ Handling errors in this SDK should largely match your expectations. All operati
141123

142124
```python
143125
import airbyte
144-
from airbyte.models import shared
126+
from airbyte.models import errors, shared
145127

146128
s = airbyte.Airbyte(
147129
security=shared.Security(
@@ -155,32 +137,14 @@ s = airbyte.Airbyte(
155137
req = shared.ConnectionCreateRequest(
156138
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
157139
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
158-
configurations=shared.StreamConfigurations(
159-
streams=[
160-
shared.StreamConfiguration(
161-
name='string',
162-
cursor_field=[
163-
'string',
164-
],
165-
primary_key=[
166-
[
167-
'string',
168-
],
169-
],
170-
),
171-
],
172-
),
173140
namespace_format='${SOURCE_NAMESPACE}',
174-
schedule=shared.ConnectionSchedule(
175-
schedule_type=shared.ScheduleTypeEnum.CRON,
176-
),
177141
)
178142

179143
res = None
180144
try:
181145
res = s.connections.create_connection(req)
182146
except errors.SDKError as e:
183-
print(e) # handle exception
147+
# handle exception
184148
raise(e)
185149

186150
if res.connection_response is not None:
@@ -221,25 +185,7 @@ s = airbyte.Airbyte(
221185
req = shared.ConnectionCreateRequest(
222186
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
223187
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
224-
configurations=shared.StreamConfigurations(
225-
streams=[
226-
shared.StreamConfiguration(
227-
name='string',
228-
cursor_field=[
229-
'string',
230-
],
231-
primary_key=[
232-
[
233-
'string',
234-
],
235-
],
236-
),
237-
],
238-
),
239188
namespace_format='${SOURCE_NAMESPACE}',
240-
schedule=shared.ConnectionSchedule(
241-
schedule_type=shared.ScheduleTypeEnum.CRON,
242-
),
243189
)
244190

245191
res = s.connections.create_connection(req)
@@ -270,25 +216,7 @@ s = airbyte.Airbyte(
270216
req = shared.ConnectionCreateRequest(
271217
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
272218
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
273-
configurations=shared.StreamConfigurations(
274-
streams=[
275-
shared.StreamConfiguration(
276-
name='string',
277-
cursor_field=[
278-
'string',
279-
],
280-
primary_key=[
281-
[
282-
'string',
283-
],
284-
],
285-
),
286-
],
287-
),
288219
namespace_format='${SOURCE_NAMESPACE}',
289-
schedule=shared.ConnectionSchedule(
290-
schedule_type=shared.ScheduleTypeEnum.CRON,
291-
),
292220
)
293221

294222
res = s.connections.create_connection(req)
@@ -348,25 +276,7 @@ s = airbyte.Airbyte(
348276
req = shared.ConnectionCreateRequest(
349277
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
350278
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
351-
configurations=shared.StreamConfigurations(
352-
streams=[
353-
shared.StreamConfiguration(
354-
name='string',
355-
cursor_field=[
356-
'string',
357-
],
358-
primary_key=[
359-
[
360-
'string',
361-
],
362-
],
363-
),
364-
],
365-
),
366279
namespace_format='${SOURCE_NAMESPACE}',
367-
schedule=shared.ConnectionSchedule(
368-
schedule_type=shared.ScheduleTypeEnum.CRON,
369-
),
370280
)
371281

372282
res = s.connections.create_connection(req)

RELEASES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,4 +838,14 @@ Based on:
838838
### Generated
839839
- [python v0.47.0] .
840840
### Releases
841+
- [PyPI v0.47.0] https://pypi.org/project/airbyte-api/0.47.0 - .
842+
843+
## 2024-02-13 00:14:09
844+
### Changes
845+
Based on:
846+
- OpenAPI Doc 1.0.0
847+
- Speakeasy CLI 1.178.0 (2.253.0) https://github.com/speakeasy-api/speakeasy
848+
### Generated
849+
- [python v0.47.0] .
850+
### Releases
841851
- [PyPI v0.47.0] https://pypi.org/project/airbyte-api/0.47.0 - .

USAGE.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,7 @@ s = airbyte.Airbyte(
1515
req = shared.ConnectionCreateRequest(
1616
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
1717
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
18-
configurations=shared.StreamConfigurations(
19-
streams=[
20-
shared.StreamConfiguration(
21-
name='string',
22-
cursor_field=[
23-
'string',
24-
],
25-
primary_key=[
26-
[
27-
'string',
28-
],
29-
],
30-
),
31-
],
32-
),
3318
namespace_format='${SOURCE_NAMESPACE}',
34-
schedule=shared.ConnectionSchedule(
35-
schedule_type=shared.ScheduleTypeEnum.CRON,
36-
),
3719
)
3820

3921
res = s.connections.create_connection(req)

docs/models/operations/canceljobresponse.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9-
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `job_response` | [Optional[shared.JobResponse]](../../models/shared/jobresponse.md) | :heavy_minus_sign: | Cancel a Job. |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
11+
| `job_response` | [Optional[shared.JobResponse]](../../models/shared/jobresponse.md) | :heavy_minus_sign: | Cancel a Job. | {"id":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","status":"running","jobType":"sync","startTime":"2023-03-25T01:30:50Z","duration":"PT8H6M12S"} |

docs/models/operations/createdestinationresponse.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9-
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `destination_response` | [Optional[shared.DestinationResponse]](../../models/shared/destinationresponse.md) | :heavy_minus_sign: | Successful operation |
6+
| Field | Type | Required | Description | Example |
7+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
11+
| `destination_response` | [Optional[shared.DestinationResponse]](../../models/shared/destinationresponse.md) | :heavy_minus_sign: | Successful operation | {"destinationId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","destinationType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} |

0 commit comments

Comments
 (0)