Skip to content

Commit 953c11f

Browse files
authored
Merge pull request #8 from airbytehq/speakeasy-sdk-regen-1682467991
chore: speakeasy sdk regeneration - Generate
2 parents c1d186f + 3761f33 commit 953c11f

File tree

14 files changed

+820
-40
lines changed

14 files changed

+820
-40
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pip install airbyte-api
2525
<!-- Start SDK Example Usage -->
2626
```python
2727
import airbyte
28-
from airbyte.models import operations, shared
28+
from airbyte.models import shared
2929

3030
s = airbyte.Airbyte(
3131
security=shared.Security(
@@ -109,7 +109,7 @@ req = shared.ConnectionCreateRequest(
109109
),
110110
source_id="c5955907-aff1-4a3a-afa9-467739251aa5",
111111
)
112-
112+
113113
res = s.connections.create_connection(req)
114114

115115
if res.connection_response is not None:
@@ -121,45 +121,45 @@ if res.connection_response is not None:
121121
## Available Resources and Operations
122122

123123

124-
### connections
124+
### [connections](docs/connections/README.md)
125125

126-
* `create_connection` - Create a connection
127-
* `delete_connection` - Delete a Connection
128-
* `get_connection` - Get Connection details
129-
* `list_connections` - List connections
126+
* [create_connection](docs/connections/README.md#create_connection) - Create a connection
127+
* [delete_connection](docs/connections/README.md#delete_connection) - Delete a Connection
128+
* [get_connection](docs/connections/README.md#get_connection) - Get Connection details
129+
* [list_connections](docs/connections/README.md#list_connections) - List connections
130130

131-
### destinations
131+
### [destinations](docs/destinations/README.md)
132132

133-
* `create_destination` - Create a destination
134-
* `delete_destination` - Delete a Destination
135-
* `get_destination` - Get Destination details
136-
* `list_destinations` - List destinations
133+
* [create_destination](docs/destinations/README.md#create_destination) - Create a destination
134+
* [delete_destination](docs/destinations/README.md#delete_destination) - Delete a Destination
135+
* [get_destination](docs/destinations/README.md#get_destination) - Get Destination details
136+
* [list_destinations](docs/destinations/README.md#list_destinations) - List destinations
137137

138-
### jobs
138+
### [jobs](docs/jobs/README.md)
139139

140-
* `cancel_job` - Cancel a running Job
141-
* `create_job` - Trigger a sync or reset job of a connection
142-
* `get_job` - Get Job status and details
143-
* `list_jobs` - List Jobs by sync type
140+
* [cancel_job](docs/jobs/README.md#cancel_job) - Cancel a running Job
141+
* [create_job](docs/jobs/README.md#create_job) - Trigger a sync or reset job of a connection
142+
* [get_job](docs/jobs/README.md#get_job) - Get Job status and details
143+
* [list_jobs](docs/jobs/README.md#list_jobs) - List Jobs by sync type
144144

145-
### sources
145+
### [sources](docs/sources/README.md)
146146

147-
* `create_source` - Create a source
148-
* `delete_source` - Delete a Source
149-
* `get_source` - Get Source details
150-
* `initiate_o_auth` - Initiate OAuth for a source
151-
* `list_sources` - List sources
147+
* [create_source](docs/sources/README.md#create_source) - Create a source
148+
* [delete_source](docs/sources/README.md#delete_source) - Delete a Source
149+
* [get_source](docs/sources/README.md#get_source) - Get Source details
150+
* [initiate_o_auth](docs/sources/README.md#initiate_o_auth) - Initiate OAuth for a source
151+
* [list_sources](docs/sources/README.md#list_sources) - List sources
152152

153-
### streams
153+
### [streams](docs/streams/README.md)
154154

155-
* `get_stream_properties` - Get stream properties
155+
* [get_stream_properties](docs/streams/README.md#get_stream_properties) - Get stream properties
156156

157-
### workspaces
157+
### [workspaces](docs/workspaces/README.md)
158158

159-
* `create_or_update_workspace_o_auth_credentials` - Create OAuth override credentials for a workspace and source type.
160-
* `create_workspace` - Create a workspace
161-
* `get_workspace` - Get Workspace details
162-
* `list_workspaces` - List workspaces
159+
* [create_or_update_workspace_o_auth_credentials](docs/workspaces/README.md#create_or_update_workspace_o_auth_credentials) - Create OAuth override credentials for a workspace and source type.
160+
* [create_workspace](docs/workspaces/README.md#create_workspace) - Create a workspace
161+
* [get_workspace](docs/workspaces/README.md#get_workspace) - Get Workspace details
162+
* [list_workspaces](docs/workspaces/README.md#list_workspaces) - List workspaces
163163
<!-- End SDK Available Operations -->
164164

165165
### Maturity

RELEASES.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,20 @@ Based on:
6262
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
6363
- Speakeasy CLI 1.22.2 (2.20.1) https://github.com/speakeasy-api/speakeasy
6464
### Releases
65-
- [PyPI v0.1.0] https://pypi.org/project/airbyte-api/0.1.0 - .
65+
- [PyPI v0.1.0] https://pypi.org/project/airbyte-api/0.1.0 - .
66+
67+
## 2023-04-26 00:13:09
68+
### Changes
69+
Based on:
70+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
71+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
72+
### Releases
73+
- [PyPI v0.2.0] https://pypi.org/project/airbyte-api/0.2.0 - .
74+
75+
## 2023-04-27 00:14:16
76+
### Changes
77+
Based on:
78+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
79+
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
80+
### Releases
81+
- [PyPI v0.3.0] https://pypi.org/project/airbyte-api/0.3.0 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage -->
22
```python
33
import airbyte
4-
from airbyte.models import operations, shared
4+
from airbyte.models import shared
55

66
s = airbyte.Airbyte(
77
security=shared.Security(
@@ -85,7 +85,7 @@ req = shared.ConnectionCreateRequest(
8585
),
8686
source_id="c5955907-aff1-4a3a-afa9-467739251aa5",
8787
)
88-
88+
8989
res = s.connections.create_connection(req)
9090

9191
if res.connection_response is not None:

docs/airbyte/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Airbyte SDK
2+
3+
### Available Operations
4+

docs/connections/README.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# connections
2+
3+
### Available Operations
4+
5+
* [create_connection](#create_connection) - Create a connection
6+
* [delete_connection](#delete_connection) - Delete a Connection
7+
* [get_connection](#get_connection) - Get Connection details
8+
* [list_connections](#list_connections) - List connections
9+
10+
## create_connection
11+
12+
Create a connection
13+
14+
### Example Usage
15+
16+
```python
17+
import airbyte
18+
from airbyte.models import shared
19+
20+
s = airbyte.Airbyte(
21+
security=shared.Security(
22+
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
23+
),
24+
)
25+
26+
27+
req = shared.ConnectionCreateRequest(
28+
configurations=shared.StreamConfigurations(
29+
streams=[
30+
shared.StreamConfiguration(
31+
cursor_field=[
32+
"sequi",
33+
"tenetur",
34+
"ipsam",
35+
"id",
36+
],
37+
name="Richard Boyer",
38+
primary_key=[
39+
[
40+
"reiciendis",
41+
],
42+
[
43+
"vero",
44+
"nihil",
45+
"praesentium",
46+
"voluptatibus",
47+
],
48+
[
49+
"omnis",
50+
],
51+
],
52+
sync_mode="full_refresh_append",
53+
),
54+
],
55+
),
56+
data_residency="eu",
57+
destination_id="0074f154-71b5-4e6e-93b9-9d488e1e91e4",
58+
name="Elizabeth Orn",
59+
namespace_definition="destination",
60+
namespace_format="${SOURCE_NAMESPACE}",
61+
prefix="distinctio",
62+
schedule=shared.ConnectionScheduleCreate(
63+
cron_expression="quibusdam",
64+
schedule_type="manual",
65+
),
66+
source_id="4269802d-502a-494b-b4f6-3c969e9a3efa",
67+
)
68+
69+
res = s.connections.create_connection(req)
70+
71+
if res.connection_response is not None:
72+
# handle response
73+
```
74+
75+
## delete_connection
76+
77+
Delete a Connection
78+
79+
### Example Usage
80+
81+
```python
82+
import airbyte
83+
from airbyte.models import operations
84+
85+
s = airbyte.Airbyte(
86+
security=shared.Security(
87+
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
88+
),
89+
)
90+
91+
92+
req = operations.DeleteConnectionRequest(
93+
connection_id="in",
94+
)
95+
96+
res = s.connections.delete_connection(req)
97+
98+
if res.status_code == 200:
99+
# handle response
100+
```
101+
102+
## get_connection
103+
104+
Get Connection details
105+
106+
### Example Usage
107+
108+
```python
109+
import airbyte
110+
from airbyte.models import operations
111+
112+
s = airbyte.Airbyte(
113+
security=shared.Security(
114+
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
115+
),
116+
)
117+
118+
119+
req = operations.GetConnectionRequest(
120+
connection_id="in",
121+
)
122+
123+
res = s.connections.get_connection(req)
124+
125+
if res.connection_response is not None:
126+
# handle response
127+
```
128+
129+
## list_connections
130+
131+
List connections
132+
133+
### Example Usage
134+
135+
```python
136+
import airbyte
137+
from airbyte.models import operations
138+
139+
s = airbyte.Airbyte(
140+
security=shared.Security(
141+
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
142+
),
143+
)
144+
145+
146+
req = operations.ListConnectionsRequest(
147+
include_deleted=False,
148+
limit=846409,
149+
offset=978571,
150+
workspace_ids=[
151+
"14cd66ae-395e-4fb9-ba88-f3a66997074b",
152+
"a4469b6e-2141-4959-890a-fa563e2516fe",
153+
"4c8b711e-5b7f-4d2e-9028-921cddc69260",
154+
],
155+
)
156+
157+
res = s.connections.list_connections(req)
158+
159+
if res.connections_response is not None:
160+
# handle response
161+
```

0 commit comments

Comments
 (0)