Skip to content

Commit 3ba04ef

Browse files
committed
fix bugs
1 parent 831cee6 commit 3ba04ef

File tree

13 files changed

+132
-106
lines changed

13 files changed

+132
-106
lines changed

client/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ create_destination_body = stitch_connect_client.CreateDestinationBody() # Create
6363

6464
try:
6565
# Creates a new destination. Only a single destination is supported per Stitch client account.
66-
api_instance.create_destination(create_destination_body)
66+
api_response = api_instance.create_destination(create_destination_body)
67+
pprint(api_response)
6768
except ApiException as e:
6869
print("Exception when calling DestinationsApi->create_destination: %s\n" % e)
6970

@@ -109,9 +110,11 @@ Class | Method | HTTP request | Description
109110
- [ErrorObject](docs/ErrorObject.md)
110111
- [ErrorObjectError](docs/ErrorObjectError.md)
111112
- [FieldLevelMetadata](docs/FieldLevelMetadata.md)
113+
- [ForcedReplicationMethod](docs/ForcedReplicationMethod.md)
112114
- [HookNotification](docs/HookNotification.md)
113115
- [HookNotificationConfig](docs/HookNotificationConfig.md)
114116
- [Metadata](docs/Metadata.md)
117+
- [MetadataObject](docs/MetadataObject.md)
115118
- [ReplicationJob](docs/ReplicationJob.md)
116119
- [S3DestinationFormProperties](docs/S3DestinationFormProperties.md)
117120
- [SalesforceSourceFormProperties](docs/SalesforceSourceFormProperties.md)

client/docs/DestinationsApi.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313

1414
# **create_destination**
15-
> create_destination(create_destination_body)
15+
> Destination create_destination(create_destination_body)
1616
1717
Creates a new destination. Only a single destination is supported per Stitch client account.
1818

@@ -37,7 +37,8 @@ create_destination_body = stitch_connect_client.CreateDestinationBody() # Create
3737

3838
try:
3939
# Creates a new destination. Only a single destination is supported per Stitch client account.
40-
api_instance.create_destination(create_destination_body)
40+
api_response = api_instance.create_destination(create_destination_body)
41+
pprint(api_response)
4142
except ApiException as e:
4243
print("Exception when calling DestinationsApi->create_destination: %s\n" % e)
4344
```
@@ -50,7 +51,7 @@ Name | Type | Description | Notes
5051

5152
### Return type
5253

53-
void (empty response body)
54+
[**Destination**](Destination.md)
5455

5556
### Authorization
5657

@@ -59,12 +60,12 @@ void (empty response body)
5960
### HTTP request headers
6061

6162
- **Content-Type**: application/json
62-
- **Accept**: Not defined
63+
- **Accept**: application/json
6364

6465
### HTTP response details
6566
| Status code | Description | Response headers |
6667
|-------------|-------------|------------------|
67-
**200** | | - |
68+
**200** | Successfully created destination | - |
6869
**400** | Only a single destination per account is allowed | - |
6970

7071
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -183,7 +184,7 @@ This endpoint does not need any parameter.
183184
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
184185

185186
# **get_destinations**
186-
> get_destinations()
187+
> list[Destination] get_destinations()
187188
188189
Lists the destination currently in use for a Stitch account. Only a single data warehouse is supported per Stitch client account.
189190

@@ -207,7 +208,8 @@ api_instance = stitch_connect_client.DestinationsApi(stitch_connect_client.ApiCl
207208

208209
try:
209210
# Lists the destination currently in use for a Stitch account. Only a single data warehouse is supported per Stitch client account.
210-
api_instance.get_destinations()
211+
api_response = api_instance.get_destinations()
212+
pprint(api_response)
211213
except ApiException as e:
212214
print("Exception when calling DestinationsApi->get_destinations: %s\n" % e)
213215
```
@@ -217,7 +219,7 @@ This endpoint does not need any parameter.
217219

218220
### Return type
219221

220-
void (empty response body)
222+
[**list[Destination]**](Destination.md)
221223

222224
### Authorization
223225

@@ -231,12 +233,12 @@ void (empty response body)
231233
### HTTP response details
232234
| Status code | Description | Response headers |
233235
|-------------|-------------|------------------|
234-
**200** | | - |
236+
**200** | List of destination objects | - |
235237

236238
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
237239

238240
# **update_destination**
239-
> update_destination(destination_id, destination_form_properties)
241+
> Destination update_destination(destination_id, destination_form_properties)
240242
241243
Updates an existing destination. Modifications to the type attribute are not supported.
242244

@@ -262,7 +264,8 @@ destination_form_properties = stitch_connect_client.DestinationFormProperties()
262264

263265
try:
264266
# Updates an existing destination. Modifications to the type attribute are not supported.
265-
api_instance.update_destination(destination_id, destination_form_properties)
267+
api_response = api_instance.update_destination(destination_id, destination_form_properties)
268+
pprint(api_response)
266269
except ApiException as e:
267270
print("Exception when calling DestinationsApi->update_destination: %s\n" % e)
268271
```
@@ -276,7 +279,7 @@ Name | Type | Description | Notes
276279

277280
### Return type
278281

279-
void (empty response body)
282+
[**Destination**](Destination.md)
280283

281284
### Authorization
282285

@@ -285,12 +288,12 @@ void (empty response body)
285288
### HTTP request headers
286289

287290
- **Content-Type**: application/json
288-
- **Accept**: Not defined
291+
- **Accept**: application/json
289292

290293
### HTTP response details
291294
| Status code | Description | Response headers |
292295
|-------------|-------------|------------------|
293-
**200** | | - |
296+
**200** | Successfully updated destination | - |
294297
**400** | Invalid destination ID | - |
295298

296299
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

client/docs/Metadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ A Metadata object describes a stream’s schema and the current state of its con
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**breadcrumbs** | **list[str]** | An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` |
8-
**metadata** | [**OneOfstreamLevelMetadatafieldLevelMetadata**](OneOfstreamLevelMetadatafieldLevelMetadata.md) | An object containing metadata associated with the breadcrumb. The type of metadata object depends on the breadcrumb: For the entire schema (breadcrumb: []), this will be a Stream-level Metadata object. For an individual field (breadcrumb: [\"properties\", \"<FIELD_NAME>\"]), this will be a Field-level Metadata object |
7+
**breadcrumb** | **list[str]** | An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` | [optional]
8+
**metadata_object** | [**MetadataObject**](MetadataObject.md) | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

client/docs/SourcesApi.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
7373
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7474

7575
# **delete_source**
76-
> delete_source(source_id)
76+
> Source delete_source(source_id)
7777
7878
Deletes an existing data source.
7979

@@ -98,7 +98,8 @@ source_id = 'source_id_example' # str | The ID of the source
9898

9999
try:
100100
# Deletes an existing data source.
101-
api_instance.delete_source(source_id)
101+
api_response = api_instance.delete_source(source_id)
102+
pprint(api_response)
102103
except ApiException as e:
103104
print("Exception when calling SourcesApi->delete_source: %s\n" % e)
104105
```
@@ -111,7 +112,7 @@ Name | Type | Description | Notes
111112

112113
### Return type
113114

114-
void (empty response body)
115+
[**Source**](Source.md)
115116

116117
### Authorization
117118

@@ -120,12 +121,12 @@ void (empty response body)
120121
### HTTP request headers
121122

122123
- **Content-Type**: Not defined
123-
- **Accept**: Not defined
124+
- **Accept**: application/json
124125

125126
### HTTP response details
126127
| Status code | Description | Response headers |
127128
|-------------|-------------|------------------|
128-
**200** | | - |
129+
**200** | Successfully deleted data source | - |
129130

130131
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
131132

@@ -188,7 +189,7 @@ Name | Type | Description | Notes
188189
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
189190

190191
# **get_source**
191-
> get_source(source_id)
192+
> Source get_source(source_id)
192193
193194
Retrieves a previously created data source by its unique identifier. This endpoint can be used to retrieve an active, paused, or deleted source.
194195

@@ -213,7 +214,8 @@ source_id = 'source_id_example' # str | The ID of the source
213214

214215
try:
215216
# Retrieves a previously created data source by its unique identifier. This endpoint can be used to retrieve an active, paused, or deleted source.
216-
api_instance.get_source(source_id)
217+
api_response = api_instance.get_source(source_id)
218+
pprint(api_response)
217219
except ApiException as e:
218220
print("Exception when calling SourcesApi->get_source: %s\n" % e)
219221
```
@@ -226,7 +228,7 @@ Name | Type | Description | Notes
226228

227229
### Return type
228230

229-
void (empty response body)
231+
[**Source**](Source.md)
230232

231233
### Authorization
232234

@@ -235,12 +237,12 @@ void (empty response body)
235237
### HTTP request headers
236238

237239
- **Content-Type**: Not defined
238-
- **Accept**: Not defined
240+
- **Accept**: application/json
239241

240242
### HTTP response details
241243
| Status code | Description | Response headers |
242244
|-------------|-------------|------------------|
243-
**200** | | - |
245+
**200** | Successfully retrieved data source | - |
244246

245247
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
246248

@@ -358,7 +360,7 @@ Name | Type | Description | Notes
358360
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
359361

360362
# **update_source**
361-
> update_source(source_id, update_source_body)
363+
> Source update_source(source_id, update_source_body)
362364
363365
Updates an existing data source.
364366

@@ -384,7 +386,8 @@ update_source_body = stitch_connect_client.UpdateSourceBody() # UpdateSourceBody
384386

385387
try:
386388
# Updates an existing data source.
387-
api_instance.update_source(source_id, update_source_body)
389+
api_response = api_instance.update_source(source_id, update_source_body)
390+
pprint(api_response)
388391
except ApiException as e:
389392
print("Exception when calling SourcesApi->update_source: %s\n" % e)
390393
```
@@ -398,7 +401,7 @@ Name | Type | Description | Notes
398401

399402
### Return type
400403

401-
void (empty response body)
404+
[**Source**](Source.md)
402405

403406
### Authorization
404407

@@ -407,12 +410,12 @@ void (empty response body)
407410
### HTTP request headers
408411

409412
- **Content-Type**: application/json
410-
- **Accept**: Not defined
413+
- **Accept**: application/json
411414

412415
### HTTP response details
413416
| Status code | Description | Response headers |
414417
|-------------|-------------|------------------|
415-
**200** | | - |
418+
**200** | Successfully updated source | - |
416419

417420
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
418421

client/docs/StreamLevelMetadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Contained in Metadata and Stream objects, the Stream-level Metadata object conta
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**database_name** | **str** | For database sources only. The name of the database containing the stream. | [optional]
8-
**forced_replication_method** | **str** | Indicates which Replication Method is required for the stream. Possible values are: FULL_TABLE - The stream is using Full Table Replication INCREMENTAL - The stream is using Key-based Incremental Replication LOG_BASED - The stream is using Log-based Incremental Replication. | [optional]
8+
**forced_replication_method** | [**ForcedReplicationMethod**](ForcedReplicationMethod.md) | | [optional]
99
**is_view** | **bool** | For database sources only. Indicates if the stream is a database view. | [optional]
1010
**replication_key** | **str** | Indicates the field being used as the stream’s Replication Key. | [optional]
1111
**replication_method** | **str** | The Replication Method the stream uses to replicate data. Accepted values are: FULL_TABLE - The stream is using Full Table Replication INCREMENTAL - The stream is using Key-based Incremental Replication LOG_BASED - The stream is using Log-based Incremental Replication. Note: This method is only available for certain database sources, and requires additional setup to use. | [optional]

client/docs/StreamsApi.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010

1111

1212
# **get_stream_schema**
13-
> get_stream_schema(source_id, stream_id)
13+
> StreamSchema get_stream_schema(source_id, stream_id)
1414
1515
Retrieves the schema for a source’s stream by the source and stream’s unique identifiers.
1616

@@ -36,7 +36,8 @@ stream_id = 'stream_id_example' # str | The ID of the source
3636

3737
try:
3838
# Retrieves the schema for a source’s stream by the source and stream’s unique identifiers.
39-
api_instance.get_stream_schema(source_id, stream_id)
39+
api_response = api_instance.get_stream_schema(source_id, stream_id)
40+
pprint(api_response)
4041
except ApiException as e:
4142
print("Exception when calling StreamsApi->get_stream_schema: %s\n" % e)
4243
```
@@ -50,7 +51,7 @@ Name | Type | Description | Notes
5051

5152
### Return type
5253

53-
void (empty response body)
54+
[**StreamSchema**](StreamSchema.md)
5455

5556
### Authorization
5657

@@ -59,13 +60,13 @@ void (empty response body)
5960
### HTTP request headers
6061

6162
- **Content-Type**: Not defined
62-
- **Accept**: Not defined
63+
- **Accept**: application/json
6364

6465
### HTTP response details
6566
| Status code | Description | Response headers |
6667
|-------------|-------------|------------------|
67-
**200** | | - |
68-
**400** | Invalid source ID | - |
68+
**200** | Schema for a stream object | - |
69+
**400** | Invalid stream ID | - |
6970

7071
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7172

client/stitch_connect_client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
from stitch_connect_client.models.error_object import ErrorObject
4646
from stitch_connect_client.models.error_object_error import ErrorObjectError
4747
from stitch_connect_client.models.field_level_metadata import FieldLevelMetadata
48+
from stitch_connect_client.models.forced_replication_method import ForcedReplicationMethod
4849
from stitch_connect_client.models.hook_notification import HookNotification
4950
from stitch_connect_client.models.hook_notification_config import HookNotificationConfig
5051
from stitch_connect_client.models.metadata import Metadata
52+
from stitch_connect_client.models.metadata_object import MetadataObject
5153
from stitch_connect_client.models.replication_job import ReplicationJob
5254
from stitch_connect_client.models.s3_destination_form_properties import S3DestinationFormProperties
5355
from stitch_connect_client.models.salesforce_source_form_properties import SalesforceSourceFormProperties

0 commit comments

Comments
 (0)