Skip to content

Commit d0caa52

Browse files
authored
Merge pull request #18 from airbytehq/speakeasy-sdk-regen-1682467932
chore: speakeasy sdk regeneration - Generate
2 parents f03daf1 + d36c9fd commit d0caa52

File tree

536 files changed

+3655
-2014
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

+3655
-2014
lines changed

README.md

Lines changed: 107 additions & 37 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.2.1'
24+
implementation 'com.airbyte.api:public-api:0.5.0'
2525
```
2626
<!-- End SDK Installation -->
2727

@@ -31,16 +31,16 @@ implementation 'com.airbyte.api:public-api:0.2.1'
3131
package hello.world;
3232

3333
import com.airbyte.api.Airbyte;
34-
import com.airbyte.api.models.shared.Security;
3534
import com.airbyte.api.models.operations.CreateConnectionResponse;
36-
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
3735
import com.airbyte.api.models.shared.ConnectionCreateRequest;
36+
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
3837
import com.airbyte.api.models.shared.ConnectionScheduleCreate;
39-
import com.airbyte.api.models.shared.ScheduleTypeEnumEnum;
38+
import com.airbyte.api.models.shared.ConnectionSyncModeEnumEnum;
4039
import com.airbyte.api.models.shared.GeographyEnumEnum;
41-
import com.airbyte.api.models.shared.StreamConfigurations;
40+
import com.airbyte.api.models.shared.ScheduleTypeEnumEnum;
41+
import com.airbyte.api.models.shared.Security;
4242
import com.airbyte.api.models.shared.StreamConfiguration;
43-
import com.airbyte.api.models.shared.ConnectionSyncModeEnumEnum;
43+
import com.airbyte.api.models.shared.StreamConfigurations;
4444

4545
public class Application {
4646
public static void main(String[] args) {
@@ -52,67 +52,137 @@ public class Application {
5252
.build();
5353

5454
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest("9bd9d8d6-9a67-44e0-b467-cc8796ed151a", "05dfc2dd-f7cc-478c-a1ba-928fc816742c") {{
55-
dataResidency = "us";
55+
configurations = new StreamConfigurations() {{
56+
streams = new com.airbyte.api.models.shared.StreamConfiguration[]{{
57+
add(new StreamConfiguration("saepe") {{
58+
cursorField = new String[]{{
59+
add("ipsum"),
60+
add("excepturi"),
61+
}};
62+
name = "Dorothy Hane";
63+
primaryKey = new String[][]{{
64+
add(new String[]{{
65+
add("natus"),
66+
}}),
67+
add(new String[]{{
68+
add("hic"),
69+
add("saepe"),
70+
}}),
71+
add(new String[]{{
72+
add("in"),
73+
add("corporis"),
74+
add("iste"),
75+
}}),
76+
}};
77+
syncMode = ConnectionSyncModeEnumEnum.FULL_REFRESH_APPEND;
78+
}}),
79+
add(new StreamConfiguration("excepturi") {{
80+
cursorField = new String[]{{
81+
add("architecto"),
82+
add("ipsa"),
83+
add("reiciendis"),
84+
}};
85+
name = "Shaun Osinski";
86+
primaryKey = new String[][]{{
87+
add(new String[]{{
88+
add("nobis"),
89+
}}),
90+
add(new String[]{{
91+
add("omnis"),
92+
add("nemo"),
93+
}}),
94+
}};
95+
syncMode = ConnectionSyncModeEnumEnum.FULL_REFRESH_APPEND;
96+
}}),
97+
add(new StreamConfiguration("quia") {{
98+
cursorField = new String[]{{
99+
add("iure"),
100+
}};
101+
name = "Miss Aubrey Williamson";
102+
primaryKey = new String[][]{{
103+
add(new String[]{{
104+
add("repellat"),
105+
}}),
106+
add(new String[]{{
107+
add("occaecati"),
108+
add("numquam"),
109+
add("commodi"),
110+
}}),
111+
add(new String[]{{
112+
add("molestiae"),
113+
add("velit"),
114+
}}),
115+
}};
116+
syncMode = ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND;
117+
}}),
118+
}};
119+
}};;
120+
dataResidency = GeographyEnumEnum.US;
56121
name = "Kayla O'Kon";
57-
namespaceDefinition = "custom_format";
122+
namespaceDefinition = ConnectionCreateRequestNamespaceDefinitionEnum.CUSTOM_FORMAT;
58123
namespaceFormat = "${SOURCE_NAMESPACE}";
59124
prefix = "sequi";
125+
schedule = new ConnectionScheduleCreate(ScheduleTypeEnumEnum.CRON) {{
126+
cronExpression = "ipsam";
127+
}};;
60128
}};
61129

62130
CreateConnectionResponse res = sdk.connections.createConnection(req);
63131

64-
if (res.connectionResponse.isPresent()) {
132+
if (res.connectionResponse != null) {
65133
// handle response
66134
}
67135
} catch (Exception e) {
68136
// handle exception
69137
}
138+
}
139+
}
70140
```
71141
<!-- End SDK Example Usage -->
72142

73143
<!-- Start SDK Available Operations -->
74144
## Available Resources and Operations
75145

76146

77-
### connections
147+
### [connections](docs/connections/README.md)
78148

79-
* `createConnection` - Create a connection
80-
* `deleteConnection` - Delete a Connection
81-
* `getConnection` - Get Connection details
82-
* `listConnections` - List connections
149+
* [createConnection](docs/connections/README.md#createconnection) - Create a connection
150+
* [deleteConnection](docs/connections/README.md#deleteconnection) - Delete a Connection
151+
* [getConnection](docs/connections/README.md#getconnection) - Get Connection details
152+
* [listConnections](docs/connections/README.md#listconnections) - List connections
83153

84-
### destinations
154+
### [destinations](docs/destinations/README.md)
85155

86-
* `createDestination` - Create a destination
87-
* `deleteDestination` - Delete a Destination
88-
* `getDestination` - Get Destination details
89-
* `listDestinations` - List destinations
156+
* [createDestination](docs/destinations/README.md#createdestination) - Create a destination
157+
* [deleteDestination](docs/destinations/README.md#deletedestination) - Delete a Destination
158+
* [getDestination](docs/destinations/README.md#getdestination) - Get Destination details
159+
* [listDestinations](docs/destinations/README.md#listdestinations) - List destinations
90160

91-
### jobs
161+
### [jobs](docs/jobs/README.md)
92162

93-
* `cancelJob` - Cancel a running Job
94-
* `createJob` - Trigger a sync or reset job of a connection
95-
* `getJob` - Get Job status and details
96-
* `listJobs` - List Jobs by sync type
163+
* [cancelJob](docs/jobs/README.md#canceljob) - Cancel a running Job
164+
* [createJob](docs/jobs/README.md#createjob) - Trigger a sync or reset job of a connection
165+
* [getJob](docs/jobs/README.md#getjob) - Get Job status and details
166+
* [listJobs](docs/jobs/README.md#listjobs) - List Jobs by sync type
97167

98-
### sources
168+
### [sources](docs/sources/README.md)
99169

100-
* `createSource` - Create a source
101-
* `deleteSource` - Delete a Source
102-
* `getSource` - Get Source details
103-
* `initiateOAuth` - Initiate OAuth for a source
104-
* `listSources` - List sources
170+
* [createSource](docs/sources/README.md#createsource) - Create a source
171+
* [deleteSource](docs/sources/README.md#deletesource) - Delete a Source
172+
* [getSource](docs/sources/README.md#getsource) - Get Source details
173+
* [initiateOAuth](docs/sources/README.md#initiateoauth) - Initiate OAuth for a source
174+
* [listSources](docs/sources/README.md#listsources) - List sources
105175

106-
### streams
176+
### [streams](docs/streams/README.md)
107177

108-
* `getStreamProperties` - Get stream properties
178+
* [getStreamProperties](docs/streams/README.md#getstreamproperties) - Get stream properties
109179

110-
### workspaces
180+
### [workspaces](docs/workspaces/README.md)
111181

112-
* `createOrUpdateWorkspaceOAuthCredentials` - Create OAuth override credentials for a workspace and source type.
113-
* `createWorkspace` - Create a workspace
114-
* `getWorkspace` - Get Workspace details
115-
* `listWorkspaces` - List workspaces
182+
* [createOrUpdateWorkspaceOAuthCredentials](docs/workspaces/README.md#createorupdateworkspaceoauthcredentials) - Create OAuth override credentials for a workspace and source type.
183+
* [createWorkspace](docs/workspaces/README.md#createworkspace) - Create a workspace
184+
* [getWorkspace](docs/workspaces/README.md#getworkspace) - Get Workspace details
185+
* [listWorkspaces](docs/workspaces/README.md#listworkspaces) - List workspaces
116186
<!-- End SDK Available Operations -->
117187

118188
### Maturity

RELEASES.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,28 @@ Based on:
159159
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
160160
- Speakeasy CLI 1.22.2 (2.20.1) https://github.com/speakeasy-api/speakeasy
161161
### Releases
162-
- [Maven Central v0.2.1] https://central.sonatype.com/artifact/com.airbyte/api/0.2.1 - .
162+
- [Maven Central v0.2.1] https://central.sonatype.com/artifact/com.airbyte/api/0.2.1 - .
163+
164+
## 2023-04-26 00:12:10
165+
### Changes
166+
Based on:
167+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
168+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
169+
### Releases
170+
- [Maven Central v0.3.0] https://central.sonatype.com/artifact/com.airbyte/api/0.3.0 - .
171+
172+
## 2023-04-27 00:12:26
173+
### Changes
174+
Based on:
175+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
176+
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
177+
### Releases
178+
- [Maven Central v0.4.0] https://central.sonatype.com/artifact/com.airbyte/api/0.4.0 - .
179+
180+
## 2023-04-28 00:12:55
181+
### Changes
182+
Based on:
183+
- OpenAPI Doc 1.0.0 https://prod.speakeasyapi.dev/v1/apis/public-api/version/v0.1.0/schema/download
184+
- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy
185+
### Releases
186+
- [Maven Central v0.5.0] https://central.sonatype.com/artifact/com.airbyte/api/0.5.0 - .

USAGE.md

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
package hello.world;
44

55
import com.airbyte.api.Airbyte;
6-
import com.airbyte.api.models.shared.Security;
76
import com.airbyte.api.models.operations.CreateConnectionResponse;
8-
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
97
import com.airbyte.api.models.shared.ConnectionCreateRequest;
8+
import com.airbyte.api.models.shared.ConnectionCreateRequestNamespaceDefinitionEnum;
109
import com.airbyte.api.models.shared.ConnectionScheduleCreate;
11-
import com.airbyte.api.models.shared.ScheduleTypeEnumEnum;
10+
import com.airbyte.api.models.shared.ConnectionSyncModeEnumEnum;
1211
import com.airbyte.api.models.shared.GeographyEnumEnum;
13-
import com.airbyte.api.models.shared.StreamConfigurations;
12+
import com.airbyte.api.models.shared.ScheduleTypeEnumEnum;
13+
import com.airbyte.api.models.shared.Security;
1414
import com.airbyte.api.models.shared.StreamConfiguration;
15-
import com.airbyte.api.models.shared.ConnectionSyncModeEnumEnum;
15+
import com.airbyte.api.models.shared.StreamConfigurations;
1616

1717
public class Application {
1818
public static void main(String[] args) {
@@ -24,20 +24,90 @@ public class Application {
2424
.build();
2525

2626
com.airbyte.api.models.shared.ConnectionCreateRequest req = new ConnectionCreateRequest("9bd9d8d6-9a67-44e0-b467-cc8796ed151a", "05dfc2dd-f7cc-478c-a1ba-928fc816742c") {{
27-
dataResidency = "us";
27+
configurations = new StreamConfigurations() {{
28+
streams = new com.airbyte.api.models.shared.StreamConfiguration[]{{
29+
add(new StreamConfiguration("saepe") {{
30+
cursorField = new String[]{{
31+
add("ipsum"),
32+
add("excepturi"),
33+
}};
34+
name = "Dorothy Hane";
35+
primaryKey = new String[][]{{
36+
add(new String[]{{
37+
add("natus"),
38+
}}),
39+
add(new String[]{{
40+
add("hic"),
41+
add("saepe"),
42+
}}),
43+
add(new String[]{{
44+
add("in"),
45+
add("corporis"),
46+
add("iste"),
47+
}}),
48+
}};
49+
syncMode = ConnectionSyncModeEnumEnum.FULL_REFRESH_APPEND;
50+
}}),
51+
add(new StreamConfiguration("excepturi") {{
52+
cursorField = new String[]{{
53+
add("architecto"),
54+
add("ipsa"),
55+
add("reiciendis"),
56+
}};
57+
name = "Shaun Osinski";
58+
primaryKey = new String[][]{{
59+
add(new String[]{{
60+
add("nobis"),
61+
}}),
62+
add(new String[]{{
63+
add("omnis"),
64+
add("nemo"),
65+
}}),
66+
}};
67+
syncMode = ConnectionSyncModeEnumEnum.FULL_REFRESH_APPEND;
68+
}}),
69+
add(new StreamConfiguration("quia") {{
70+
cursorField = new String[]{{
71+
add("iure"),
72+
}};
73+
name = "Miss Aubrey Williamson";
74+
primaryKey = new String[][]{{
75+
add(new String[]{{
76+
add("repellat"),
77+
}}),
78+
add(new String[]{{
79+
add("occaecati"),
80+
add("numquam"),
81+
add("commodi"),
82+
}}),
83+
add(new String[]{{
84+
add("molestiae"),
85+
add("velit"),
86+
}}),
87+
}};
88+
syncMode = ConnectionSyncModeEnumEnum.INCREMENTAL_APPEND;
89+
}}),
90+
}};
91+
}};;
92+
dataResidency = GeographyEnumEnum.US;
2893
name = "Kayla O'Kon";
29-
namespaceDefinition = "custom_format";
94+
namespaceDefinition = ConnectionCreateRequestNamespaceDefinitionEnum.CUSTOM_FORMAT;
3095
namespaceFormat = "${SOURCE_NAMESPACE}";
3196
prefix = "sequi";
97+
schedule = new ConnectionScheduleCreate(ScheduleTypeEnumEnum.CRON) {{
98+
cronExpression = "ipsam";
99+
}};;
32100
}};
33101

34102
CreateConnectionResponse res = sdk.connections.createConnection(req);
35103

36-
if (res.connectionResponse.isPresent()) {
104+
if (res.connectionResponse != null) {
37105
// handle response
38106
}
39107
} catch (Exception e) {
40108
// handle exception
41109
}
110+
}
111+
}
42112
```
43113
<!-- End SDK Example Usage -->

docs/airbyte/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Airbyte SDK
2+
3+
### Available Operations
4+

0 commit comments

Comments
 (0)