Skip to content

Commit ad671ce

Browse files
committed
add more streams endpoints
1 parent 001fdef commit ad671ce

40 files changed

+3214
-433
lines changed

src/README.md

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,41 @@ configuration = openapi_client.Configuration()
5555
# Configure Bearer authorization: bearerAuth
5656
configuration.access_token = 'YOUR_BEARER_TOKEN'
5757

58-
# Defining host is optional and default to https://api.stitchdata.com
59-
configuration.host = "https://api.stitchdata.com"
58+
# Defining host is optional and default to https://stitchdata.com
59+
configuration.host = "https://stitchdata.com"
6060
# Create an instance of the API class
61-
api_instance = openapi_client.DestinationTypesApi(openapi_client.ApiClient(configuration))
61+
api_instance = openapi_client.DestinationsApi(openapi_client.ApiClient(configuration))
62+
destination_info = openapi_client.DestinationInfo() # DestinationInfo | Object containing type and properties of a destination (optional)
6263

6364
try:
64-
# Retrieves general information about the configuration required for all supported destination types.
65-
api_response = api_instance.api_get_destination_types()
66-
pprint(api_response)
65+
# Creates a new destination. Only a single destination is supported per Stitch client account.
66+
api_instance.create_destination(destination_info=destination_info)
6767
except ApiException as e:
68-
print("Exception when calling DestinationTypesApi->api_get_destination_types: %s\n" % e)
68+
print("Exception when calling DestinationsApi->create_destination: %s\n" % e)
6969

7070
```
7171

7272
## Documentation for API Endpoints
7373

74-
All URIs are relative to *https://api.stitchdata.com*
74+
All URIs are relative to *https://stitchdata.com*
7575

7676
Class | Method | HTTP request | Description
7777
------------ | ------------- | ------------- | -------------
78-
*DestinationTypesApi* | [**api_get_destination_types**](docs/DestinationTypesApi.md#api_get_destination_types) | **GET** /v4/destination-types | Retrieves general information about the configuration required for all supported destination types.
79-
*DestinationsApi* | [**api_create_destination**](docs/DestinationsApi.md#api_create_destination) | **POST** /v4/destinations | Creates a new destination. Only a single destination is supported per Stitch client account.
80-
*DestinationsApi* | [**api_delete_destination**](docs/DestinationsApi.md#api_delete_destination) | **DELETE** /v4/destinations/{destination_id} | Deletes an existing destination. Note: Stitch requires a destination to replicate data. Replication will be paused until a new destination is created and has a successful connection.
81-
*DestinationsApi* | [**api_get_destinations**](docs/DestinationsApi.md#api_get_destinations) | **GET** /v4/destinations | Lists the destination currently in use for a Stitch account. Only a single data warehouse is supported per Stitch client account.
82-
*DestinationsApi* | [**api_update_destination**](docs/DestinationsApi.md#api_update_destination) | **PUT** /v4/destinations/{destination_id} | Updates an existing destination. Modifications to the type attribute are not supported.
83-
*SourcesApi* | [**api_create_source**](docs/SourcesApi.md#api_create_source) | **POST** /v4/sources | Creates a source object, which is the first step in setting up a new data source. After the source object is created, additional configuration steps must be completed.
84-
*SourcesApi* | [**api_get_last_connection_check**](docs/SourcesApi.md#api_get_last_connection_check) | **GET** /v4/sources/{source_id}/last-connection-check | Retrieves the last connection check for a source by the source’s unique identifier.
85-
*SourcesApi* | [**api_get_sources**](docs/SourcesApi.md#api_get_sources) | **GET** /v4/sources | Lists the sources for an account, including active, paused, and deleted sources.
86-
*SourcesApi* | [**api_start_replication**](docs/SourcesApi.md#api_start_replication) | **POST** /v4/sources/{source_id}/sync | Manually starts a replication job for a source using the source’s unique identifier.
78+
*DestinationsApi* | [**create_destination**](docs/DestinationsApi.md#create_destination) | **POST** /v4/destinations | Creates a new destination. Only a single destination is supported per Stitch client account.
79+
*DestinationsApi* | [**delete_destination**](docs/DestinationsApi.md#delete_destination) | **DELETE** /v4/destinations/{destination_id} | Deletes an existing destination. Note: Stitch requires a destination to replicate data. Replication will be paused until a new destination is created and has a successful connection.
80+
*DestinationsApi* | [**get_destination_types**](docs/DestinationsApi.md#get_destination_types) | **GET** /v4/destination-types | Retrieves general information about the configuration required for all supported destination types.
81+
*DestinationsApi* | [**get_destinations**](docs/DestinationsApi.md#get_destinations) | **GET** /v4/destinations | Lists the destination currently in use for a Stitch account. Only a single data warehouse is supported per Stitch client account.
82+
*DestinationsApi* | [**update_destination**](docs/DestinationsApi.md#update_destination) | **PUT** /v4/destinations/{destination_id} | Updates an existing destination. Modifications to the type attribute are not supported.
83+
*SourcesApi* | [**create_source**](docs/SourcesApi.md#create_source) | **POST** /v4/sources | Creates a source object, which is the first step in setting up a new data source. After the source object is created, additional configuration steps must be completed.
84+
*SourcesApi* | [**delete_source**](docs/SourcesApi.md#delete_source) | **DELETE** /v4/sources/{source_id} | Deletes an existing data source.
85+
*SourcesApi* | [**get_last_connection_check**](docs/SourcesApi.md#get_last_connection_check) | **GET** /v4/sources/{source_id}/last-connection-check | Retrieves the last connection check for a source by the source’s unique identifier.
86+
*SourcesApi* | [**get_source**](docs/SourcesApi.md#get_source) | **GET** /v4/sources/{source_id} | Retrieves a previously created data source by its unique identifier. This endpoint can be used to retrieve an active, paused, or deleted source.
87+
*SourcesApi* | [**get_sources**](docs/SourcesApi.md#get_sources) | **GET** /v4/sources | Lists the sources for an account, including active, paused, and deleted sources.
88+
*SourcesApi* | [**start_replication**](docs/SourcesApi.md#start_replication) | **POST** /v4/sources/{source_id}/sync | Manually starts a replication job for a source using the source’s unique identifier.
89+
*SourcesApi* | [**update_source**](docs/SourcesApi.md#update_source) | **PUT** /v4/sources/{source_id} | Updates an existing data source.
90+
*StreamsApi* | [**get_stream_schema**](docs/StreamsApi.md#get_stream_schema) | **GET** /v4/sources/{source_id}/streams/{stream_id} | Retrieves the schema for a source’s stream by the source and stream’s unique identifiers.
91+
*StreamsApi* | [**get_streams**](docs/StreamsApi.md#get_streams) | **GET** /v4/sources/{source_id}/streams | Lists the available streams for a source.
92+
*StreamsApi* | [**update_stream_metadata**](docs/StreamsApi.md#update_stream_metadata) | **PUT** /v4/sources/{source_id}/streams/metadata | Updates the metadata for streams and fields. This endpoint is used to define the metadata properties returned in the Stream Schema object’s non-discoverable-metadata-keys property.
8793

8894

8995
## Documentation For Models
@@ -95,21 +101,27 @@ Class | Method | HTTP request | Description
95101
- [ConnectionStepProps](docs/ConnectionStepProps.md)
96102
- [ConnectionStepPropsAnyOf](docs/ConnectionStepPropsAnyOf.md)
97103
- [ConnectionStepPropsJsonSchema](docs/ConnectionStepPropsJsonSchema.md)
104+
- [CreateSourceBody](docs/CreateSourceBody.md)
98105
- [Destination](docs/Destination.md)
99106
- [DestinationFormProperties](docs/DestinationFormProperties.md)
100107
- [DestinationInfo](docs/DestinationInfo.md)
101108
- [DestinationReportCard](docs/DestinationReportCard.md)
102109
- [ErrorObject](docs/ErrorObject.md)
103110
- [ErrorObjectError](docs/ErrorObjectError.md)
111+
- [FieldLevelMetadata](docs/FieldLevelMetadata.md)
104112
- [HookNotification](docs/HookNotification.md)
105113
- [HookNotificationConfig](docs/HookNotificationConfig.md)
106-
- [InlineObject](docs/InlineObject.md)
114+
- [Metadata](docs/Metadata.md)
107115
- [ReplicationJob](docs/ReplicationJob.md)
108116
- [S3DestinationFormProperties](docs/S3DestinationFormProperties.md)
109117
- [SalesforceSourceFormProperties](docs/SalesforceSourceFormProperties.md)
110118
- [Source](docs/Source.md)
111119
- [SourceFormProperties](docs/SourceFormProperties.md)
112120
- [SourceReportCard](docs/SourceReportCard.md)
121+
- [Stream](docs/Stream.md)
122+
- [StreamLevelMetadata](docs/StreamLevelMetadata.md)
123+
- [StreamSchema](docs/StreamSchema.md)
124+
- [UpdateSourceBody](docs/UpdateSourceBody.md)
113125

114126

115127
## Documentation For Authorization

src/docs/ConnectionStepProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**name** | **str** | The name of the property. | [optional]
88
**is_required** | **bool** | If true, the property is required for complete configuration. | [optional]
99
**is_credential** | **bool** | If true, the property is a credential or otherwise sensitive data. | [optional]
10-
**property_type** | **str** | Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the API. Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. | [optional]
10+
**property_type** | **str** | Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. | [optional]
1111
**json_schema** | [**list[ConnectionStepPropsJsonSchema]**](ConnectionStepPropsJsonSchema.md) | Note: Data will only be returned for this array if property_type: user_provided or property_type: system_provided_by_default. If property_type: read_only, this property will be null. An array containing: type - A string indicating the expected data type of the property’s value. For example: boolean pattern - A string indicating the expected pattern of the property’s value. For example: ^\\\\d+$ anyOf - A series of arrays containing key-value pairs for the type and format combinations Stitch will accept as the property’s value | [optional]
1212
**provided** | **bool** | If true, the property has been provided. For properties where property_type: user_provided, this indicates that the user has provided the property. | [optional]
1313

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# InlineObject
1+
# CreateSourceBody
22

3+
Request body for creating a new source
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

src/docs/DestinationTypesApi.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)