Skip to content

Commit 831cee6

Browse files
committed
bearer auth for all endpoints
1 parent 2da4e54 commit 831cee6

File tree

6 files changed

+45
-15
lines changed

6 files changed

+45
-15
lines changed

client/docs/DestinationsApi.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,21 @@ Updates an existing destination. Modifications to the type attribute are not sup
242242

243243
### Example
244244

245+
* Bearer Authentication (bearerAuth):
245246
```python
246247
from __future__ import print_function
247248
import time
248249
import stitch_connect_client
249250
from stitch_connect_client.rest import ApiException
250251
from pprint import pprint
252+
configuration = stitch_connect_client.Configuration()
253+
# Configure Bearer authorization: bearerAuth
254+
configuration.access_token = 'YOUR_BEARER_TOKEN'
251255

256+
# Defining host is optional and default to https://api.stitchdata.com
257+
configuration.host = "https://api.stitchdata.com"
252258
# Create an instance of the API class
253-
api_instance = stitch_connect_client.DestinationsApi()
259+
api_instance = stitch_connect_client.DestinationsApi(stitch_connect_client.ApiClient(configuration))
254260
destination_id = 'destination_id_example' # str | The ID of the destination
255261
destination_form_properties = stitch_connect_client.DestinationFormProperties() # DestinationFormProperties | Object containing properties info
256262

@@ -274,7 +280,7 @@ void (empty response body)
274280

275281
### Authorization
276282

277-
No authorization required
283+
[bearerAuth](../README.md#bearerAuth)
278284

279285
### HTTP request headers
280286

client/docs/SourcesApi.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,21 @@ Deletes an existing data source.
7979

8080
### Example
8181

82+
* Bearer Authentication (bearerAuth):
8283
```python
8384
from __future__ import print_function
8485
import time
8586
import stitch_connect_client
8687
from stitch_connect_client.rest import ApiException
8788
from pprint import pprint
89+
configuration = stitch_connect_client.Configuration()
90+
# Configure Bearer authorization: bearerAuth
91+
configuration.access_token = 'YOUR_BEARER_TOKEN'
8892

93+
# Defining host is optional and default to https://api.stitchdata.com
94+
configuration.host = "https://api.stitchdata.com"
8995
# Create an instance of the API class
90-
api_instance = stitch_connect_client.SourcesApi()
96+
api_instance = stitch_connect_client.SourcesApi(stitch_connect_client.ApiClient(configuration))
9197
source_id = 'source_id_example' # str | The ID of the source
9298

9399
try:
@@ -109,7 +115,7 @@ void (empty response body)
109115

110116
### Authorization
111117

112-
No authorization required
118+
[bearerAuth](../README.md#bearerAuth)
113119

114120
### HTTP request headers
115121

@@ -358,15 +364,21 @@ Updates an existing data source.
358364

359365
### Example
360366

367+
* Bearer Authentication (bearerAuth):
361368
```python
362369
from __future__ import print_function
363370
import time
364371
import stitch_connect_client
365372
from stitch_connect_client.rest import ApiException
366373
from pprint import pprint
374+
configuration = stitch_connect_client.Configuration()
375+
# Configure Bearer authorization: bearerAuth
376+
configuration.access_token = 'YOUR_BEARER_TOKEN'
367377

378+
# Defining host is optional and default to https://api.stitchdata.com
379+
configuration.host = "https://api.stitchdata.com"
368380
# Create an instance of the API class
369-
api_instance = stitch_connect_client.SourcesApi()
381+
api_instance = stitch_connect_client.SourcesApi(stitch_connect_client.ApiClient(configuration))
370382
source_id = 'source_id_example' # str | The ID of the source
371383
update_source_body = stitch_connect_client.UpdateSourceBody() # UpdateSourceBody | Request body for updating a source
372384

@@ -390,7 +402,7 @@ void (empty response body)
390402

391403
### Authorization
392404

393-
No authorization required
405+
[bearerAuth](../README.md#bearerAuth)
394406

395407
### HTTP request headers
396408

client/docs/StreamsApi.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,21 @@ Retrieves the schema for a source’s stream by the source and stream’s unique
1616

1717
### Example
1818

19+
* Bearer Authentication (bearerAuth):
1920
```python
2021
from __future__ import print_function
2122
import time
2223
import stitch_connect_client
2324
from stitch_connect_client.rest import ApiException
2425
from pprint import pprint
26+
configuration = stitch_connect_client.Configuration()
27+
# Configure Bearer authorization: bearerAuth
28+
configuration.access_token = 'YOUR_BEARER_TOKEN'
2529

30+
# Defining host is optional and default to https://api.stitchdata.com
31+
configuration.host = "https://api.stitchdata.com"
2632
# Create an instance of the API class
27-
api_instance = stitch_connect_client.StreamsApi()
33+
api_instance = stitch_connect_client.StreamsApi(stitch_connect_client.ApiClient(configuration))
2834
source_id = 'source_id_example' # str | The ID of the source
2935
stream_id = 'stream_id_example' # str | The ID of the source
3036

@@ -48,7 +54,7 @@ void (empty response body)
4854

4955
### Authorization
5056

51-
No authorization required
57+
[bearerAuth](../README.md#bearerAuth)
5258

5359
### HTTP request headers
5460

@@ -70,15 +76,21 @@ Lists the available streams for a source.
7076

7177
### Example
7278

79+
* Bearer Authentication (bearerAuth):
7380
```python
7481
from __future__ import print_function
7582
import time
7683
import stitch_connect_client
7784
from stitch_connect_client.rest import ApiException
7885
from pprint import pprint
86+
configuration = stitch_connect_client.Configuration()
87+
# Configure Bearer authorization: bearerAuth
88+
configuration.access_token = 'YOUR_BEARER_TOKEN'
7989

90+
# Defining host is optional and default to https://api.stitchdata.com
91+
configuration.host = "https://api.stitchdata.com"
8092
# Create an instance of the API class
81-
api_instance = stitch_connect_client.StreamsApi()
93+
api_instance = stitch_connect_client.StreamsApi(stitch_connect_client.ApiClient(configuration))
8294
source_id = 'source_id_example' # str | The ID of the source
8395

8496
try:
@@ -101,7 +113,7 @@ Name | Type | Description | Notes
101113

102114
### Authorization
103115

104-
No authorization required
116+
[bearerAuth](../README.md#bearerAuth)
105117

106118
### HTTP request headers
107119

client/stitch_connect_client/api/destinations_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def update_destination_with_http_info(self, destination_id, destination_form_pro
536536
['application/json']) # noqa: E501
537537

538538
# Authentication setting
539-
auth_settings = [] # noqa: E501
539+
auth_settings = ['bearerAuth'] # noqa: E501
540540

541541
return self.api_client.call_api(
542542
'/v4/destinations/{destination_id}', 'PUT',

client/stitch_connect_client/api/sources_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def delete_source_with_http_info(self, source_id, **kwargs): # noqa: E501
230230

231231
body_params = None
232232
# Authentication setting
233-
auth_settings = [] # noqa: E501
233+
auth_settings = ['bearerAuth'] # noqa: E501
234234

235235
return self.api_client.call_api(
236236
'/v4/sources/{source_id}', 'DELETE',
@@ -756,7 +756,7 @@ def update_source_with_http_info(self, source_id, update_source_body, **kwargs):
756756
['application/json']) # noqa: E501
757757

758758
# Authentication setting
759-
auth_settings = [] # noqa: E501
759+
auth_settings = ['bearerAuth'] # noqa: E501
760760

761761
return self.api_client.call_api(
762762
'/v4/sources/{source_id}', 'PUT',

client/stitch_connect_client/api/streams_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def get_stream_schema_with_http_info(self, source_id, stream_id, **kwargs): # n
128128

129129
body_params = None
130130
# Authentication setting
131-
auth_settings = [] # noqa: E501
131+
auth_settings = ['bearerAuth'] # noqa: E501
132132

133133
return self.api_client.call_api(
134134
'/v4/sources/{source_id}/streams/{stream_id}', 'GET',
@@ -234,7 +234,7 @@ def get_streams_with_http_info(self, source_id, **kwargs): # noqa: E501
234234
['application/json']) # noqa: E501
235235

236236
# Authentication setting
237-
auth_settings = [] # noqa: E501
237+
auth_settings = ['bearerAuth'] # noqa: E501
238238

239239
return self.api_client.call_api(
240240
'/v4/sources/{source_id}/streams', 'GET',

0 commit comments

Comments
 (0)