Skip to content

Commit 30d843a

Browse files
committed
Remove connection check endpoints
1 parent 3dd899c commit 30d843a

28 files changed

+116
-1972
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: e3c8da4d880f93f1bf483a45d1fe2016
4+
docChecksum: a22c1e202b7ac1f3305521fb7827a79d
55
docVersion: 1.1.7
6-
speakeasyVersion: 1.535.0
7-
generationVersion: 2.585.1
8-
releaseVersion: 0.32.5
9-
configChecksum: 5d74cee3ebe277ae6317c1ab5ec5aba1
6+
speakeasyVersion: 1.534.0
7+
generationVersion: 2.585.0
8+
releaseVersion: 0.33.0
9+
configChecksum: d3a6fe7f2ae7f430c8fff9c158af4f46
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -46,10 +46,6 @@ generatedFiles:
4646
- docs/models/errors/servererror.md
4747
- docs/models/operations/canceljobrequest.md
4848
- docs/models/operations/canceljobresponse.md
49-
- docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md
50-
- docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md
51-
- docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md
52-
- docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md
5349
- docs/models/operations/createdestinationrequest.md
5450
- docs/models/operations/createdestinationresponse.md
5551
- docs/models/operations/createsourcerequest.md
@@ -64,10 +60,6 @@ generatedFiles:
6460
- docs/models/operations/deleteworkflowresponse.md
6561
- docs/models/operations/downloadjoboutputrequest.md
6662
- docs/models/operations/downloadjoboutputresponse.md
67-
- docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md
68-
- docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md
69-
- docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md
70-
- docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md
7163
- docs/models/operations/getdestinationrequest.md
7264
- docs/models/operations/getdestinationresponse.md
7365
- docs/models/operations/getjobrequest.md
@@ -106,7 +98,6 @@ generatedFiles:
10698
- docs/models/shared/config.md
10799
- docs/models/shared/confluencesourceconnectorconfig.md
108100
- docs/models/shared/confluencesourceconnectorconfiginput.md
109-
- docs/models/shared/connectioncheckstatus.md
110101
- docs/models/shared/couchbasedestinationconnectorconfig.md
111102
- docs/models/shared/couchbasedestinationconnectorconfiginput.md
112103
- docs/models/shared/couchbasesourceconnectorconfig.md
@@ -116,7 +107,6 @@ generatedFiles:
116107
- docs/models/shared/createsourceconnectorconfig.md
117108
- docs/models/shared/createworkflow.md
118109
- docs/models/shared/crontabentry.md
119-
- docs/models/shared/dagnodeconnectioncheck.md
120110
- docs/models/shared/databricksvdtdestinationconnectorconfig.md
121111
- docs/models/shared/databricksvdtdestinationconnectorconfiginput.md
122112
- docs/models/shared/databricksvolumesconnectorconfig.md
@@ -237,18 +227,14 @@ generatedFiles:
237227
- src/unstructured_client/models/errors/servererror.py
238228
- src/unstructured_client/models/operations/__init__.py
239229
- src/unstructured_client/models/operations/cancel_job.py
240-
- src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py
241-
- src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py
242230
- src/unstructured_client/models/operations/create_destination.py
243231
- src/unstructured_client/models/operations/create_source.py
244232
- src/unstructured_client/models/operations/create_workflow.py
245233
- src/unstructured_client/models/operations/delete_destination.py
246234
- src/unstructured_client/models/operations/delete_source.py
247235
- src/unstructured_client/models/operations/delete_workflow.py
248236
- src/unstructured_client/models/operations/download_job_output.py
249-
- src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py
250237
- src/unstructured_client/models/operations/get_destination.py
251-
- src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py
252238
- src/unstructured_client/models/operations/get_job.py
253239
- src/unstructured_client/models/operations/get_source.py
254240
- src/unstructured_client/models/operations/get_workflow.py
@@ -273,7 +259,6 @@ generatedFiles:
273259
- src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py
274260
- src/unstructured_client/models/shared/confluencesourceconnectorconfig.py
275261
- src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py
276-
- src/unstructured_client/models/shared/connectioncheckstatus.py
277262
- src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py
278263
- src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py
279264
- src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py
@@ -282,7 +267,6 @@ generatedFiles:
282267
- src/unstructured_client/models/shared/createsourceconnector.py
283268
- src/unstructured_client/models/shared/createworkflow.py
284269
- src/unstructured_client/models/shared/crontabentry.py
285-
- src/unstructured_client/models/shared/dagnodeconnectioncheck.py
286270
- src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py
287271
- src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py
288272
- src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py

README.md

Lines changed: 76 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,41 +110,63 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
110110
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
111111
```python
112112
from unstructured_client import UnstructuredClient
113+
from unstructured_client.models import shared
113114
from unstructured_client.utils import BackoffStrategy, RetryConfig
114115

115116

116117
with UnstructuredClient() as uc_client:
117118

118-
res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={
119-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
119+
res = uc_client.destinations.create_destination(request={
120+
"create_destination_connector": {
121+
"config": {
122+
"api_endpoint": "<value>",
123+
"batch_size": 20,
124+
"collection_name": "<value>",
125+
"flatten_metadata": False,
126+
"token": "<value>",
127+
},
128+
"name": "<value>",
129+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
130+
},
120131
},
121132
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
122133

123-
assert res.dag_node_connection_check is not None
134+
assert res.destination_connector_information is not None
124135

125136
# Handle response
126-
print(res.dag_node_connection_check)
137+
print(res.destination_connector_information)
127138

128139
```
129140

130141
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
131142
```python
132143
from unstructured_client import UnstructuredClient
144+
from unstructured_client.models import shared
133145
from unstructured_client.utils import BackoffStrategy, RetryConfig
134146

135147

136148
with UnstructuredClient(
137149
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
138150
) as uc_client:
139151

140-
res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={
141-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
152+
res = uc_client.destinations.create_destination(request={
153+
"create_destination_connector": {
154+
"config": {
155+
"api_endpoint": "<value>",
156+
"batch_size": 20,
157+
"collection_name": "<value>",
158+
"flatten_metadata": False,
159+
"token": "<value>",
160+
},
161+
"name": "<value>",
162+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
163+
},
142164
})
143165

144-
assert res.dag_node_connection_check is not None
166+
assert res.destination_connector_information is not None
145167

146168
# Handle response
147-
print(res.dag_node_connection_check)
169+
print(res.destination_connector_information)
148170

149171
```
150172
<!-- End Retries [retries] -->
@@ -164,7 +186,7 @@ By default, an API error will raise a errors.SDKError exception, which has the f
164186
| `.raw_response` | *httpx.Response* | The raw HTTP response |
165187
| `.body` | *str* | The response content |
166188

167-
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async` method may raise the following exceptions:
189+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_destination_async` method may raise the following exceptions:
168190

169191
| Error Type | Status Code | Content Type |
170192
| -------------------------- | ----------- | ---------------- |
@@ -175,21 +197,31 @@ When custom error responses are specified for an operation, the SDK may also rai
175197

176198
```python
177199
from unstructured_client import UnstructuredClient
178-
from unstructured_client.models import errors
200+
from unstructured_client.models import errors, shared
179201

180202

181203
with UnstructuredClient() as uc_client:
182204
res = None
183205
try:
184206

185-
res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={
186-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
207+
res = uc_client.destinations.create_destination(request={
208+
"create_destination_connector": {
209+
"config": {
210+
"api_endpoint": "<value>",
211+
"batch_size": 20,
212+
"collection_name": "<value>",
213+
"flatten_metadata": False,
214+
"token": "<value>",
215+
},
216+
"name": "<value>",
217+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
218+
},
187219
})
188220

189-
assert res.dag_node_connection_check is not None
221+
assert res.destination_connector_information is not None
190222

191223
# Handle response
192-
print(res.dag_node_connection_check)
224+
print(res.destination_connector_information)
193225

194226
except errors.HTTPValidationError as e:
195227
# handle e.data: errors.HTTPValidationErrorData
@@ -300,18 +332,29 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
300332
```python
301333
# Synchronous Example
302334
from unstructured_client import UnstructuredClient
335+
from unstructured_client.models import shared
303336

304337

305338
with UnstructuredClient() as uc_client:
306339

307-
res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={
308-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
340+
res = uc_client.destinations.create_destination(request={
341+
"create_destination_connector": {
342+
"config": {
343+
"api_endpoint": "<value>",
344+
"batch_size": 20,
345+
"collection_name": "<value>",
346+
"flatten_metadata": False,
347+
"token": "<value>",
348+
},
349+
"name": "<value>",
350+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
351+
},
309352
})
310353

311-
assert res.dag_node_connection_check is not None
354+
assert res.destination_connector_information is not None
312355

313356
# Handle response
314-
print(res.dag_node_connection_check)
357+
print(res.destination_connector_information)
315358
```
316359

317360
</br>
@@ -321,19 +364,30 @@ The same SDK client can also be used to make asychronous requests by importing a
321364
# Asynchronous Example
322365
import asyncio
323366
from unstructured_client import UnstructuredClient
367+
from unstructured_client.models import shared
324368

325369
async def main():
326370

327371
async with UnstructuredClient() as uc_client:
328372

329-
res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={
330-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
373+
res = await uc_client.destinations.create_destination_async(request={
374+
"create_destination_connector": {
375+
"config": {
376+
"api_endpoint": "<value>",
377+
"batch_size": 20,
378+
"collection_name": "<value>",
379+
"flatten_metadata": False,
380+
"token": "<value>",
381+
},
382+
"name": "<value>",
383+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
384+
},
331385
})
332386

333-
assert res.dag_node_connection_check is not None
387+
assert res.destination_connector_information is not None
334388

335389
# Handle response
336-
print(res.dag_node_connection_check)
390+
print(res.destination_connector_information)
337391

338392
asyncio.run(main())
339393
```

USAGE.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,29 @@
22
```python
33
# Synchronous Example
44
from unstructured_client import UnstructuredClient
5+
from unstructured_client.models import shared
56

67

78
with UnstructuredClient() as uc_client:
89

9-
res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={
10-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
10+
res = uc_client.destinations.create_destination(request={
11+
"create_destination_connector": {
12+
"config": {
13+
"api_endpoint": "<value>",
14+
"batch_size": 20,
15+
"collection_name": "<value>",
16+
"flatten_metadata": False,
17+
"token": "<value>",
18+
},
19+
"name": "<value>",
20+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
21+
},
1122
})
1223

13-
assert res.dag_node_connection_check is not None
24+
assert res.destination_connector_information is not None
1425

1526
# Handle response
16-
print(res.dag_node_connection_check)
27+
print(res.destination_connector_information)
1728
```
1829

1930
</br>
@@ -23,19 +34,30 @@ The same SDK client can also be used to make asychronous requests by importing a
2334
# Asynchronous Example
2435
import asyncio
2536
from unstructured_client import UnstructuredClient
37+
from unstructured_client.models import shared
2638

2739
async def main():
2840

2941
async with UnstructuredClient() as uc_client:
3042

31-
res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={
32-
"destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962",
43+
res = await uc_client.destinations.create_destination_async(request={
44+
"create_destination_connector": {
45+
"config": {
46+
"api_endpoint": "<value>",
47+
"batch_size": 20,
48+
"collection_name": "<value>",
49+
"flatten_metadata": False,
50+
"token": "<value>",
51+
},
52+
"name": "<value>",
53+
"type": shared.DestinationConnectorType.AZURE_AI_SEARCH,
54+
},
3355
})
3456

35-
assert res.dag_node_connection_check is not None
57+
assert res.destination_connector_information is not None
3658

3759
# Handle response
38-
print(res.dag_node_connection_check)
60+
print(res.destination_connector_information)
3961

4062
asyncio.run(main())
4163
```

docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md

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

docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md

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

docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md

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

0 commit comments

Comments
 (0)