Skip to content

Commit d2012e1

Browse files
authored
Merge pull request #16 from airbytehq/speakeasy-sdk-regen-1682122379
chore: speakeasy sdk regeneration - Generate
2 parents 032defd + 891c9c8 commit d2012e1

File tree

536 files changed

+3074
-227
lines changed

Some content is hidden

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

536 files changed

+3074
-227
lines changed

README.md

Lines changed: 8 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Developer Portal UI can also be used to help build your integration by showi
2121
### Gradle
2222

2323
```groovy
24-
implementation 'com.airbyte.api:public-api:0.1.1'
24+
implementation 'com.airbyte.api:public-api:0.2.0'
2525
```
2626
<!-- End SDK Installation -->
2727

@@ -46,86 +46,18 @@ public class Application {
4646
public static void main(String[] args) {
4747
try {
4848
Airbyte sdk = Airbyte.builder()
49-
.setSecurity(new Security() {{
49+
.setSecurity(new Security("corrupti") {{
5050
bearerAuth = "Bearer YOUR_BEARER_TOKEN_HERE";
5151
}})
5252
.build();
5353

54-
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest() {{
55-
configurations = new StreamConfigurations() {{
56-
streams = new com.airbyte.api.models.shared.StreamConfiguration[]{{
57-
add(new StreamConfiguration() {{
58-
cursorField = new String[]{{
59-
add("distinctio"),
60-
add("quibusdam"),
61-
add("unde"),
62-
}};
63-
name = "Johnnie Stamm";
64-
primaryKey = new String[][]{{
65-
add(new String[]{{
66-
add("iure"),
67-
add("magnam"),
68-
}}),
69-
add(new String[]{{
70-
add("ipsa"),
71-
add("delectus"),
72-
add("tempora"),
73-
add("suscipit"),
74-
}}),
75-
add(new String[]{{
76-
add("minus"),
77-
add("placeat"),
78-
}}),
79-
}};
80-
syncMode = "incremental_append";
81-
}}),
82-
add(new StreamConfiguration() {{
83-
cursorField = new String[]{{
84-
add("excepturi"),
85-
add("nisi"),
86-
}};
87-
name = "Jake Bernier MD";
88-
primaryKey = new String[][]{{
89-
add(new String[]{{
90-
add("repellendus"),
91-
add("sapiente"),
92-
}}),
93-
}};
94-
syncMode = "incremental_deduped_history";
95-
}}),
96-
add(new StreamConfiguration() {{
97-
cursorField = new String[]{{
98-
add("at"),
99-
}};
100-
name = "Emilio Krajcik";
101-
primaryKey = new String[][]{{
102-
add(new String[]{{
103-
add("porro"),
104-
add("dolorum"),
105-
add("dicta"),
106-
}}),
107-
add(new String[]{{
108-
add("officia"),
109-
add("occaecati"),
110-
add("fugit"),
111-
}}),
112-
}};
113-
syncMode = "incremental_append";
114-
}}),
115-
}};
116-
}};
117-
dataResidency = "eu";
118-
destinationId = "c816742c-b739-4205-9293-96fea7596eb1";
119-
name = "Lela Orn";
120-
namespaceDefinition = "source";
54+
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest("9bd9d8d6-9a67-44e0-b467-cc8796ed151a", "05dfc2dd-f7cc-478c-a1ba-928fc816742c") {{
55+
dataResidency = "us";
56+
name = "Kayla O'Kon";
57+
namespaceDefinition = "custom_format";
12158
namespaceFormat = "${SOURCE_NAMESPACE}";
122-
prefix = "dolorem";
123-
schedule = new ConnectionScheduleCreate() {{
124-
cronExpression = "corporis";
125-
scheduleType = "manual";
126-
}};
127-
sourceId = "c5955907-aff1-4a3a-afa9-467739251aa5";
128-
}}
59+
prefix = "sequi";
60+
}};
12961

13062
CreateConnectionResponse res = sdk.connections.createConnection(req);
13163

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,12 @@ Based on:
143143
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
144144
- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy
145145
### Releases
146-
- [Maven Central v0.1.1] https://central.sonatype.com/artifact/com.airbyte/api/0.1.1 - .
146+
- [Maven Central v0.1.1] https://central.sonatype.com/artifact/com.airbyte/api/0.1.1 - .
147+
148+
## 2023-04-22 00:12:58
149+
### Changes
150+
Based on:
151+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
152+
- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy
153+
### Releases
154+
- [Maven Central v0.2.0] https://central.sonatype.com/artifact/com.airbyte/api/0.2.0 - .

USAGE.md

Lines changed: 7 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -18,86 +18,18 @@ public class Application {
1818
public static void main(String[] args) {
1919
try {
2020
Airbyte sdk = Airbyte.builder()
21-
.setSecurity(new Security() {{
21+
.setSecurity(new Security("corrupti") {{
2222
bearerAuth = "Bearer YOUR_BEARER_TOKEN_HERE";
2323
}})
2424
.build();
2525

26-
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest() {{
27-
configurations = new StreamConfigurations() {{
28-
streams = new com.airbyte.api.models.shared.StreamConfiguration[]{{
29-
add(new StreamConfiguration() {{
30-
cursorField = new String[]{{
31-
add("distinctio"),
32-
add("quibusdam"),
33-
add("unde"),
34-
}};
35-
name = "Johnnie Stamm";
36-
primaryKey = new String[][]{{
37-
add(new String[]{{
38-
add("iure"),
39-
add("magnam"),
40-
}}),
41-
add(new String[]{{
42-
add("ipsa"),
43-
add("delectus"),
44-
add("tempora"),
45-
add("suscipit"),
46-
}}),
47-
add(new String[]{{
48-
add("minus"),
49-
add("placeat"),
50-
}}),
51-
}};
52-
syncMode = "incremental_append";
53-
}}),
54-
add(new StreamConfiguration() {{
55-
cursorField = new String[]{{
56-
add("excepturi"),
57-
add("nisi"),
58-
}};
59-
name = "Jake Bernier MD";
60-
primaryKey = new String[][]{{
61-
add(new String[]{{
62-
add("repellendus"),
63-
add("sapiente"),
64-
}}),
65-
}};
66-
syncMode = "incremental_deduped_history";
67-
}}),
68-
add(new StreamConfiguration() {{
69-
cursorField = new String[]{{
70-
add("at"),
71-
}};
72-
name = "Emilio Krajcik";
73-
primaryKey = new String[][]{{
74-
add(new String[]{{
75-
add("porro"),
76-
add("dolorum"),
77-
add("dicta"),
78-
}}),
79-
add(new String[]{{
80-
add("officia"),
81-
add("occaecati"),
82-
add("fugit"),
83-
}}),
84-
}};
85-
syncMode = "incremental_append";
86-
}}),
87-
}};
88-
}};
89-
dataResidency = "eu";
90-
destinationId = "c816742c-b739-4205-9293-96fea7596eb1";
91-
name = "Lela Orn";
92-
namespaceDefinition = "source";
26+
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest("9bd9d8d6-9a67-44e0-b467-cc8796ed151a", "05dfc2dd-f7cc-478c-a1ba-928fc816742c") {{
27+
dataResidency = "us";
28+
name = "Kayla O'Kon";
29+
namespaceDefinition = "custom_format";
9330
namespaceFormat = "${SOURCE_NAMESPACE}";
94-
prefix = "dolorem";
95-
schedule = new ConnectionScheduleCreate() {{
96-
cronExpression = "corporis";
97-
scheduleType = "manual";
98-
}};
99-
sourceId = "c5955907-aff1-4a3a-afa9-467739251aa5";
100-
}}
31+
prefix = "sequi";
32+
}};
10133

10234
CreateConnectionResponse res = sdk.connections.createConnection(req);
10335

gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ configVersion: 1.0.0
22
management:
33
docChecksum: b33273ead3e10c4bc4f9bfeed6ad97a4
44
docVersion: 1.0.0
5-
speakeasyVersion: 1.21.4
6-
generationVersion: 2.19.1
5+
speakeasyVersion: 1.22.1
6+
generationVersion: 2.20.1
77
generation:
88
telemetryEnabled: false
99
sdkClassName: airbyte
1010
singleTagPerOp: false
1111
java:
12-
version: 0.1.1
12+
version: 0.2.0
1313
artifactID: api
1414
companyEmail: info@airbyte.com
1515
companyName: Airbyte

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ publishing {
4141
maven(MavenPublication) {
4242
groupId = 'com.airbyte'
4343
artifactId = 'api'
44-
version = '0.1.1'
44+
version = '0.2.0'
4545

4646
from components.java
4747

lib/src/main/java/com/airbyte/api/Airbyte.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class Airbyte {
3030
private com.airbyte.api.models.shared.Security _security;
3131
private String _serverUrl;
3232
private String _language = "java";
33-
private String _sdkVersion = "0.1.1";
34-
private String _genVersion = "2.19.1";
33+
private String _sdkVersion = "0.2.0";
34+
private String _genVersion = "2.20.1";
3535
/**
3636
* The Builder class allows the configuration of a new instance of the SDK.
3737
*/

lib/src/main/java/com/airbyte/api/Connections.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ public com.airbyte.api.models.operations.CreateConnectionResponse createConnecti
5757

5858
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
5959

60-
com.airbyte.api.models.operations.CreateConnectionResponse res = new com.airbyte.api.models.operations.CreateConnectionResponse() {{
60+
com.airbyte.api.models.operations.CreateConnectionResponse res = new com.airbyte.api.models.operations.CreateConnectionResponse(contentType, httpRes.statusCode()) {{
6161
connectionResponse = null;
6262
}};
63-
res.statusCode = httpRes.statusCode();
64-
res.contentType = contentType;
6563
res.rawResponse = httpRes;
6664

6765
if (httpRes.statusCode() == 200) {
@@ -98,10 +96,8 @@ public com.airbyte.api.models.operations.DeleteConnectionResponse deleteConnecti
9896

9997
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
10098

101-
com.airbyte.api.models.operations.DeleteConnectionResponse res = new com.airbyte.api.models.operations.DeleteConnectionResponse() {{
99+
com.airbyte.api.models.operations.DeleteConnectionResponse res = new com.airbyte.api.models.operations.DeleteConnectionResponse(contentType, httpRes.statusCode()) {{
102100
}};
103-
res.statusCode = httpRes.statusCode();
104-
res.contentType = contentType;
105101
res.rawResponse = httpRes;
106102

107103
if (httpRes.statusCode() == 204 || httpRes.statusCode() == 403 || httpRes.statusCode() == 404) {
@@ -131,11 +127,9 @@ public com.airbyte.api.models.operations.GetConnectionResponse getConnection(com
131127

132128
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
133129

134-
com.airbyte.api.models.operations.GetConnectionResponse res = new com.airbyte.api.models.operations.GetConnectionResponse() {{
130+
com.airbyte.api.models.operations.GetConnectionResponse res = new com.airbyte.api.models.operations.GetConnectionResponse(contentType, httpRes.statusCode()) {{
135131
connectionResponse = null;
136132
}};
137-
res.statusCode = httpRes.statusCode();
138-
res.contentType = contentType;
139133
res.rawResponse = httpRes;
140134

141135
if (httpRes.statusCode() == 200) {
@@ -178,11 +172,9 @@ public com.airbyte.api.models.operations.ListConnectionsResponse listConnections
178172

179173
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
180174

181-
com.airbyte.api.models.operations.ListConnectionsResponse res = new com.airbyte.api.models.operations.ListConnectionsResponse() {{
175+
com.airbyte.api.models.operations.ListConnectionsResponse res = new com.airbyte.api.models.operations.ListConnectionsResponse(contentType, httpRes.statusCode()) {{
182176
connectionsResponse = null;
183177
}};
184-
res.statusCode = httpRes.statusCode();
185-
res.contentType = contentType;
186178
res.rawResponse = httpRes;
187179

188180
if (httpRes.statusCode() == 200) {

lib/src/main/java/com/airbyte/api/Destinations.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina
5555

5656
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
5757

58-
com.airbyte.api.models.operations.CreateDestinationResponse res = new com.airbyte.api.models.operations.CreateDestinationResponse() {{
58+
com.airbyte.api.models.operations.CreateDestinationResponse res = new com.airbyte.api.models.operations.CreateDestinationResponse(contentType, httpRes.statusCode()) {{
5959
destinationResponse = null;
6060
}};
61-
res.statusCode = httpRes.statusCode();
62-
res.contentType = contentType;
6361
res.rawResponse = httpRes;
6462

6563
if (httpRes.statusCode() == 200) {
@@ -96,10 +94,8 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina
9694

9795
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
9896

99-
com.airbyte.api.models.operations.DeleteDestinationResponse res = new com.airbyte.api.models.operations.DeleteDestinationResponse() {{
97+
com.airbyte.api.models.operations.DeleteDestinationResponse res = new com.airbyte.api.models.operations.DeleteDestinationResponse(contentType, httpRes.statusCode()) {{
10098
}};
101-
res.statusCode = httpRes.statusCode();
102-
res.contentType = contentType;
10399
res.rawResponse = httpRes;
104100

105101
if (httpRes.statusCode() == 204 || httpRes.statusCode() == 403 || httpRes.statusCode() == 404) {
@@ -129,11 +125,9 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination(c
129125

130126
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
131127

132-
com.airbyte.api.models.operations.GetDestinationResponse res = new com.airbyte.api.models.operations.GetDestinationResponse() {{
128+
com.airbyte.api.models.operations.GetDestinationResponse res = new com.airbyte.api.models.operations.GetDestinationResponse(contentType, httpRes.statusCode()) {{
133129
destinationResponse = null;
134130
}};
135-
res.statusCode = httpRes.statusCode();
136-
res.contentType = contentType;
137131
res.rawResponse = httpRes;
138132

139133
if (httpRes.statusCode() == 200) {
@@ -176,11 +170,9 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio
176170

177171
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
178172

179-
com.airbyte.api.models.operations.ListDestinationsResponse res = new com.airbyte.api.models.operations.ListDestinationsResponse() {{
173+
com.airbyte.api.models.operations.ListDestinationsResponse res = new com.airbyte.api.models.operations.ListDestinationsResponse(contentType, httpRes.statusCode()) {{
180174
destinationsResponse = null;
181175
}};
182-
res.statusCode = httpRes.statusCode();
183-
res.contentType = contentType;
184176
res.rawResponse = httpRes;
185177

186178
if (httpRes.statusCode() == 200) {

0 commit comments

Comments
 (0)