Skip to content

Commit

Permalink
Merge pull request #15 from airbytehq/speakeasy-sdk-regen-1684368791
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate
  • Loading branch information
terencecho authored May 23, 2023
2 parents 567887a + 7139706 commit 552bc3d
Show file tree
Hide file tree
Showing 270 changed files with 1,267 additions and 1,203 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ req = shared.ConnectionCreateRequest(
'placeat',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_APPEND,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -73,7 +73,7 @@ req = shared.ConnectionCreateRequest(
'sapiente',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_DEDUPED_HISTORY,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_DEDUPED_HISTORY,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -92,20 +92,20 @@ req = shared.ConnectionCreateRequest(
'fugit',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_APPEND,
),
],
),
data_residency=shared.GeographyEnumEnum.EU,
data_residency=shared.GeographyEnum.EU,
destination_id='c816742c-b739-4205-9293-96fea7596eb1',
name='Lela Orn',
namespace_definition=shared.NamespaceDefinitionEnumEnum.SOURCE,
namespace_definition=shared.NamespaceDefinitionEnum.SOURCE,
namespace_format='${SOURCE_NAMESPACE}',
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnumEnum.IGNORE,
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnum.IGNORE,
prefix='corporis',
schedule=shared.ConnectionScheduleCreate(
cron_expression='explicabo',
schedule_type=shared.ScheduleTypeEnumEnum.CRON,
schedule_type=shared.ScheduleTypeEnum.CRON,
),
source_id='5955907a-ff1a-43a2-ba94-67739251aa52',
)
Expand Down
26 changes: 25 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,28 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.7.0] https://pypi.org/project/airbyte-api/0.7.0 - .
- [PyPI v0.7.0] https://pypi.org/project/airbyte-api/0.7.0 - .

## 2023-05-18 00:13:10
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.8.0] https://pypi.org/project/airbyte-api/0.8.0 - .

## 2023-05-18 20:19:16
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.9.0] https://pypi.org/project/airbyte-api/0.9.0 - .

## 2023-05-23 00:13:59
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.10.0] https://pypi.org/project/airbyte-api/0.10.0 - .
14 changes: 7 additions & 7 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ req = shared.ConnectionCreateRequest(
'placeat',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_APPEND,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -49,7 +49,7 @@ req = shared.ConnectionCreateRequest(
'sapiente',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_DEDUPED_HISTORY,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_DEDUPED_HISTORY,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -68,20 +68,20 @@ req = shared.ConnectionCreateRequest(
'fugit',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_APPEND,
),
],
),
data_residency=shared.GeographyEnumEnum.EU,
data_residency=shared.GeographyEnum.EU,
destination_id='c816742c-b739-4205-9293-96fea7596eb1',
name='Lela Orn',
namespace_definition=shared.NamespaceDefinitionEnumEnum.SOURCE,
namespace_definition=shared.NamespaceDefinitionEnum.SOURCE,
namespace_format='${SOURCE_NAMESPACE}',
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnumEnum.IGNORE,
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnum.IGNORE,
prefix='corporis',
schedule=shared.ConnectionScheduleCreate(
cron_expression='explicabo',
schedule_type=shared.ScheduleTypeEnumEnum.CRON,
schedule_type=shared.ScheduleTypeEnum.CRON,
),
source_id='5955907a-ff1a-43a2-ba94-67739251aa52',
)
Expand Down
16 changes: 8 additions & 8 deletions docs/connections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ req = shared.ConnectionCreateRequest(
'reprehenderit',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.FULL_REFRESH_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.FULL_REFRESH_APPEND,
),
shared.StreamConfiguration(
cursor_field=[
Expand Down Expand Up @@ -82,7 +82,7 @@ req = shared.ConnectionCreateRequest(
'veritatis',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_DEDUPED_HISTORY,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_DEDUPED_HISTORY,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -109,7 +109,7 @@ req = shared.ConnectionCreateRequest(
'dolorum',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_APPEND,
),
shared.StreamConfiguration(
cursor_field=[
Expand All @@ -134,20 +134,20 @@ req = shared.ConnectionCreateRequest(
'illum',
],
],
sync_mode=shared.ConnectionSyncModeEnumEnum.INCREMENTAL_DEDUPED_HISTORY,
sync_mode=shared.ConnectionSyncModeEnum.INCREMENTAL_DEDUPED_HISTORY,
),
],
),
data_residency=shared.GeographyEnumEnum.EU,
data_residency=shared.GeographyEnum.EU,
destination_id='14cd66ae-395e-4fb9-ba88-f3a66997074b',
name='Leroy Greenfelder',
namespace_definition=shared.NamespaceDefinitionEnumEnum.CUSTOM_FORMAT,
namespace_definition=shared.NamespaceDefinitionEnum.CUSTOM_FORMAT,
namespace_format='${SOURCE_NAMESPACE}',
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnumEnum.IGNORE,
non_breaking_schema_updates_behavior=shared.NonBreakingSchemaUpdatesBehaviorEnum.IGNORE,
prefix='vero',
schedule=shared.ConnectionScheduleCreate(
cron_expression='aspernatur',
schedule_type=shared.ScheduleTypeEnumEnum.MANUAL,
schedule_type=shared.ScheduleTypeEnum.MANUAL,
),
source_id='41959890-afa5-463e-a516-fe4c8b711e5b',
)
Expand Down
4 changes: 2 additions & 2 deletions docs/destinations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ req = shared.DestinationCreateRequest(
configuration=shared.DestinationDatabricks(
accept_terms=False,
data_source=shared.DestinationDatabricksDataSourceRecommendedManagedTables(
data_source_type=shared.DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceTypeEnum.MANAGED_TABLES_STORAGE,
data_source_type=shared.DestinationDatabricksDataSourceRecommendedManagedTablesDataSourceType.MANAGED_TABLES_STORAGE,
),
database='perferendis',
databricks_http_path='amet',
databricks_personal_access_token='optio',
databricks_port='accusamus',
databricks_server_hostname='ad',
destination_type=shared.DestinationDatabricksDatabricksEnum.DATABRICKS,
destination_type=shared.DestinationDatabricksDatabricks.DATABRICKS,
purge_staging_data=False,
schema='saepe',
),
Expand Down
4 changes: 2 additions & 2 deletions docs/jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ s = airbyte.Airbyte(

req = shared.JobCreateRequest(
connection_id='odio',
job_type=shared.JobTypeEnumEnum.RESET,
job_type=shared.JobTypeEnum.RESET,
)

res = s.jobs.create_job(req)
Expand Down Expand Up @@ -104,7 +104,7 @@ s = airbyte.Airbyte(

req = operations.ListJobsRequest(
connection_id='quisquam',
job_type=shared.JobTypeEnumEnum.RESET,
job_type=shared.JobTypeEnum.RESET,
limit=606476,
offset=338159,
)
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ req = shared.SourceCreateRequest(
records_per_slice=231701,
records_per_sync=878870,
seed=949319,
source_type=shared.SourceFakerFakerEnum.FAKER,
source_type=shared.SourceFakerFaker.FAKER,
),
name='Darla Rau',
secret_id='similique',
Expand Down
2 changes: 1 addition & 1 deletion docs/workspaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ s = airbyte.Airbyte(

req = operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest(
workspace_o_auth_credentials_request=shared.WorkspaceOAuthCredentialsRequest(
actor_type=shared.ActorTypeEnumEnum.SOURCE,
actor_type=shared.ActorTypeEnum.SOURCE,
configuration={
"error": 'sint',
"pariatur": 'possimus',
Expand Down
21 changes: 11 additions & 10 deletions files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ src/airbyte/models/operations/listworkspaces.py
src/airbyte/models/operations/updateworkspace.py
src/airbyte/models/operations/__init__.py
src/airbyte/models/shared/connectionresponse.py
src/airbyte/models/shared/connectionstatusenum_enum.py
src/airbyte/models/shared/connectionstatusenum.py
src/airbyte/models/shared/connectionscheduleresponse.py
src/airbyte/models/shared/scheduletypewithbasicenum_enum.py
src/airbyte/models/shared/nonbreakingschemaupdatesbehaviorenum_enum.py
src/airbyte/models/shared/namespacedefinitionenum_enum.py
src/airbyte/models/shared/geographyenum_enum.py
src/airbyte/models/shared/scheduletypewithbasicenum.py
src/airbyte/models/shared/nonbreakingschemaupdatesbehaviorenum.py
src/airbyte/models/shared/namespacedefinitionenum.py
src/airbyte/models/shared/geographyenum.py
src/airbyte/models/shared/connectioncreaterequest.py
src/airbyte/models/shared/connectionschedulecreate.py
src/airbyte/models/shared/scheduletypeenum_enum.py
src/airbyte/models/shared/scheduletypeenum.py
src/airbyte/models/shared/streamconfigurations.py
src/airbyte/models/shared/streamconfiguration.py
src/airbyte/models/shared/connectionsyncmodeenum_enum.py
src/airbyte/models/shared/connectionsyncmodeenum.py
src/airbyte/models/shared/connectionsresponse.py
src/airbyte/models/shared/destinationresponse.py
src/airbyte/models/shared/destinationcreaterequest.py
Expand All @@ -64,6 +64,7 @@ src/airbyte/models/shared/destination_convex.py
src/airbyte/models/shared/destination_cumulio.py
src/airbyte/models/shared/destination_databend.py
src/airbyte/models/shared/destination_databricks.py
src/airbyte/models/shared/destination_dev_null.py
src/airbyte/models/shared/destination_dynamodb.py
src/airbyte/models/shared/destination_elasticsearch.py
src/airbyte/models/shared/destination_firebolt.py
Expand Down Expand Up @@ -93,8 +94,8 @@ src/airbyte/models/shared/destination_snowflake.py
src/airbyte/models/shared/destination_typesense.py
src/airbyte/models/shared/destinationsresponse.py
src/airbyte/models/shared/jobresponse.py
src/airbyte/models/shared/jobstatusenum_enum.py
src/airbyte/models/shared/jobtypeenum_enum.py
src/airbyte/models/shared/jobstatusenum.py
src/airbyte/models/shared/jobtypeenum.py
src/airbyte/models/shared/jobcreaterequest.py
src/airbyte/models/shared/jobsresponse.py
src/airbyte/models/shared/sourceresponse.py
Expand Down Expand Up @@ -294,7 +295,7 @@ src/airbyte/models/shared/initiateoauthrequest.py
src/airbyte/models/shared/sourcesresponse.py
src/airbyte/models/shared/streamproperties.py
src/airbyte/models/shared/workspaceoauthcredentialsrequest.py
src/airbyte/models/shared/actortypeenum_enum.py
src/airbyte/models/shared/actortypeenum.py
src/airbyte/models/shared/workspaceresponse.py
src/airbyte/models/shared/workspacecreaterequest.py
src/airbyte/models/shared/workspacesresponse.py
Expand Down
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
configVersion: 1.0.0
management:
docChecksum: a486e9e3eacd68c92aee50f313722c18
docChecksum: e82f3e11abf47c2509f115468e75bb06
docVersion: 1.0.0
speakeasyVersion: 1.33.2
generationVersion: 2.29.0
speakeasyVersion: 1.37.5
generationVersion: 2.32.2
generation:
sdkClassName: airbyte
singleTagPerOp: false
telemetryEnabled: true
python:
version: 0.7.0
version: 0.10.0
author: Airbyte
description: Python Client SDK for Airbyte API
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="airbyte-api",
version="0.7.0",
version="0.10.0",
author="Airbyte",
description="Python Client SDK for Airbyte API",
long_description=long_description,
Expand Down
8 changes: 4 additions & 4 deletions src/airbyte/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def create_connection(self, request: shared.ConnectionCreateRequest) -> operatio
base_url = self._server_url

url = base_url.removesuffix('/') + '/connections'

headers = {}
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
if data is None and form is None:
raise Exception('request body is required')
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -58,8 +58,8 @@ def delete_connection(self, request: operations.DeleteConnectionRequest) -> oper
base_url = self._server_url

url = utils.generate_url(operations.DeleteConnectionRequest, base_url, '/connections/{connectionId}', request)

headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -78,8 +78,8 @@ def get_connection(self, request: operations.GetConnectionRequest) -> operations
base_url = self._server_url

url = utils.generate_url(operations.GetConnectionRequest, base_url, '/connections/{connectionId}', request)

headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -104,9 +104,9 @@ def list_connections(self, request: operations.ListConnectionsRequest) -> operat
base_url = self._server_url

url = base_url.removesuffix('/') + '/connections'

headers = {}
query_params = utils.get_query_params(operations.ListConnectionsRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
8 changes: 4 additions & 4 deletions src/airbyte/destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def create_destination(self, request: shared.DestinationCreateRequest) -> operat
base_url = self._server_url

url = base_url.removesuffix('/') + '/destinations'

headers = {}
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -58,8 +58,8 @@ def delete_destination(self, request: operations.DeleteDestinationRequest) -> op
base_url = self._server_url

url = utils.generate_url(operations.DeleteDestinationRequest, base_url, '/destinations/{destinationId}', request)

headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -78,8 +78,8 @@ def get_destination(self, request: operations.GetDestinationRequest) -> operatio
base_url = self._server_url

url = utils.generate_url(operations.GetDestinationRequest, base_url, '/destinations/{destinationId}', request)

headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -104,9 +104,9 @@ def list_destinations(self, request: operations.ListDestinationsRequest) -> oper
base_url = self._server_url

url = base_url.removesuffix('/') + '/destinations'

headers = {}
query_params = utils.get_query_params(operations.ListDestinationsRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
Loading

0 comments on commit 552bc3d

Please sign in to comment.