Skip to content

Commit ad915a5

Browse files
chore: 🐝 Update SDK - Generate (#74)
Co-authored-by: speakeasybot <[email protected]>
1 parent d919c53 commit ad915a5

File tree

205 files changed

+8654
-885
lines changed

Some content is hidden

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

205 files changed

+8654
-885
lines changed

.speakeasy/gen.lock

+284-211
Large diffs are not rendered by default.

.speakeasy/workflow.lock

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
speakeasyVersion: 1.286.3
2+
sources:
3+
my-source:
4+
sourceNamespace: my-source
5+
sourceRevisionDigest: sha256:0e36eb3e666e71738d7f18746aaf7a4c2242126e2eb8534be3e0d739bab17fe9
6+
sourceBlobDigest: sha256:128e131dbcb3ee37a7b330c750e9687d13058634b6c42c80d71ea6c51e6c4596
7+
tags:
8+
- latest
9+
- main
10+
targets:
11+
python-api:
12+
source: my-source
13+
sourceNamespace: my-source
14+
sourceRevisionDigest: sha256:0e36eb3e666e71738d7f18746aaf7a4c2242126e2eb8534be3e0d739bab17fe9
15+
sourceBlobDigest: sha256:128e131dbcb3ee37a7b330c750e9687d13058634b6c42c80d71ea6c51e6c4596
16+
outLocation: /github/workspace/repo
17+
workflow:
18+
workflowVersion: 1.0.0
19+
speakeasyVersion: latest
20+
sources:
21+
my-source:
22+
inputs:
23+
- location: ./airbyte-api.openapi.yaml
24+
registry:
25+
location: registry.speakeasyapi.dev/airbyte/airbyte-prod/my-source
26+
targets:
27+
python-api:
28+
target: python
29+
source: my-source
30+
publish:
31+
pypi:
32+
token: $PYPI_TOKEN

.speakeasy/workflow.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
23
sources:
34
my-source:
45
inputs:
56
- location: ./airbyte-api.openapi.yaml
7+
registry:
8+
location: registry.speakeasyapi.dev/airbyte/airbyte-prod/my-source
69
targets:
710
python-api:
811
target: python

README.md

+110-35
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ s = airbyte_api.AirbyteAPI(
3939
),
4040
)
4141

42-
req = models.ConnectionCreateRequest(
43-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
44-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
42+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
43+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
44+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
45+
name='Postgres-to-Bigquery',
4546
namespace_format='${SOURCE_NAMESPACE}',
46-
)
47-
48-
res = s.connections.create_connection(req)
47+
))
4948

5049
if res.connection_response is not None:
5150
# handle response
@@ -57,6 +56,46 @@ if res.connection_response is not None:
5756
<!-- Start Available Resources and Operations [operations] -->
5857
## Available Resources and Operations
5958

59+
### [public_connections](docs/sdks/publicconnections/README.md)
60+
61+
* [create_connection](docs/sdks/publicconnections/README.md#create_connection) - Create a connection
62+
* [delete_connection](docs/sdks/publicconnections/README.md#delete_connection) - Delete a Connection
63+
* [get_connection](docs/sdks/publicconnections/README.md#get_connection) - Get Connection details
64+
* [list_connections](docs/sdks/publicconnections/README.md#list_connections) - List connections
65+
* [patch_connection](docs/sdks/publicconnections/README.md#patch_connection) - Update Connection details
66+
67+
### [public](docs/sdks/public/README.md)
68+
69+
* [cancel_job](docs/sdks/public/README.md#cancel_job) - Cancel a running Job
70+
* [create_connection](docs/sdks/public/README.md#create_connection) - Create a connection
71+
* [create_destination](docs/sdks/public/README.md#create_destination) - Create a destination
72+
* [create_job](docs/sdks/public/README.md#create_job) - Trigger a sync or reset job of a connection
73+
* [create_or_update_workspace_o_auth_credentials](docs/sdks/public/README.md#create_or_update_workspace_o_auth_credentials) - Create OAuth override credentials for a workspace and source type.
74+
* [create_source](docs/sdks/public/README.md#create_source) - Create a source
75+
* [create_workspace](docs/sdks/public/README.md#create_workspace) - Create a workspace
76+
* [delete_connection](docs/sdks/public/README.md#delete_connection) - Delete a Connection
77+
* [delete_destination](docs/sdks/public/README.md#delete_destination) - Delete a Destination
78+
* [delete_source](docs/sdks/public/README.md#delete_source) - Delete a Source
79+
* [delete_workspace](docs/sdks/public/README.md#delete_workspace) - Delete a Workspace
80+
* [get_connection](docs/sdks/public/README.md#get_connection) - Get Connection details
81+
* [get_destination](docs/sdks/public/README.md#get_destination) - Get Destination details
82+
* [get_job](docs/sdks/public/README.md#get_job) - Get Job status and details
83+
* [get_source](docs/sdks/public/README.md#get_source) - Get Source details
84+
* [get_stream_properties](docs/sdks/public/README.md#get_stream_properties) - Get stream properties
85+
* [get_workspace](docs/sdks/public/README.md#get_workspace) - Get Workspace details
86+
* [initiate_o_auth](docs/sdks/public/README.md#initiate_o_auth) - Initiate OAuth for a source
87+
* [list_connections](docs/sdks/public/README.md#list_connections) - List connections
88+
* [list_destinations](docs/sdks/public/README.md#list_destinations) - List destinations
89+
* [list_jobs](docs/sdks/public/README.md#list_jobs) - List Jobs by sync type
90+
* [list_sources](docs/sdks/public/README.md#list_sources) - List sources
91+
* [list_workspaces](docs/sdks/public/README.md#list_workspaces) - List workspaces
92+
* [patch_connection](docs/sdks/public/README.md#patch_connection) - Update Connection details
93+
* [patch_destination](docs/sdks/public/README.md#patch_destination) - Update a Destination
94+
* [patch_source](docs/sdks/public/README.md#patch_source) - Update a Source
95+
* [put_destination](docs/sdks/public/README.md#put_destination) - Update a Destination and fully overwrite it
96+
* [put_source](docs/sdks/public/README.md#put_source) - Update a Source and fully overwrite it
97+
* [update_workspace](docs/sdks/public/README.md#update_workspace) - Update a workspace
98+
6099
### [connections](docs/sdks/connections/README.md)
61100

62101
* [create_connection](docs/sdks/connections/README.md#create_connection) - Create a connection
@@ -65,6 +104,15 @@ if res.connection_response is not None:
65104
* [list_connections](docs/sdks/connections/README.md#list_connections) - List connections
66105
* [patch_connection](docs/sdks/connections/README.md#patch_connection) - Update Connection details
67106

107+
### [public_destinations](docs/sdks/publicdestinations/README.md)
108+
109+
* [create_destination](docs/sdks/publicdestinations/README.md#create_destination) - Create a destination
110+
* [delete_destination](docs/sdks/publicdestinations/README.md#delete_destination) - Delete a Destination
111+
* [get_destination](docs/sdks/publicdestinations/README.md#get_destination) - Get Destination details
112+
* [list_destinations](docs/sdks/publicdestinations/README.md#list_destinations) - List destinations
113+
* [patch_destination](docs/sdks/publicdestinations/README.md#patch_destination) - Update a Destination
114+
* [put_destination](docs/sdks/publicdestinations/README.md#put_destination) - Update a Destination and fully overwrite it
115+
68116
### [destinations](docs/sdks/destinations/README.md)
69117

70118
* [create_destination](docs/sdks/destinations/README.md#create_destination) - Create a destination
@@ -74,13 +122,30 @@ if res.connection_response is not None:
74122
* [patch_destination](docs/sdks/destinations/README.md#patch_destination) - Update a Destination
75123
* [put_destination](docs/sdks/destinations/README.md#put_destination) - Update a Destination and fully overwrite it
76124

125+
### [public_jobs](docs/sdks/publicjobs/README.md)
126+
127+
* [cancel_job](docs/sdks/publicjobs/README.md#cancel_job) - Cancel a running Job
128+
* [create_job](docs/sdks/publicjobs/README.md#create_job) - Trigger a sync or reset job of a connection
129+
* [get_job](docs/sdks/publicjobs/README.md#get_job) - Get Job status and details
130+
* [list_jobs](docs/sdks/publicjobs/README.md#list_jobs) - List Jobs by sync type
131+
77132
### [jobs](docs/sdks/jobs/README.md)
78133

79134
* [cancel_job](docs/sdks/jobs/README.md#cancel_job) - Cancel a running Job
80135
* [create_job](docs/sdks/jobs/README.md#create_job) - Trigger a sync or reset job of a connection
81136
* [get_job](docs/sdks/jobs/README.md#get_job) - Get Job status and details
82137
* [list_jobs](docs/sdks/jobs/README.md#list_jobs) - List Jobs by sync type
83138

139+
### [public_sources](docs/sdks/publicsources/README.md)
140+
141+
* [create_source](docs/sdks/publicsources/README.md#create_source) - Create a source
142+
* [delete_source](docs/sdks/publicsources/README.md#delete_source) - Delete a Source
143+
* [get_source](docs/sdks/publicsources/README.md#get_source) - Get Source details
144+
* [initiate_o_auth](docs/sdks/publicsources/README.md#initiate_o_auth) - Initiate OAuth for a source
145+
* [list_sources](docs/sdks/publicsources/README.md#list_sources) - List sources
146+
* [patch_source](docs/sdks/publicsources/README.md#patch_source) - Update a Source
147+
* [put_source](docs/sdks/publicsources/README.md#put_source) - Update a Source and fully overwrite it
148+
84149
### [sources](docs/sdks/sources/README.md)
85150

86151
* [create_source](docs/sdks/sources/README.md#create_source) - Create a source
@@ -91,10 +156,23 @@ if res.connection_response is not None:
91156
* [patch_source](docs/sdks/sources/README.md#patch_source) - Update a Source
92157
* [put_source](docs/sdks/sources/README.md#put_source) - Update a Source and fully overwrite it
93158

159+
### [public_streams](docs/sdks/publicstreams/README.md)
160+
161+
* [get_stream_properties](docs/sdks/publicstreams/README.md#get_stream_properties) - Get stream properties
162+
94163
### [streams](docs/sdks/streams/README.md)
95164

96165
* [get_stream_properties](docs/sdks/streams/README.md#get_stream_properties) - Get stream properties
97166

167+
### [public_workspaces](docs/sdks/publicworkspaces/README.md)
168+
169+
* [create_or_update_workspace_o_auth_credentials](docs/sdks/publicworkspaces/README.md#create_or_update_workspace_o_auth_credentials) - Create OAuth override credentials for a workspace and source type.
170+
* [create_workspace](docs/sdks/publicworkspaces/README.md#create_workspace) - Create a workspace
171+
* [delete_workspace](docs/sdks/publicworkspaces/README.md#delete_workspace) - Delete a Workspace
172+
* [get_workspace](docs/sdks/publicworkspaces/README.md#get_workspace) - Get Workspace details
173+
* [list_workspaces](docs/sdks/publicworkspaces/README.md#list_workspaces) - List workspaces
174+
* [update_workspace](docs/sdks/publicworkspaces/README.md#update_workspace) - Update a workspace
175+
98176
### [workspaces](docs/sdks/workspaces/README.md)
99177

100178
* [create_or_update_workspace_o_auth_credentials](docs/sdks/workspaces/README.md#create_or_update_workspace_o_auth_credentials) - Create OAuth override credentials for a workspace and source type.
@@ -135,15 +213,14 @@ s = airbyte_api.AirbyteAPI(
135213
),
136214
)
137215

138-
req = models.ConnectionCreateRequest(
139-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
140-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
141-
namespace_format='${SOURCE_NAMESPACE}',
142-
)
143-
144216
res = None
145217
try:
146-
res = s.connections.create_connection(req)
218+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
219+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
220+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
221+
name='Postgres-to-Bigquery',
222+
namespace_format='${SOURCE_NAMESPACE}',
223+
))
147224
except errors.SDKError as e:
148225
# handle exception
149226
raise(e)
@@ -184,13 +261,12 @@ s = airbyte_api.AirbyteAPI(
184261
),
185262
)
186263

187-
req = models.ConnectionCreateRequest(
188-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
189-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
264+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
265+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
266+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
267+
name='Postgres-to-Bigquery',
190268
namespace_format='${SOURCE_NAMESPACE}',
191-
)
192-
193-
res = s.connections.create_connection(req)
269+
))
194270

195271
if res.connection_response is not None:
196272
# handle response
@@ -216,13 +292,12 @@ s = airbyte_api.AirbyteAPI(
216292
),
217293
)
218294

219-
req = models.ConnectionCreateRequest(
220-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
221-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
295+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
296+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
297+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
298+
name='Postgres-to-Bigquery',
222299
namespace_format='${SOURCE_NAMESPACE}',
223-
)
224-
225-
res = s.connections.create_connection(req)
300+
))
226301

227302
if res.connection_response is not None:
228303
# handle response
@@ -258,10 +333,11 @@ s = airbyte_api.AirbyteAPI(client=http_client)
258333

259334
This SDK supports the following security schemes globally:
260335

261-
| Name | Type | Scheme |
262-
| ------------- | ------------- | ------------- |
263-
| `basic_auth` | http | HTTP Basic |
264-
| `bearer_auth` | http | HTTP Bearer |
336+
| Name | Type | Scheme |
337+
| -------------------- | -------------------- | -------------------- |
338+
| `basic_auth` | http | HTTP Basic |
339+
| `bearer_auth` | http | HTTP Bearer |
340+
| `client_credentials` | oauth2 | OAuth2 token |
265341

266342
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
267343
```python
@@ -277,13 +353,12 @@ s = airbyte_api.AirbyteAPI(
277353
),
278354
)
279355

280-
req = models.ConnectionCreateRequest(
281-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
282-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
356+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
357+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
358+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
359+
name='Postgres-to-Bigquery',
283360
namespace_format='${SOURCE_NAMESPACE}',
284-
)
285-
286-
res = s.connections.create_connection(req)
361+
))
287362

288363
if res.connection_response is not None:
289364
# handle response

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -888,4 +888,14 @@ Based on:
888888
### Generated
889889
- [python v0.49.2] .
890890
### Releases
891-
- [PyPI v0.49.2] https://pypi.org/project/airbyte-api/0.49.2 - .
891+
- [PyPI v0.49.2] https://pypi.org/project/airbyte-api/0.49.2 - .
892+
893+
## 2024-05-14 00:14:22
894+
### Changes
895+
Based on:
896+
- OpenAPI Doc
897+
- Speakeasy CLI 1.286.3 (2.329.0) https://github.com/speakeasy-api/speakeasy
898+
### Generated
899+
- [python v0.49.3] .
900+
### Releases
901+
- [PyPI v0.49.3] https://pypi.org/project/airbyte-api/0.49.3 - .

USAGE.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ s = airbyte_api.AirbyteAPI(
1212
),
1313
)
1414

15-
req = models.ConnectionCreateRequest(
16-
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
17-
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
15+
res = s.public_connections.create_connection(request=models.ConnectionCreateRequest(
16+
destination_id='e478de0d-a3a0-475c-b019-25f7dd29e281',
17+
source_id='95e66a59-8045-4307-9678-63bc3c9b8c93',
18+
name='Postgres-to-Bigquery',
1819
namespace_format='${SOURCE_NAMESPACE}',
19-
)
20-
21-
res = s.connections.create_connection(req)
20+
))
2221

2322
if res.connection_response is not None:
2423
# handle response

docs/api/getstreampropertiesrequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
8-
| `destination_id` | *str* | :heavy_check_mark: | ID of the destination |
98
| `source_id` | *str* | :heavy_check_mark: | ID of the source |
9+
| `destination_id` | *Optional[str]* | :heavy_minus_sign: | ID of the destination |
1010
| `ignore_cache` | *Optional[bool]* | :heavy_minus_sign: | If true pull the latest schema from the source, else pull from cache (default false) |

docs/api/getstreampropertiesresponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1010
| `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-
| `stream_properties_response` | [Optional[models.StreamPropertiesResponse]](../models/streampropertiesresponse.md) | :heavy_minus_sign: | Get the available streams properties for a source/destination pair. |
11+
| `stream_properties_response` | List[[models.StreamProperties](../models/streamproperties.md)] | :heavy_minus_sign: | Get the available streams properties for a source/destination pair. |

0 commit comments

Comments
 (0)