Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.178.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Feb 13, 2024
1 parent ca75411 commit bd7dba1
Show file tree
Hide file tree
Showing 38 changed files with 171 additions and 337 deletions.
2 changes: 1 addition & 1 deletion .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ management:
docChecksum: c101e6356aa26bcdee80457c4dc64471
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.250.12
generationVersion: 2.253.0
releaseVersion: 0.47.0
configChecksum: 3fcff865c11ce83075716a8313369445
repoURL: https://github.com/airbytehq/airbyte-api-python-sdk.git
Expand Down
94 changes: 2 additions & 92 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,7 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

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

```python
import airbyte
from airbyte.models import shared
from airbyte.models import errors, shared

s = airbyte.Airbyte(
security=shared.Security(
Expand All @@ -155,32 +137,14 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

res = None
try:
res = s.connections.create_connection(req)
except errors.SDKError as e:
print(e) # handle exception
# handle exception
raise(e)

if res.connection_response is not None:
Expand Down Expand Up @@ -221,25 +185,7 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

res = s.connections.create_connection(req)
Expand Down Expand Up @@ -270,25 +216,7 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

res = s.connections.create_connection(req)
Expand Down Expand Up @@ -348,25 +276,7 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

res = s.connections.create_connection(req)
Expand Down
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -838,4 +838,14 @@ Based on:
### Generated
- [python v0.47.0] .
### Releases
- [PyPI v0.47.0] https://pypi.org/project/airbyte-api/0.47.0 - .

## 2024-02-13 00:14:09
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.178.0 (2.253.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.47.0] .
### Releases
- [PyPI v0.47.0] https://pypi.org/project/airbyte-api/0.47.0 - .
18 changes: 0 additions & 18 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,7 @@ s = airbyte.Airbyte(
req = shared.ConnectionCreateRequest(
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
name='string',
cursor_field=[
'string',
],
primary_key=[
[
'string',
],
],
),
],
),
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.CRON,
),
)

res = s.connections.create_connection(req)
Expand Down
12 changes: 6 additions & 6 deletions docs/models/operations/canceljobresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `job_response` | [Optional[shared.JobResponse]](../../models/shared/jobresponse.md) | :heavy_minus_sign: | Cancel a Job. |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
| `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"} |
12 changes: 6 additions & 6 deletions docs/models/operations/createdestinationresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `destination_response` | [Optional[shared.DestinationResponse]](../../models/shared/destinationresponse.md) | :heavy_minus_sign: | Successful operation |
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
| `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"} |
Loading

0 comments on commit bd7dba1

Please sign in to comment.