Skip to content

Commit

Permalink
Merge pull request #56 from airbytehq/speakeasy-sdk-regen-1706746488
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
terencecho authored Feb 13, 2024
2 parents 012c511 + bd7dba1 commit adc4bc3
Show file tree
Hide file tree
Showing 544 changed files with 1,215 additions and 1,347 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ management:
docChecksum: c101e6356aa26bcdee80457c4dc64471
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.237.2
releaseVersion: 0.44.3
configChecksum: e5234746f9bb8bf377f8400720a7b273
generationVersion: 2.253.0
releaseVersion: 0.47.0
configChecksum: 3fcff865c11ce83075716a8313369445
repoURL: https://github.com/airbytehq/airbyte-api-python-sdk.git
repoSubDirectory: .
installationURL: https://github.com/airbytehq/airbyte-api-python-sdk.git
Expand All @@ -15,7 +15,7 @@ features:
python:
additionalProperties: 0.1.0
constsAndDefaults: 0.1.2
core: 4.4.2
core: 4.4.5
globalSecurity: 2.83.2
globalServerURLs: 2.82.1
unions: 2.82.5
Expand Down
104 changes: 7 additions & 97 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,9 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

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 @@ -153,34 +135,16 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

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 @@ -219,27 +183,9 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

res = s.connections.create_connection(req)
Expand Down Expand Up @@ -268,27 +214,9 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

res = s.connections.create_connection(req)
Expand Down Expand Up @@ -346,27 +274,9 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

res = s.connections.create_connection(req)
Expand Down
42 changes: 41 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,44 @@ Based on:
### Generated
- [python v0.44.3] .
### Releases
- [PyPI v0.44.3] https://pypi.org/project/airbyte-api/0.44.3 - .
- [PyPI v0.44.3] https://pypi.org/project/airbyte-api/0.44.3 - .

## 2024-02-01 00:14:45
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.45.0] .
### Releases
- [PyPI v0.45.0] https://pypi.org/project/airbyte-api/0.45.0 - .

## 2024-02-02 00:13:52
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.163.1 (2.248.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.46.0] .
### Releases
- [PyPI v0.46.0] https://pypi.org/project/airbyte-api/0.46.0 - .

## 2024-02-07 00:13:42
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.170.1 (2.250.12) 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 - .

## 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 - .
20 changes: 1 addition & 19 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,9 @@ s = airbyte.Airbyte(
)

req = shared.ConnectionCreateRequest(
configurations=shared.StreamConfigurations(
streams=[
shared.StreamConfiguration(
cursor_field=[
'string',
],
name='string',
primary_key=[
[
'string',
],
],
),
],
),
destination_id='c669dd1e-3620-483e-afc8-55914e0a570f',
source_id='6dd427d8-3a55-4584-b835-842325b6c7b3',
namespace_format='${SOURCE_NAMESPACE}',
schedule=shared.ConnectionSchedule(
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='dd427d83-a555-4847-8358-42325b6c7b3f',
)

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 |
| `job_response` | [Optional[shared.JobResponse]](../../models/shared/jobresponse.md) | :heavy_minus_sign: | Cancel a Job. |
| `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 |
| 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"} |
4 changes: 2 additions & 2 deletions docs/models/operations/createconnectionresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `connection_response` | [Optional[shared.ConnectionResponse]](../../models/shared/connectionresponse.md) | :heavy_minus_sign: | Successful operation |
| `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 |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `connection_response` | [Optional[shared.ConnectionResponse]](../../models/shared/connectionresponse.md) | :heavy_minus_sign: | Successful operation |
Loading

0 comments on commit adc4bc3

Please sign in to comment.