diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d2d84ab5..1d81e93a 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 diff --git a/README.md b/README.md index 386738cc..415fcefd 100755 --- a/README.md +++ b/README.md @@ -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) @@ -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( @@ -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: @@ -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) @@ -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) @@ -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) diff --git a/RELEASES.md b/RELEASES.md index 3c4b4d88..de88426a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index e87ae5d2..9140b30c 100644 --- a/USAGE.md +++ b/USAGE.md @@ -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) diff --git a/docs/models/operations/canceljobresponse.md b/docs/models/operations/canceljobresponse.md index 344ddd4e..6c9f5265 100644 --- a/docs/models/operations/canceljobresponse.md +++ b/docs/models/operations/canceljobresponse.md @@ -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. | \ No newline at end of file +| 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"} | \ No newline at end of file diff --git a/docs/models/operations/createdestinationresponse.md b/docs/models/operations/createdestinationresponse.md index b705e661..9f4e3261 100644 --- a/docs/models/operations/createdestinationresponse.md +++ b/docs/models/operations/createdestinationresponse.md @@ -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 | \ No newline at end of file +| 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"} | \ No newline at end of file diff --git a/docs/models/operations/createjobresponse.md b/docs/models/operations/createjobresponse.md index 9e33bf33..7115e993 100644 --- a/docs/models/operations/createjobresponse.md +++ b/docs/models/operations/createjobresponse.md @@ -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: | Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. | \ No newline at end of file +| 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: | Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. | {"id":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","status":"running","jobType":"sync","startTime":"2023-03-25T01:30:50Z","duration":"PT8H6M12S"} | \ No newline at end of file diff --git a/docs/models/operations/createsourceresponse.md b/docs/models/operations/createsourceresponse.md index 62a51392..7a96f566 100644 --- a/docs/models/operations/createsourceresponse.md +++ b/docs/models/operations/createsourceresponse.md @@ -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 | -| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| 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 | | +| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Successful operation | {"sourceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","sourceType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/getdestinationresponse.md b/docs/models/operations/getdestinationresponse.md index eb46db32..d0d45c24 100644 --- a/docs/models/operations/getdestinationresponse.md +++ b/docs/models/operations/getdestinationresponse.md @@ -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: | Get a Destination by the id in the path. | \ No newline at end of file +| 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: | Get a Destination by the id in the path. | {"destinationId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","destinationType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/getjobresponse.md b/docs/models/operations/getjobresponse.md index 70425cd7..c93a490d 100644 --- a/docs/models/operations/getjobresponse.md +++ b/docs/models/operations/getjobresponse.md @@ -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: | Get a Job by the id in the path. | \ No newline at end of file +| 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: | Get a Job by the id in the path. | {"id":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","status":"running","jobType":"sync","startTime":"2023-03-25T01:30:50Z","duration":"PT8H6M12S"} | \ No newline at end of file diff --git a/docs/models/operations/getsourceresponse.md b/docs/models/operations/getsourceresponse.md index 88e6f03a..bec9dd33 100644 --- a/docs/models/operations/getsourceresponse.md +++ b/docs/models/operations/getsourceresponse.md @@ -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 | -| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Get a Source by the id in the path. | \ No newline at end of file +| 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 | | +| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Get a Source by the id in the path. | {"sourceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","sourceType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/listconnectionsresponse.md b/docs/models/operations/listconnectionsresponse.md index b5f291ab..bf76e3d1 100644 --- a/docs/models/operations/listconnectionsresponse.md +++ b/docs/models/operations/listconnectionsresponse.md @@ -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 | -| `connections_response` | [Optional[shared.ConnectionsResponse]](../../models/shared/connectionsresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| 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 | | +| `connections_response` | [Optional[shared.ConnectionsResponse]](../../models/shared/connectionsresponse.md) | :heavy_minus_sign: | Successful operation | {"next":"https://api.airbyte.com/v1/connections?limit=5&offset=10","previous":"https://api.airbyte.com/v1/connections?limit=5&offset=0","data":[{"name":"test-connection"},{"connection_id":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"},{"sourceId":"49237019-645d-47d4-b45b-5eddf97775ce"},{"destinationId":"al312fs-0ab1-4f72-9ed7-0b8fc27c5826"},{"schedule":{"scheduleType":"manual"}},{"status":"active"},{"dataResidency":"auto"}]} | \ No newline at end of file diff --git a/docs/models/operations/listdestinationsresponse.md b/docs/models/operations/listdestinationsresponse.md index 13a19428..e2158449 100644 --- a/docs/models/operations/listdestinationsresponse.md +++ b/docs/models/operations/listdestinationsresponse.md @@ -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 | -| `destinations_response` | [Optional[shared.DestinationsResponse]](../../models/shared/destinationsresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| 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 | | +| `destinations_response` | [Optional[shared.DestinationsResponse]](../../models/shared/destinationsresponse.md) | :heavy_minus_sign: | Successful operation | {"next":"https://api.airbyte.com/v1/destinations?limit=5&offset=10","previous":"https://api.airbyte.com/v1/destinations?limit=5&offset=0","data":{"destinationId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","destinationType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"}} | \ No newline at end of file diff --git a/docs/models/operations/listjobsresponse.md b/docs/models/operations/listjobsresponse.md index f5a064d6..4209fbf0 100644 --- a/docs/models/operations/listjobsresponse.md +++ b/docs/models/operations/listjobsresponse.md @@ -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 | -| `jobs_response` | [Optional[shared.JobsResponse]](../../models/shared/jobsresponse.md) | :heavy_minus_sign: | List all the Jobs by connectionId. | \ No newline at end of file +| 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 | | +| `jobs_response` | [Optional[shared.JobsResponse]](../../models/shared/jobsresponse.md) | :heavy_minus_sign: | List all the Jobs by connectionId. | {"next":"https://api.airbyte.com/v1/jobs?limit=5&offset=10","previous":"https://api.airbyte.com/v1/jobs?limit=5&offset=0","data":[{"id":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","status":"running","jobType":"sync","startTime":"2023-03-25T01:30:50Z"}]} | \ No newline at end of file diff --git a/docs/models/operations/listsourcesresponse.md b/docs/models/operations/listsourcesresponse.md index ceeaee56..3fff79fd 100644 --- a/docs/models/operations/listsourcesresponse.md +++ b/docs/models/operations/listsourcesresponse.md @@ -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 | -| `sources_response` | [Optional[shared.SourcesResponse]](../../models/shared/sourcesresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| 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 | | +| `sources_response` | [Optional[shared.SourcesResponse]](../../models/shared/sourcesresponse.md) | :heavy_minus_sign: | Successful operation | {"next":"https://api.airbyte.com/v1/sources?limit=5&offset=10","previous":"https://api.airbyte.com/v1/sources?limit=5&offset=0","data":{"sourceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","sourceType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"}} | \ No newline at end of file diff --git a/docs/models/operations/listworkspacesresponse.md b/docs/models/operations/listworkspacesresponse.md index 7ff8bfa7..2103b7ae 100644 --- a/docs/models/operations/listworkspacesresponse.md +++ b/docs/models/operations/listworkspacesresponse.md @@ -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 | -| `workspaces_response` | [Optional[shared.WorkspacesResponse]](../../models/shared/workspacesresponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| 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 | | +| `workspaces_response` | [Optional[shared.WorkspacesResponse]](../../models/shared/workspacesresponse.md) | :heavy_minus_sign: | Successful operation | {"next":"https://api.airbyte.com/v1/workspaces?limit=5&offset=10","previous":"https://api.airbyte.com/v1/workspaces?limit=5&offset=0","data":{"workspaceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Acme Company","dataResidency":"auto"}} | \ No newline at end of file diff --git a/docs/models/operations/patchdestinationresponse.md b/docs/models/operations/patchdestinationresponse.md index 5b35a483..d2dfe56e 100644 --- a/docs/models/operations/patchdestinationresponse.md +++ b/docs/models/operations/patchdestinationresponse.md @@ -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: | Update a Destination | \ No newline at end of file +| 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: | Update a Destination | {"destinationId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","destinationType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/patchsourceresponse.md b/docs/models/operations/patchsourceresponse.md index 93ff3cc2..f2bccfe8 100644 --- a/docs/models/operations/patchsourceresponse.md +++ b/docs/models/operations/patchsourceresponse.md @@ -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 | -| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Update a Source | \ No newline at end of file +| 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 | | +| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Update a Source | {"sourceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","sourceType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/putdestinationresponse.md b/docs/models/operations/putdestinationresponse.md index 005358df..646d06a8 100644 --- a/docs/models/operations/putdestinationresponse.md +++ b/docs/models/operations/putdestinationresponse.md @@ -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: | Update a Destination and fully overwrite it | \ No newline at end of file +| 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: | Update a Destination and fully overwrite it | {"destinationId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","destinationType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/operations/putsourceresponse.md b/docs/models/operations/putsourceresponse.md index 7515a378..bcdda814 100644 --- a/docs/models/operations/putsourceresponse.md +++ b/docs/models/operations/putsourceresponse.md @@ -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 | -| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Update a source and fully overwrite it | \ No newline at end of file +| 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 | | +| `source_response` | [Optional[shared.SourceResponse]](../../models/shared/sourceresponse.md) | :heavy_minus_sign: | Update a source and fully overwrite it | {"sourceId":"18dccc91-0ab1-4f72-9ed7-0b8fc27c5826","name":"Analytics Team Postgres","sourceType":"postgres","workspaceId":"871d9b60-11d1-44cb-8c92-c246d53bf87e"} | \ No newline at end of file diff --git a/docs/models/shared/initiateoauthrequest.md b/docs/models/shared/initiateoauthrequest.md index e4540a59..9b6d808f 100644 --- a/docs/models/shared/initiateoauthrequest.md +++ b/docs/models/shared/initiateoauthrequest.md @@ -5,9 +5,9 @@ POST body for initiating OAuth via the public API ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `redirect_url` | *str* | :heavy_check_mark: | The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete. | -| `source_type` | [shared.OAuthActorNames](../../models/shared/oauthactornames.md) | :heavy_check_mark: | N/A | -| `workspace_id` | *str* | :heavy_check_mark: | The workspace to create the secret and eventually the full source. | -| `o_auth_input_configuration` | [Optional[shared.OAuthInputConfiguration]](../../models/shared/oauthinputconfiguration.md) | :heavy_minus_sign: | Arbitrary vars to pass for OAuth depending on what the source/destination spec requires. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `redirect_url` | *str* | :heavy_check_mark: | The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete. | | +| `source_type` | [shared.OAuthActorNames](../../models/shared/oauthactornames.md) | :heavy_check_mark: | N/A | | +| `workspace_id` | *str* | :heavy_check_mark: | The workspace to create the secret and eventually the full source. | | +| `o_auth_input_configuration` | [Optional[shared.OAuthInputConfiguration]](../../models/shared/oauthinputconfiguration.md) | :heavy_minus_sign: | Arbitrary vars to pass for OAuth depending on what the source/destination spec requires. | {"host":"test.snowflake.com"} | \ No newline at end of file diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index f0d5563c..0294375c 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -31,25 +31,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) @@ -186,11 +168,7 @@ s = airbyte.Airbyte( ), ) -req = operations.ListConnectionsRequest( - workspace_ids=[ - 'bed8f6e5-32a5-45f7-9c2b-30682edc8796', - ], -) +req = operations.ListConnectionsRequest() res = s.connections.list_connections(req) @@ -236,25 +214,7 @@ s = airbyte.Airbyte( req = operations.PatchConnectionRequest( connection_patch_request=shared.ConnectionPatchRequest( - 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.MANUAL, - ), ), connection_id='string', ) diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index cb3d69b4..d1aa8b2d 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -31,13 +31,13 @@ s = airbyte.Airbyte( req = shared.DestinationCreateRequest( configuration=shared.DestinationGoogleSheets( - credentials=shared.AuthenticationViaGoogleOAuth( - client_id='string', - client_secret='string', - refresh_token='string', + credentials=shared.AuthenticationViaGoogleOAuth( + client_id='string', + client_secret='string', + refresh_token='string', + ), + spreadsheet_id='https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit', ), - spreadsheet_id='https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit', -), name='string', workspace_id='8360860a-d46e-48e6-af62-08e5ba5019ef', ) @@ -176,11 +176,7 @@ s = airbyte.Airbyte( ), ) -req = operations.ListDestinationsRequest( - workspace_ids=[ - 'c2980b9a-8317-4202-845c-d26fb4455227', - ], -) +req = operations.ListDestinationsRequest() res = s.destinations.list_destinations(req) @@ -226,16 +222,6 @@ s = airbyte.Airbyte( req = operations.PatchDestinationRequest( destination_id='string', - destination_patch_request=shared.DestinationPatchRequest( - configuration=shared.DestinationGoogleSheets( - credentials=shared.AuthenticationViaGoogleOAuth( - client_id='string', - client_secret='string', - refresh_token='string', - ), - spreadsheet_id='https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit', - ), - ), ) res = s.destinations.patch_destination(req) @@ -282,17 +268,6 @@ s = airbyte.Airbyte( req = operations.PutDestinationRequest( destination_id='string', - destination_put_request=shared.DestinationPutRequest( - configuration=shared.DestinationGoogleSheets( - credentials=shared.AuthenticationViaGoogleOAuth( - client_id='string', - client_secret='string', - refresh_token='string', - ), - spreadsheet_id='https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG/edit', - ), - name='string', - ), ) res = s.destinations.put_destination(req) diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index bc759de2..81dc3c09 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -74,7 +74,7 @@ s = airbyte.Airbyte( ) req = shared.JobCreateRequest( - connection_id='string', + connection_id='18dccc91-0ab1-4f72-9ed7-0b8fc27c5826', job_type=shared.JobTypeEnum.SYNC, ) @@ -155,7 +155,6 @@ List Jobs by sync type ```python import airbyte -import dateutil.parser from airbyte.models import operations, shared s = airbyte.Airbyte( @@ -167,11 +166,7 @@ s = airbyte.Airbyte( ), ) -req = operations.ListJobsRequest( - workspace_ids=[ - 'c60f91a7-de80-41f6-b5d3-71c05bc4dea6', - ], -) +req = operations.ListJobsRequest() res = s.jobs.list_jobs(req) diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 80831701..7573a554 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -19,7 +19,6 @@ Creates a source given a name, workspace id, and a json blob containing the conf ```python import airbyte -import dateutil.parser from airbyte.models import shared s = airbyte.Airbyte( @@ -33,9 +32,9 @@ s = airbyte.Airbyte( req = shared.SourceCreateRequest( configuration=shared.SourceAha( - api_key='string', - url='https://complicated-seat.org', -), + api_key='string', + url='https://complicated-seat.org', + ), name='string', workspace_id='0f31f3dd-c984-48c3-8bdf-b109056aa6d6', ) @@ -179,9 +178,9 @@ s = airbyte.Airbyte( ) req = shared.InitiateOauthRequest( - redirect_url='string', + redirect_url='https://cloud.airbyte.io/v1/api/oauth/callback', source_type=shared.OAuthActorNames.GOOGLE_ADS, - workspace_id='fd28130d-9919-4ffa-a67d-4e12eb099447', + workspace_id='871d9b60-11d1-44cb-8c92-c246d53bf87e', o_auth_input_configuration=shared.OAuthInputConfiguration(), ) @@ -227,11 +226,7 @@ s = airbyte.Airbyte( ), ) -req = operations.ListSourcesRequest( - workspace_ids=[ - '74dbbb77-f80b-457c-8540-0c5d47a64428', - ], -) +req = operations.ListSourcesRequest() res = s.sources.list_sources(req) @@ -264,7 +259,6 @@ Update a Source ```python import airbyte -import dateutil.parser from airbyte.models import operations, shared s = airbyte.Airbyte( @@ -278,13 +272,6 @@ s = airbyte.Airbyte( req = operations.PatchSourceRequest( source_id='string', - source_patch_request=shared.SourcePatchRequest( - configuration=shared.SourceAha( - api_key='string', - url='http://apprehensive-visa.net', - ), - name='My source', - ), ) res = s.sources.patch_source(req) @@ -318,7 +305,6 @@ Update a Source and fully overwrite it ```python import airbyte -import dateutil.parser from airbyte.models import operations, shared s = airbyte.Airbyte( @@ -332,13 +318,6 @@ s = airbyte.Airbyte( req = operations.PutSourceRequest( source_id='string', - source_put_request=shared.SourcePutRequest( - configuration=shared.SourceAha( - api_key='string', - url='http://alienated-traveler.name', - ), - name='string', - ), ) res = s.sources.put_source(req) diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 3bf627d9..48e03515 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -33,9 +33,7 @@ s = airbyte.Airbyte( req = operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest( workspace_o_auth_credentials_request=shared.WorkspaceOAuthCredentialsRequest( actor_type=shared.ActorTypeEnum.DESTINATION, - configuration=shared.Airtable( - credentials=shared.Credentials(), - ), + configuration=shared.Airtable(), name=shared.OAuthActorNames.AMAZON_ADS, ), workspace_id='string', @@ -221,11 +219,7 @@ s = airbyte.Airbyte( ), ) -req = operations.ListWorkspacesRequest( - workspace_ids=[ - '4953f9aa-3803-487f-945d-389888ede307', - ], -) +req = operations.ListWorkspacesRequest() res = s.workspaces.list_workspaces(req) diff --git a/src/airbyte/models/shared/source_alloydb.py b/src/airbyte/models/shared/source_alloydb.py index 5104df44..42000f4c 100644 --- a/src/airbyte/models/shared/source_alloydb.py +++ b/src/airbyte/models/shared/source_alloydb.py @@ -36,6 +36,7 @@ class Plugin(str, Enum): @dataclasses.dataclass class LogicalReplicationCDC: r"""Logical replication uses the Postgres write-ahead log (WAL) to detect inserts, updates, and deletes. This needs to be configured on the source database itself. Only available on Postgres 10 and above. Read the docs.""" + UNSET='__SPEAKEASY_UNSET__' publication: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('publication') }}) r"""A Postgres publication used for consuming changes. Read about publications and replication identities.""" replication_slot: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('replication_slot') }}) @@ -76,6 +77,7 @@ class SourceAlloydbSchemasSSLModeSSLModes6Mode(str, Enum): @dataclasses.dataclass class SourceAlloydbVerifyFull: r"""This is the most secure mode. Always require encryption and verifies the identity of the source database server.""" + UNSET='__SPEAKEASY_UNSET__' ca_certificate: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ca_certificate') }}) r"""CA certificate""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -97,6 +99,7 @@ class SourceAlloydbSchemasSSLModeSSLModes5Mode(str, Enum): @dataclasses.dataclass class SourceAlloydbVerifyCa: r"""Always require encryption and verifies that the source database server has a valid SSL certificate.""" + UNSET='__SPEAKEASY_UNSET__' ca_certificate: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ca_certificate') }}) r"""CA certificate""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -118,6 +121,7 @@ class SourceAlloydbSchemasSSLModeSSLModesMode(str, Enum): @dataclasses.dataclass class SourceAlloydbRequire: r"""Always require encryption. If the source database server does not support encryption, connection will fail.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourceAlloydbSchemasSSLModeSSLModesMode] = dataclasses.field(default=SourceAlloydbSchemasSSLModeSSLModesMode.REQUIRE, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -131,6 +135,7 @@ class SourceAlloydbSchemasSslModeMode(str, Enum): @dataclasses.dataclass class SourceAlloydbPrefer: r"""Allows unencrypted connection only if the source database does not support encryption.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourceAlloydbSchemasSslModeMode] = dataclasses.field(default=SourceAlloydbSchemasSslModeMode.PREFER, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -144,6 +149,7 @@ class SourceAlloydbSchemasMode(str, Enum): @dataclasses.dataclass class SourceAlloydbAllow: r"""Enables encryption only when required by the source database.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourceAlloydbSchemasMode] = dataclasses.field(default=SourceAlloydbSchemasMode.ALLOW, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -157,6 +163,7 @@ class SourceAlloydbMode(str, Enum): @dataclasses.dataclass class SourceAlloydbDisable: r"""Disables encryption of communication between Airbyte and source database.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourceAlloydbMode] = dataclasses.field(default=SourceAlloydbMode.DISABLE, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) diff --git a/src/airbyte/models/shared/source_e2e_test_cloud.py b/src/airbyte/models/shared/source_e2e_test_cloud.py index 1903e6f2..25aa79ba 100644 --- a/src/airbyte/models/shared/source_e2e_test_cloud.py +++ b/src/airbyte/models/shared/source_e2e_test_cloud.py @@ -49,6 +49,7 @@ class Type(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class ContinuousFeed: + UNSET='__SPEAKEASY_UNSET__' mock_catalog: Union[SingleSchema, MultiSchema] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mock_catalog') }}) additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) max_messages: Optional[int] = dataclasses.field(default=100, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('max_messages'), 'exclude': lambda f: f is None }}) diff --git a/src/airbyte/models/shared/source_harvest.py b/src/airbyte/models/shared/source_harvest.py index 01e7fc06..5bf0e0fb 100644 --- a/src/airbyte/models/shared/source_harvest.py +++ b/src/airbyte/models/shared/source_harvest.py @@ -16,6 +16,7 @@ class SourceHarvestSchemasAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceHarvestAuthenticateWithPersonalAccessToken: + UNSET='__SPEAKEASY_UNSET__' api_token: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('api_token') }}) r"""Log into Harvest and then create new personal access token.""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -30,6 +31,7 @@ class SourceHarvestAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class AuthenticateViaHarvestOAuth: + UNSET='__SPEAKEASY_UNSET__' client_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_id') }}) r"""The Client ID of your Harvest developer application.""" client_secret: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_secret') }}) diff --git a/src/airbyte/models/shared/source_mongodb_v2.py b/src/airbyte/models/shared/source_mongodb_v2.py index 50495bfd..a1717a56 100644 --- a/src/airbyte/models/shared/source_mongodb_v2.py +++ b/src/airbyte/models/shared/source_mongodb_v2.py @@ -15,6 +15,7 @@ class SourceMongodbV2SchemasClusterType(str, Enum): @dataclasses.dataclass class SelfManagedReplicaSet: r"""MongoDB self-hosted cluster configured as a replica set""" + UNSET='__SPEAKEASY_UNSET__' connection_string: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('connection_string') }}) r"""The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information.""" database: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('database') }}) @@ -40,6 +41,7 @@ class SourceMongodbV2ClusterType(str, Enum): @dataclasses.dataclass class MongoDBAtlasReplicaSet: r"""MongoDB Atlas-hosted cluster configured as a replica set""" + UNSET='__SPEAKEASY_UNSET__' connection_string: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('connection_string') }}) r"""The connection string of the cluster that you want to replicate.""" database: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('database') }}) diff --git a/src/airbyte/models/shared/source_pinterest.py b/src/airbyte/models/shared/source_pinterest.py index ff0d223c..aa974d7e 100644 --- a/src/airbyte/models/shared/source_pinterest.py +++ b/src/airbyte/models/shared/source_pinterest.py @@ -240,13 +240,14 @@ class Status(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourcePinterest: + UNSET='__SPEAKEASY_UNSET__' credentials: Optional[OAuth20] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('credentials'), 'exclude': lambda f: f is None }}) custom_reports: Optional[List[ReportConfig]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_reports'), 'exclude': lambda f: f is None }}) r"""A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on \\"add\\" to fill this field.""" SOURCE_TYPE: Final[Optional[SourcePinterestPinterest]] = dataclasses.field(default=SourcePinterestPinterest.PINTEREST, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceType'), 'exclude': lambda f: f is None }}) start_date: Optional[date] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('start_date'), 'encoder': utils.dateisoformat(True), 'decoder': utils.datefromisoformat, 'exclude': lambda f: f is None }}) r"""A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today).""" - status: Optional[List[Status]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + status: Optional[List[Status]] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status'), 'exclude': lambda f: f is SourcePinterest.UNSET }}) r"""For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED.""" diff --git a/src/airbyte/models/shared/source_postgres.py b/src/airbyte/models/shared/source_postgres.py index 118da3cc..ffbbb515 100644 --- a/src/airbyte/models/shared/source_postgres.py +++ b/src/airbyte/models/shared/source_postgres.py @@ -48,6 +48,7 @@ class SourcePostgresPlugin(str, Enum): @dataclasses.dataclass class ReadChangesUsingWriteAheadLogCDC: r"""Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size.""" + UNSET='__SPEAKEASY_UNSET__' publication: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('publication') }}) r"""A Postgres publication used for consuming changes. Read about publications and replication identities.""" replication_slot: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('replication_slot') }}) @@ -76,6 +77,7 @@ class SourcePostgresSchemasSSLModeSSLModes6Mode(str, Enum): @dataclasses.dataclass class SourcePostgresVerifyFull: r"""This is the most secure mode. Always require encryption and verifies the identity of the source database server.""" + UNSET='__SPEAKEASY_UNSET__' ca_certificate: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ca_certificate') }}) r"""CA certificate""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -97,6 +99,7 @@ class SourcePostgresSchemasSSLModeSSLModes5Mode(str, Enum): @dataclasses.dataclass class SourcePostgresVerifyCa: r"""Always require encryption and verifies that the source database server has a valid SSL certificate.""" + UNSET='__SPEAKEASY_UNSET__' ca_certificate: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ca_certificate') }}) r"""CA certificate""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -118,6 +121,7 @@ class SourcePostgresSchemasSSLModeSSLModesMode(str, Enum): @dataclasses.dataclass class SourcePostgresRequire: r"""Always require encryption. If the source database server does not support encryption, connection will fail.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourcePostgresSchemasSSLModeSSLModesMode] = dataclasses.field(default=SourcePostgresSchemasSSLModeSSLModesMode.REQUIRE, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -131,6 +135,7 @@ class SourcePostgresSchemasSslModeMode(str, Enum): @dataclasses.dataclass class SourcePostgresPrefer: r"""Allows unencrypted connection only if the source database does not support encryption.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourcePostgresSchemasSslModeMode] = dataclasses.field(default=SourcePostgresSchemasSslModeMode.PREFER, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -144,6 +149,7 @@ class SourcePostgresSchemasMode(str, Enum): @dataclasses.dataclass class SourcePostgresAllow: r"""Enables encryption only when required by the source database.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourcePostgresSchemasMode] = dataclasses.field(default=SourcePostgresSchemasMode.ALLOW, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) @@ -157,6 +163,7 @@ class SourcePostgresMode(str, Enum): @dataclasses.dataclass class SourcePostgresDisable: r"""Disables encryption of communication between Airbyte and source database.""" + UNSET='__SPEAKEASY_UNSET__' additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) MODE: Final[SourcePostgresMode] = dataclasses.field(default=SourcePostgresMode.DISABLE, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mode') }}) diff --git a/src/airbyte/models/shared/source_retently.py b/src/airbyte/models/shared/source_retently.py index 1b55db58..b3dbea5f 100644 --- a/src/airbyte/models/shared/source_retently.py +++ b/src/airbyte/models/shared/source_retently.py @@ -14,6 +14,7 @@ class SourceRetentlySchemasAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class AuthenticateWithAPIToken: + UNSET='__SPEAKEASY_UNSET__' api_key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('api_key') }}) r"""Retently API Token. See the docs for more information on how to obtain this key.""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -28,6 +29,7 @@ class SourceRetentlyAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class AuthenticateViaRetentlyOAuth: + UNSET='__SPEAKEASY_UNSET__' client_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_id') }}) r"""The Client ID of your Retently developer application.""" client_secret: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_secret') }}) diff --git a/src/airbyte/models/shared/source_youtube_analytics.py b/src/airbyte/models/shared/source_youtube_analytics.py index bd2da8ce..c974bf67 100644 --- a/src/airbyte/models/shared/source_youtube_analytics.py +++ b/src/airbyte/models/shared/source_youtube_analytics.py @@ -11,6 +11,7 @@ @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class AuthenticateViaOAuth20: + UNSET='__SPEAKEASY_UNSET__' client_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_id') }}) r"""The Client ID of your developer application""" client_secret: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_secret') }}) diff --git a/src/airbyte/models/shared/source_zendesk_support.py b/src/airbyte/models/shared/source_zendesk_support.py index 097bf5f6..5a5267ab 100644 --- a/src/airbyte/models/shared/source_zendesk_support.py +++ b/src/airbyte/models/shared/source_zendesk_support.py @@ -16,6 +16,7 @@ class SourceZendeskSupportSchemasCredentials(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceZendeskSupportAPIToken: + UNSET='__SPEAKEASY_UNSET__' api_token: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('api_token') }}) r"""The value of the API token generated. See our full documentation for more information on generating this token.""" email: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email') }}) @@ -32,6 +33,7 @@ class SourceZendeskSupportCredentials(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceZendeskSupportOAuth20: + UNSET='__SPEAKEASY_UNSET__' access_token: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('access_token') }}) r"""The OAuth access token. See the Zendesk docs for more information on generating this token.""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) diff --git a/src/airbyte/models/shared/source_zendesk_talk.py b/src/airbyte/models/shared/source_zendesk_talk.py index 41b52947..5bf34695 100644 --- a/src/airbyte/models/shared/source_zendesk_talk.py +++ b/src/airbyte/models/shared/source_zendesk_talk.py @@ -16,6 +16,7 @@ class SourceZendeskTalkSchemasAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceZendeskTalkOAuth20: + UNSET='__SPEAKEASY_UNSET__' access_token: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('access_token') }}) r"""The value of the API token generated. See the docs for more information.""" additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) @@ -34,6 +35,7 @@ class SourceZendeskTalkAuthType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceZendeskTalkAPIToken: + UNSET='__SPEAKEASY_UNSET__' api_token: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('api_token') }}) r"""The value of the API token generated. See the docs for more information.""" email: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email') }}) diff --git a/src/airbyte/models/shared/source_zoho_crm.py b/src/airbyte/models/shared/source_zoho_crm.py index 50d92bff..4e60cb63 100644 --- a/src/airbyte/models/shared/source_zoho_crm.py +++ b/src/airbyte/models/shared/source_zoho_crm.py @@ -39,6 +39,7 @@ class ZohoCrm(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class SourceZohoCrm: + UNSET='__SPEAKEASY_UNSET__' client_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_id') }}) r"""OAuth2.0 Client ID""" client_secret: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('client_secret') }}) @@ -52,7 +53,7 @@ class SourceZohoCrm: edition: Optional[ZohoCRMEdition] = dataclasses.field(default=ZohoCRMEdition.FREE, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('edition'), 'exclude': lambda f: f is None }}) r"""Choose your Edition of Zoho CRM to determine API Concurrency Limits""" SOURCE_TYPE: Final[ZohoCrm] = dataclasses.field(default=ZohoCrm.ZOHO_CRM, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceType') }}) - start_datetime: Optional[datetime] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('start_datetime'), 'encoder': utils.datetimeisoformat(True), 'decoder': dateutil.parser.isoparse }}) + start_datetime: Optional[datetime] = dataclasses.field(default=UNSET, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('start_datetime'), 'encoder': utils.datetimeisoformat(True), 'decoder': dateutil.parser.isoparse, 'exclude': lambda f: f is SourceZohoCrm.UNSET }}) r"""ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM`""" diff --git a/src/airbyte/sdkconfiguration.py b/src/airbyte/sdkconfiguration.py index fe02b389..fa821f83 100644 --- a/src/airbyte/sdkconfiguration.py +++ b/src/airbyte/sdkconfiguration.py @@ -1,11 +1,12 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import requests -from dataclasses import dataclass -from typing import Dict, Tuple, Callable, Union -from .utils.retries import RetryConfig + +import requests as requests_http from .utils import utils +from .utils.retries import RetryConfig from airbyte.models import shared +from dataclasses import dataclass +from typing import Callable, Dict, Tuple, Union SERVERS = [ @@ -16,15 +17,15 @@ @dataclass class SDKConfiguration: - client: requests.Session + client: requests_http.Session security: Union[shared.Security,Callable[[], shared.Security]] = None server_url: str = '' server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' sdk_version: str = '0.47.0' - gen_version: str = '2.250.12' - user_agent: str = 'speakeasy-sdk/python 0.47.0 2.250.12 1.0.0 airbyte-api' + gen_version: str = '2.253.0' + user_agent: str = 'speakeasy-sdk/python 0.47.0 2.253.0 1.0.0 airbyte-api' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: