Skip to content

Commit d5c5966

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.2
1 parent 6884315 commit d5c5966

File tree

1,017 files changed

+37033
-453
lines changed

Some content is hidden

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

1,017 files changed

+37033
-453
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The Developer Portal UI can also be used to help build your integration by showi
2323
### Gradle
2424

2525
```groovy
26-
implementation 'com.airbyte.api:public-api:0.0.6'
26+
implementation 'com.airbyte.api:public-api:0.0.1'
2727
```
2828
<!-- End SDK Installation -->
2929

@@ -33,7 +33,7 @@ implementation 'com.airbyte.api:public-api:0.0.6'
3333
package hello.world;
3434

3535
import com.airbyte.api.Airbyte;
36-
36+
import com.airbyte.api.models.shared.Security;
3737
import com.airbyte.api.models.operations.CreateConnectionResponse;
3838
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
3939
import com.airbyte.api.models.shared.ConnectionCreateRequest;
@@ -48,6 +48,9 @@ public class Application {
4848
public static void main(String[] args) {
4949
try {
5050
Airbyte sdk = Airbyte.builder()
51+
.setSecurity(new Security() {{
52+
bearerAuth = "Bearer YOUR_BEARER_TOKEN_HERE";
53+
}})
5154
.build();
5255

5356
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest() {{
@@ -162,11 +165,6 @@ public class Application {
162165
* `getJob` - Get Job status and details
163166
* `listJobs` - List Jobs by sync type
164167

165-
### oAuth
166-
167-
* `createOrUpdateWorkspaceOAuthCredentials` - Initiate OAuth for a source.
168-
* `oauthCallback` - Receive OAuth callbacks
169-
170168
### sources
171169

172170
* `createSource` - Create a source
@@ -185,10 +183,6 @@ public class Application {
185183
* `deleteWorkspace` - Delete a Workspace
186184
* `getWorkspace` - Get Workspace details
187185
* `listWorkspaces` - List workspaces
188-
189-
### health
190-
191-
* `getHealthCheck` - Health Check
192186
<!-- End SDK Available Operations -->
193187

194188
### Maturity

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,12 @@ Based on:
7878
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
7979
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy
8080
### Releases
81-
- [Maven Central v0.0.6] https://central.sonatype.com/artifact/com.airbyte/api/0.0.6 - .
81+
- [Maven Central v0.0.6] https://central.sonatype.com/artifact/com.airbyte/api/0.0.6 - .
82+
83+
## 2023-04-18 23:55:25
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
87+
- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy
88+
### Releases
89+
- [Maven Central v0.0.1] https://central.sonatype.com/artifact/com.airbyte/api/0.0.1 - .

USAGE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package hello.world;
44

55
import com.airbyte.api.Airbyte;
6-
6+
import com.airbyte.api.models.shared.Security;
77
import com.airbyte.api.models.operations.CreateConnectionResponse;
88
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
99
import com.airbyte.api.models.shared.ConnectionCreateRequest;
@@ -18,6 +18,9 @@ public class Application {
1818
public static void main(String[] args) {
1919
try {
2020
Airbyte sdk = Airbyte.builder()
21+
.setSecurity(new Security() {{
22+
bearerAuth = "Bearer YOUR_BEARER_TOKEN_HERE";
23+
}})
2124
.build();
2225

2326
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest() {{

files.gen

Lines changed: 995 additions & 9 deletions
Large diffs are not rendered by default.

gen.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: dc621e1b6a47afd51fbeedb6a1f094f1
3+
docChecksum: 9a5d0cf1d2ebcbce14777ece8db4ccc2
44
docVersion: 1.0.0
5-
speakeasyVersion: 1.20.0
6-
generationVersion: 2.18.0
5+
speakeasyVersion: 1.20.2
6+
generationVersion: 2.18.2
77
generation:
88
telemetryEnabled: false
99
sdkClassName: airbyte
10-
sdkFlattening: true
1110
singleTagPerOp: false
1211
java:
13-
version: ""
12+
version: 0.0.1
1413
artifactID: api
1514
companyEmail: info@airbyte.com
1615
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.0.6'
44+
version = '0.0.1'
4545

4646
from components.java
4747

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

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,23 @@ public class Airbyte {
2121
public Connections connections;
2222
public Destinations destinations;
2323
public Jobs jobs;
24-
public OAuth oAuth;
2524
public Sources sources;
2625
public Streams streams;
27-
public Workspaces workspaces;
28-
public Health health;
26+
public Workspaces workspaces;
2927

3028
private HTTPClient _defaultClient;
3129
private HTTPClient _securityClient;
32-
30+
private com.airbyte.api.models.shared.Security _security;
3331
private String _serverUrl;
3432
private String _language = "java";
35-
private String _sdkVersion = "0.0.6";
36-
private String _genVersion = "2.18.0";
33+
private String _sdkVersion = "0.0.1";
34+
private String _genVersion = "2.18.2";
3735
/**
3836
* The Builder class allows the configuration of a new instance of the SDK.
3937
*/
4038
public static class Builder {
4139
private HTTPClient client;
42-
40+
private com.airbyte.api.models.shared.Security security;
4341
private String serverUrl;
4442
private java.util.Map<String, String> params = new java.util.HashMap<String, String>();
4543

@@ -56,6 +54,16 @@ public Builder setClient(HTTPClient client) {
5654
return this;
5755
}
5856

57+
/**
58+
* Configures the SDK to use the provided security details.
59+
* @param security The security details to use for all requests.
60+
* @return The builder instance.
61+
*/
62+
public Builder setSecurity(com.airbyte.api.models.shared.Security security) {
63+
this.security = security;
64+
return this;
65+
}
66+
5967
/**
6068
* Allows the overriding of the default server URL.
6169
* @param serverUrl The server URL to use for all requests.
@@ -84,7 +92,7 @@ public Builder setServerURL(String serverUrl, java.util.Map<String, String> para
8492
* @throws Exception Thrown if the SDK could not be built.
8593
*/
8694
public Airbyte build() throws Exception {
87-
return new Airbyte(this.client, this.serverUrl, this.params);
95+
return new Airbyte(this.client, this.security, this.serverUrl, this.params);
8896
}
8997
}
9098

@@ -96,13 +104,18 @@ public static Builder builder() {
96104
return new Builder();
97105
}
98106

99-
private Airbyte(HTTPClient client, String serverUrl, java.util.Map<String, String> params) throws Exception {
107+
private Airbyte(HTTPClient client, com.airbyte.api.models.shared.Security security, String serverUrl, java.util.Map<String, String> params) throws Exception {
100108
this._defaultClient = client;
101109

102110
if (this._defaultClient == null) {
103111
this._defaultClient = new SpeakeasyHTTPClient();
104112
}
105113

114+
if (security != null) {
115+
this._security = security;
116+
this._securityClient = com.airbyte.api.utils.Utils.configureSecurityClient(this._defaultClient, this._security);
117+
}
118+
106119
if (this._securityClient == null) {
107120
this._securityClient = this._defaultClient;
108121
}
@@ -143,15 +156,6 @@ private Airbyte(HTTPClient client, String serverUrl, java.util.Map<String, Strin
143156
this._genVersion
144157
);
145158

146-
this.oAuth = new OAuth(
147-
this._defaultClient,
148-
this._securityClient,
149-
this._serverUrl,
150-
this._language,
151-
this._sdkVersion,
152-
this._genVersion
153-
);
154-
155159
this.sources = new Sources(
156160
this._defaultClient,
157161
this._securityClient,
@@ -178,14 +182,5 @@ private Airbyte(HTTPClient client, String serverUrl, java.util.Map<String, Strin
178182
this._sdkVersion,
179183
this._genVersion
180184
);
181-
182-
this.health = new Health(
183-
this._defaultClient,
184-
this._securityClient,
185-
this._serverUrl,
186-
this._language,
187-
this._sdkVersion,
188-
this._genVersion
189-
);
190185
}
191186
}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public com.airbyte.api.models.operations.CreateConnectionResponse createConnecti
5151
req.setBody(serializedRequestBody);
5252

5353

54-
HTTPClient client = this._defaultClient;
54+
HTTPClient client = this._securityClient;
55+
5556
HttpResponse<byte[]> httpRes = client.send(req);
5657

5758
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -91,7 +92,8 @@ public com.airbyte.api.models.operations.DeleteConnectionResponse deleteConnecti
9192
req.setURL(url);
9293

9394

94-
HTTPClient client = this._defaultClient;
95+
HTTPClient client = this._securityClient;
96+
9597
HttpResponse<byte[]> httpRes = client.send(req);
9698

9799
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -123,7 +125,8 @@ public com.airbyte.api.models.operations.GetConnectionResponse getConnection(com
123125
req.setURL(url);
124126

125127

126-
HTTPClient client = this._defaultClient;
128+
HTTPClient client = this._securityClient;
129+
127130
HttpResponse<byte[]> httpRes = client.send(req);
128131

129132
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -169,7 +172,8 @@ public com.airbyte.api.models.operations.ListConnectionsResponse listConnections
169172
}
170173
}
171174

172-
HTTPClient client = this._defaultClient;
175+
HTTPClient client = this._securityClient;
176+
173177
HttpResponse<byte[]> httpRes = client.send(req);
174178

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

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina
4949
req.setBody(serializedRequestBody);
5050

5151

52-
HTTPClient client = this._defaultClient;
52+
HTTPClient client = this._securityClient;
53+
5354
HttpResponse<byte[]> httpRes = client.send(req);
5455

5556
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -89,7 +90,8 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina
8990
req.setURL(url);
9091

9192

92-
HTTPClient client = this._defaultClient;
93+
HTTPClient client = this._securityClient;
94+
9395
HttpResponse<byte[]> httpRes = client.send(req);
9496

9597
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -121,7 +123,8 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination(c
121123
req.setURL(url);
122124

123125

124-
HTTPClient client = this._defaultClient;
126+
HTTPClient client = this._securityClient;
127+
125128
HttpResponse<byte[]> httpRes = client.send(req);
126129

127130
String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream");
@@ -167,7 +170,8 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio
167170
}
168171
}
169172

170-
HTTPClient client = this._defaultClient;
173+
HTTPClient client = this._securityClient;
174+
171175
HttpResponse<byte[]> httpRes = client.send(req);
172176

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

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

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

0 commit comments

Comments
 (0)