Skip to content

Commit 7b38f5f

Browse files
author
cloudpdf-sdk-bot
committed
chore: generate CloudPDF Python SDK 3.0.0a2
1 parent bc245ef commit 7b38f5f

86 files changed

Lines changed: 4767 additions & 151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"client_class_name": "CloudPDFClient",
88
"environment_class_name": "CloudPDFEnvironment"
99
},
10-
"originGitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
10+
"originGitCommit": "627dce09ca948cde662d6e23a3dc1a049b6440d7",
1111
"originGitCommitIsDirty": false,
1212
"invokedBy": "ci",
13-
"requestedVersion": "3.0.0a1",
13+
"requestedVersion": "3.0.0a2",
1414
"ciProvider": "github"
1515
}

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ client = CloudPDFClient(
4141
base_url="https://yourhost.com/path/to/api",
4242
)
4343

44-
client.tenants.create(
45-
id="id",
44+
client.shares.exchange(
45+
share_token="shareToken",
4646
)
4747
```
4848

@@ -62,8 +62,8 @@ client = AsyncCloudPDFClient(
6262

6363

6464
async def main() -> None:
65-
await client.tenants.create(
66-
id="id",
65+
await client.shares.exchange(
66+
share_token="shareToken",
6767
)
6868

6969

@@ -79,7 +79,7 @@ will be thrown.
7979
from cloudpdf.core.api_error import ApiError
8080

8181
try:
82-
client.tenants.create(...)
82+
client.shares.exchange(...)
8383
except ApiError as e:
8484
print(e.status_code)
8585
print(e.body)
@@ -96,7 +96,7 @@ The `.with_raw_response` property returns a "raw" client that can be used to acc
9696
from cloudpdf import CloudPDFClient
9797

9898
client = CloudPDFClient(...)
99-
response = client.tenants.with_raw_response.create(...)
99+
response = client.shares.with_raw_response.exchange(...)
100100
print(response.headers) # access the response headers
101101
print(response.status_code) # access the response status code
102102
print(response.data) # access the underlying object
@@ -127,7 +127,7 @@ Which status codes are retried depends on the `retryStatusCodes` generator confi
127127
Use the `max_retries` request option to configure this behavior.
128128

129129
```python
130-
client.tenants.create(..., request_options={
130+
client.shares.exchange(..., request_options={
131131
"max_retries": 1
132132
})
133133
```
@@ -142,7 +142,7 @@ from cloudpdf import CloudPDFClient
142142
client = CloudPDFClient(..., timeout=20.0)
143143

144144
# Override timeout for a specific method
145-
client.tenants.create(..., request_options={
145+
client.shares.exchange(..., request_options={
146146
"timeout": 1
147147
})
148148
```

cloudpdf-generation.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"language": "python",
3-
"canonicalVersion": "3.0.0-next.1",
4-
"sdkVersion": "3.0.0a1",
3+
"canonicalVersion": "3.0.0-next.2",
4+
"sdkVersion": "3.0.0a2",
55
"source": {
66
"repository": "embedpdf/embed-pdf-viewer",
77
"openapi": "cloudpdf/contract/openapi.json",
8-
"openapiSha256": "6858ce7912e9063d8fb171ade95fc473db01c5971a3af241a612dda79cc05100",
9-
"gitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
8+
"openapiSha256": "afef16ae2ee6de353cf141d766e4815df5cee075c906b34c728c1176bc10ddb1",
9+
"gitCommit": "627dce09ca948cde662d6e23a3dc1a049b6440d7",
1010
"gitCommitIsDirty": false
1111
},
1212
"fern": {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "cloudpdf"
7-
version = "3.0.0a1"
7+
version = "3.0.0a2"
88
description = "The official Python SDK for the CloudPDF API."
99
readme = "README.md"
1010
authors = ["CloudPDF <hello@cloudpdf.com>"]

0 commit comments

Comments
 (0)