Skip to content

Commit cc5541a

Browse files
author
cloudpdf-sdk-bot
committed
chore: generate CloudPDF Java SDK 3.0.0-alpha.4
1 parent 540a96f commit cc5541a

131 files changed

Lines changed: 14491 additions & 198 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
@@ -10,9 +10,9 @@
1010
"base-exception-class-name": "CloudPDFException",
1111
"base-api-exception-class-name": "CloudPDFApiException"
1212
},
13-
"originGitCommit": "cfc415f2b7501e153280b32bcd6aa4af1353e860",
13+
"originGitCommit": "33003769980b6b0155f602109c8e34cc0a2b432d",
1414
"originGitCommitIsDirty": false,
1515
"invokedBy": "ci",
16-
"requestedVersion": "3.0.0-alpha.1",
16+
"requestedVersion": "3.0.0-alpha.4",
1717
"ciProvider": "github"
1818
}

‎README.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Instantiate and use the client with the following:
3030
package com.example.usage;
3131

3232
import com.cloudpdf.CloudPDFClient;
33-
import com.cloudpdf.resources.tenants.requests.TenantsCreateRequest;
33+
import com.cloudpdf.resources.shares.requests.SharesExchangeRequest;
3434

3535
public class Example {
3636
public static void main(String[] args) {
@@ -39,10 +39,10 @@ public class Example {
3939
.token("<token>")
4040
.build();
4141

42-
client.tenants().create(
43-
TenantsCreateRequest
42+
client.shares().exchange(
43+
SharesExchangeRequest
4444
.builder()
45-
.id("id")
45+
.shareToken("shareToken")
4646
.build()
4747
);
4848
}
@@ -70,7 +70,7 @@ When the API returns a non-success status code (4xx or 5xx response), an API exc
7070
import com.cloudpdf.core.CloudPDFApiException;
7171

7272
try{
73-
client.tenants().create(...);
73+
client.shares().exchange(...);
7474
} catch (CloudPDFApiException e){
7575
// Do something with the API exception...
7676
}
@@ -142,7 +142,7 @@ CloudPDFClient client = CloudPDFClient
142142
.build();
143143

144144
// Request level
145-
client.tenants().create(
145+
client.shares().exchange(
146146
...,
147147
RequestOptions
148148
.builder()
@@ -168,7 +168,7 @@ CloudPDFClient client = CloudPDFClient
168168
;
169169

170170
// Request level
171-
client.tenants().create(
171+
client.shares().exchange(
172172
...,
173173
RequestOptions
174174
.builder()
@@ -184,7 +184,7 @@ The `withRawResponse()` method returns a raw client that wraps all responses wit
184184
(A normal client's `response` is identical to a raw client's `response.body()`.)
185185

186186
```java
187-
CloudPDFClientHttpResponse response = client.tenants().withRawResponse().create(...);
187+
CloudPDFClientHttpResponse response = client.shares().withRawResponse().exchange(...);
188188

189189
System.out.println(response.body());
190190
System.out.println(response.headers().get("X-My-Header"));

‎build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ java {
4646

4747
group = 'com.cloudpdf'
4848

49-
version = '3.0.0-alpha.1'
49+
version = '3.0.0-alpha.4'
5050

5151
jar {
5252
dependsOn(":generatePomFileForMavenPublication")
@@ -73,7 +73,7 @@ publishing {
7373
maven(MavenPublication) {
7474
groupId = 'com.cloudpdf'
7575
artifactId = 'sdk'
76-
version = '3.0.0-alpha.1'
76+
version = '3.0.0-alpha.4'
7777
from components.java
7878
pom {
7979
name = 'CloudPDF'

‎cloudpdf-generation.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"language": "java",
3-
"canonicalVersion": "3.0.0-next.1",
4-
"sdkVersion": "3.0.0-alpha.1",
3+
"canonicalVersion": "3.0.0-next.4",
4+
"sdkVersion": "3.0.0-alpha.4",
55
"source": {
66
"repository": "embedpdf/embed-pdf-viewer",
77
"openapi": "cloudpdf/contract/openapi.json",
8-
"openapiSha256": "6858ce7912e9063d8fb171ade95fc473db01c5971a3af241a612dda79cc05100",
9-
"gitCommit": "cfc415f2b7501e153280b32bcd6aa4af1353e860",
8+
"openapiSha256": "901c23684e7c9e33b5248942779b13537764a1d9065db815dd8aedb592c5ec59",
9+
"gitCommit": "33003769980b6b0155f602109c8e34cc0a2b432d",
1010
"gitCommitIsDirty": false
1111
},
1212
"fern": {

0 commit comments

Comments
 (0)