Skip to content

Commit ea4e5e7

Browse files
committed
Regenerate with default server settings in spec
1 parent 79c39f3 commit ea4e5e7

File tree

20 files changed

+95
-184
lines changed

20 files changed

+95
-184
lines changed

.speakeasy/gen.lock

Lines changed: 9 additions & 8 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: 05b52a7105c586797340defcb58dc573
4+
docChecksum: de9f013dc09f5ad50eaa7dd5716106ca
55
docVersion: 1.0.78
6-
speakeasyVersion: 1.508.1
7-
generationVersion: 2.536.0
8-
releaseVersion: 0.31.0
9-
configChecksum: faf5191e78f1597b78cd7600af4f1d96
6+
speakeasyVersion: 1.490.0
7+
generationVersion: 2.512.0
8+
releaseVersion: 0.30.7
9+
configChecksum: 46f8726e2bf10ce486127f02ec9801dd
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,22 +16,23 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.12.1
19+
core: 5.11.0
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
2323
examples: 3.0.1
2424
globalSecurity: 3.0.3
2525
globalSecurityCallbacks: 1.0.0
2626
globalSecurityFlattening: 1.0.0
27+
globalServerURLs: 3.1.0
2728
methodServerURLs: 3.1.1
2829
multipartFileContentType: 1.0.0
2930
nameOverrides: 3.0.1
30-
nullables: 1.0.1
31+
nullables: 1.0.0
3132
openEnums: 1.0.0
3233
responseFormat: 1.0.1
3334
retries: 3.0.2
34-
sdkHooks: 1.0.1
35+
sdkHooks: 1.0.0
3536
serverIDs: 3.0.0
3637
unions: 3.0.4
3738
uploadStreams: 1.0.0

.speakeasy/workflow.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ speakeasyVersion: 1.508.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:807be0a9dea419a66c54f7b073b96fef228c9991996eb7faab57915d96d14298
5+
sourceRevisionDigest: sha256:7c3885b2b10e35c3ce714ade8cf040b7af2d30c631aa9469af14c647e4eebd4c
66
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1740701396
109
- 1.0.78
1110
targets:
1211
unstructured-python:
1312
source: my-source
1413
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:807be0a9dea419a66c54f7b073b96fef228c9991996eb7faab57915d96d14298
14+
sourceRevisionDigest: sha256:7c3885b2b10e35c3ce714ade8cf040b7af2d30c631aa9469af14c647e4eebd4c
1615
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
1716
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:b3ab6f3bec3f43fd73f807f9d389aab450876e5d631ad4b424907a3a3cfd8bde
17+
codeSamplesRevisionDigest: sha256:5f12b0195d8ed16e87269dc286ef0b48ba59a6c95b2ad935f85ec95e417394ae
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README.md

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ from unstructured_client import UnstructuredClient
113113
from unstructured_client.models import shared
114114
from unstructured_client.utils import BackoffStrategy, RetryConfig
115115

116-
117-
with UnstructuredClient(
118-
server_url="https://api.example.com",
119-
) as uc_client:
116+
with UnstructuredClient() as uc_client:
120117

121118
res = uc_client.destinations.create_destination(request={
122119
"create_destination_connector": {
@@ -144,9 +141,7 @@ from unstructured_client import UnstructuredClient
144141
from unstructured_client.models import shared
145142
from unstructured_client.utils import BackoffStrategy, RetryConfig
146143

147-
148144
with UnstructuredClient(
149-
server_url="https://api.example.com",
150145
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
151146
) as uc_client:
152147

@@ -198,10 +193,7 @@ When custom error responses are specified for an operation, the SDK may also rai
198193
from unstructured_client import UnstructuredClient
199194
from unstructured_client.models import errors, shared
200195

201-
202-
with UnstructuredClient(
203-
server_url="https://api.example.com",
204-
) as uc_client:
196+
with UnstructuredClient() as uc_client:
205197
res = None
206198
try:
207199

@@ -333,10 +325,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
333325
from unstructured_client import UnstructuredClient
334326
from unstructured_client.models import shared
335327

336-
337-
with UnstructuredClient(
338-
server_url="https://api.example.com",
339-
) as uc_client:
328+
with UnstructuredClient() as uc_client:
340329

341330
res = uc_client.destinations.create_destination(request={
342331
"create_destination_connector": {
@@ -366,10 +355,7 @@ from unstructured_client import UnstructuredClient
366355
from unstructured_client.models import shared
367356

368357
async def main():
369-
370-
async with UnstructuredClient(
371-
server_url="https://api.example.com",
372-
) as uc_client:
358+
async with UnstructuredClient() as uc_client:
373359

374360
res = await uc_client.destinations.create_destination_async(request={
375361
"create_destination_connector": {
@@ -465,10 +451,7 @@ Certain SDK methods accept file objects as part of a request body or multi-part
465451
from unstructured_client import UnstructuredClient
466452
from unstructured_client.models import shared
467453

468-
469-
with UnstructuredClient(
470-
server_url="https://api.example.com",
471-
) as uc_client:
454+
with UnstructuredClient() as uc_client:
472455

473456
res = uc_client.general.partition(request={
474457
"partition_parameters": {
@@ -503,19 +486,13 @@ The `UnstructuredClient` class implements the context manager protocol and regis
503486
```python
504487
from unstructured_client import UnstructuredClient
505488
def main():
506-
507-
with UnstructuredClient(
508-
server_url="https://api.example.com",
509-
) as uc_client:
489+
with UnstructuredClient() as uc_client:
510490
# Rest of application here...
511491

512492

513493
# Or when using async:
514494
async def amain():
515-
516-
async with UnstructuredClient(
517-
server_url="https://api.example.com",
518-
) as uc_client:
495+
async with UnstructuredClient() as uc_client:
519496
# Rest of application here...
520497
```
521498
<!-- End Resource Management [resource-management] -->
@@ -531,7 +508,7 @@ from unstructured_client import UnstructuredClient
531508
import logging
532509

533510
logging.basicConfig(level=logging.DEBUG)
534-
s = UnstructuredClient(server_url="https://example.com", debug_logger=logging.getLogger("unstructured_client"))
511+
s = UnstructuredClient(debug_logger=logging.getLogger("unstructured_client"))
535512
```
536513
<!-- End Debugging [debug] -->
537514

RELEASES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,6 @@ Based on:
843843
- OpenAPI Doc
844844
- Speakeasy CLI 1.508.1 (2.536.0) https://github.com/speakeasy-api/speakeasy
845845
### Generated
846-
- [python v0.31.0] .
846+
- [python v0.30.7] .
847847
### Releases
848-
- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - .
848+
- [PyPI v0.30.7] https://pypi.org/project/unstructured-client/0.30.7 - .

USAGE.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
from unstructured_client import UnstructuredClient
55
from unstructured_client.models import shared
66

7-
8-
with UnstructuredClient(
9-
server_url="https://api.example.com",
10-
) as uc_client:
7+
with UnstructuredClient() as uc_client:
118

129
res = uc_client.destinations.create_destination(request={
1310
"create_destination_connector": {
@@ -37,10 +34,7 @@ from unstructured_client import UnstructuredClient
3734
from unstructured_client.models import shared
3835

3936
async def main():
40-
41-
async with UnstructuredClient(
42-
server_url="https://api.example.com",
43-
) as uc_client:
37+
async with UnstructuredClient() as uc_client:
4438

4539
res = await uc_client.destinations.create_destination_async(request={
4640
"create_destination_connector": {

docs/sdks/destinations/README.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ Create a new destination connector using the provided configuration and name.
2121
from unstructured_client import UnstructuredClient
2222
from unstructured_client.models import shared
2323

24-
25-
with UnstructuredClient(
26-
server_url="https://api.example.com",
27-
) as uc_client:
24+
with UnstructuredClient() as uc_client:
2825

2926
res = uc_client.destinations.create_destination(request={
3027
"create_destination_connector": {
@@ -73,10 +70,7 @@ Delete a specific destination connector by its ID.
7370
```python
7471
from unstructured_client import UnstructuredClient
7572

76-
77-
with UnstructuredClient(
78-
server_url="https://api.example.com",
79-
) as uc_client:
73+
with UnstructuredClient() as uc_client:
8074

8175
res = uc_client.destinations.delete_destination(request={
8276
"destination_id": "10a88d76-65fb-4c88-8488-9e7d272c6373",
@@ -117,10 +111,7 @@ Retrieve detailed information for a specific destination connector by its ID.
117111
```python
118112
from unstructured_client import UnstructuredClient
119113

120-
121-
with UnstructuredClient(
122-
server_url="https://api.example.com",
123-
) as uc_client:
114+
with UnstructuredClient() as uc_client:
124115

125116
res = uc_client.destinations.get_destination(request={
126117
"destination_id": "41ba03fb-faa3-4e9e-8cfb-27f133c4198a",
@@ -161,10 +152,7 @@ Retrieve a list of available destination connectors.
161152
```python
162153
from unstructured_client import UnstructuredClient
163154

164-
165-
with UnstructuredClient(
166-
server_url="https://api.example.com",
167-
) as uc_client:
155+
with UnstructuredClient() as uc_client:
168156

169157
res = uc_client.destinations.list_destinations(request={})
170158

@@ -203,10 +191,7 @@ Update the configuration of an existing destination connector.
203191
```python
204192
from unstructured_client import UnstructuredClient
205193

206-
207-
with UnstructuredClient(
208-
server_url="https://api.example.com",
209-
) as uc_client:
194+
with UnstructuredClient() as uc_client:
210195

211196
res = uc_client.destinations.update_destination(request={
212197
"update_destination_connector": {

docs/sdks/general/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ Description
1717
from unstructured_client import UnstructuredClient
1818
from unstructured_client.models import shared
1919

20-
21-
with UnstructuredClient(
22-
server_url="https://api.example.com",
23-
) as uc_client:
20+
with UnstructuredClient() as uc_client:
2421

2522
res = uc_client.general.partition(request={
2623
"partition_parameters": {

docs/sdks/jobs/README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ Cancel the specified job.
1818
```python
1919
from unstructured_client import UnstructuredClient
2020

21-
22-
with UnstructuredClient(
23-
server_url="https://api.example.com",
24-
) as uc_client:
21+
with UnstructuredClient() as uc_client:
2522

2623
res = uc_client.jobs.cancel_job(request={
2724
"job_id": "ec29bf67-0f30-4793-b5ee-8fc0da196032",
@@ -62,10 +59,7 @@ Retrieve detailed information for a specific job by its ID.
6259
```python
6360
from unstructured_client import UnstructuredClient
6461

65-
66-
with UnstructuredClient(
67-
server_url="https://api.example.com",
68-
) as uc_client:
62+
with UnstructuredClient() as uc_client:
6963

7064
res = uc_client.jobs.get_job(request={
7165
"job_id": "6bb4cb72-a072-4398-9de3-194e59352a3c",
@@ -106,10 +100,7 @@ Retrieve a list of jobs with optional filtering by workflow ID or job status.
106100
```python
107101
from unstructured_client import UnstructuredClient
108102

109-
110-
with UnstructuredClient(
111-
server_url="https://api.example.com",
112-
) as uc_client:
103+
with UnstructuredClient() as uc_client:
113104

114105
res = uc_client.jobs.list_jobs(request={})
115106

docs/sdks/sources/README.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ Create a new source connector using the provided configuration and name.
2121
from unstructured_client import UnstructuredClient
2222
from unstructured_client.models import shared
2323

24-
25-
with UnstructuredClient(
26-
server_url="https://api.example.com",
27-
) as uc_client:
24+
with UnstructuredClient() as uc_client:
2825

2926
res = uc_client.sources.create_source(request={
3027
"create_source_connector": {
@@ -78,10 +75,7 @@ Delete a specific source connector identified by its ID.
7875
```python
7976
from unstructured_client import UnstructuredClient
8077

81-
82-
with UnstructuredClient(
83-
server_url="https://api.example.com",
84-
) as uc_client:
78+
with UnstructuredClient() as uc_client:
8579

8680
res = uc_client.sources.delete_source(request={
8781
"source_id": "8a24d7ae-5524-45e9-83f9-b0adba5303d4",
@@ -122,10 +116,7 @@ Retrieve detailed information for a specific source connector by its ID.
122116
```python
123117
from unstructured_client import UnstructuredClient
124118

125-
126-
with UnstructuredClient(
127-
server_url="https://api.example.com",
128-
) as uc_client:
119+
with UnstructuredClient() as uc_client:
129120

130121
res = uc_client.sources.get_source(request={
131122
"source_id": "e02d8147-b614-4e4c-9c6d-0cd9c4492ea0",
@@ -166,10 +157,7 @@ Retrieve a list of available source connectors.
166157
```python
167158
from unstructured_client import UnstructuredClient
168159

169-
170-
with UnstructuredClient(
171-
server_url="https://api.example.com",
172-
) as uc_client:
160+
with UnstructuredClient() as uc_client:
173161

174162
res = uc_client.sources.list_sources(request={})
175163

@@ -208,10 +196,7 @@ Update the configuration of an existing source connector.
208196
```python
209197
from unstructured_client import UnstructuredClient
210198

211-
212-
with UnstructuredClient(
213-
server_url="https://api.example.com",
214-
) as uc_client:
199+
with UnstructuredClient() as uc_client:
215200

216201
res = uc_client.sources.update_source(request={
217202
"update_source_connector": {

0 commit comments

Comments
 (0)