Skip to content

Commit 4aa0daf

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0, Speakeay CLI 1.43.0
1 parent ced55d7 commit 4aa0daf

File tree

11 files changed

+121
-164
lines changed

11 files changed

+121
-164
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
### Gradle
1818

1919
```groovy
20-
implementation 'structure.Structure:Structure:0.14.1'
20+
implementation 'structure.Structure:Structure:0.15.0'
2121
```
2222
<!-- End SDK Installation -->
2323

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,12 @@ Based on:
220220
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
221221
- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy
222222
### Releases
223-
- [Maven Central v0.14.1] https://central.sonatype.com/artifact/structure/Structure/0.14.1 - .
223+
- [Maven Central v0.14.1] https://central.sonatype.com/artifact/structure/Structure/0.14.1 - .
224+
225+
## 2023-06-03 01:44:04
226+
### Changes
227+
Based on:
228+
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
229+
- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy
230+
### Releases
231+
- [Maven Central v0.15.0] https://central.sonatype.com/artifact/structure/Structure/0.15.0 - .

files.gen

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
lib/src/main/java/structure/Structure/SDKConfiguration.java
12
lib/src/main/java/structure/Structure/Accounts.java
23
lib/src/main/java/structure/Structure/Companies.java
34
lib/src/main/java/structure/Structure/People.java

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: e0bf2d205ca94a0d32bd91d6ea558d5b
44
docVersion: "1.0"
5-
speakeasyVersion: 1.40.3
6-
generationVersion: 2.34.7
5+
speakeasyVersion: 1.43.0
6+
generationVersion: 2.35.3
77
generation:
88
sdkClassName: SDK
99
singleTagPerOp: false
1010
telemetryEnabled: false
1111
java:
12-
version: 0.14.1
12+
version: 0.15.0
1313
artifactID: Structure
1414
companyEmail: info@mycompany.com
1515
companyName: My Company

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 = 'structure'
4343
artifactId = 'Structure'
44-
version = '0.14.1'
44+
version = '0.15.0'
4545

4646
from components.java
4747

lib/src/main/java/structure/Structure/Accounts.java

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,10 @@
1313
*/
1414
public class Accounts {
1515

16-
private HTTPClient _defaultClient;
17-
private HTTPClient _securityClient;
18-
private String _serverUrl;
19-
private String _language;
20-
private String _sdkVersion;
21-
private String _genVersion;
16+
private SDKConfiguration sdkConfiguration;
2217

23-
public Accounts(HTTPClient defaultClient, HTTPClient securityClient, String serverUrl, String language, String sdkVersion, String genVersion) {
24-
this._defaultClient = defaultClient;
25-
this._securityClient = securityClient;
26-
this._serverUrl = serverUrl;
27-
this._language = language;
28-
this._sdkVersion = sdkVersion;
29-
this._genVersion = genVersion;
18+
public Accounts(SDKConfiguration sdkConfiguration) {
19+
this.sdkConfiguration = sdkConfiguration;
3020
}
3121

3222
/**
@@ -35,17 +25,17 @@ public Accounts(HTTPClient defaultClient, HTTPClient securityClient, String serv
3525
* @throws Exception if the API call fails
3626
*/
3727
public structure.Structure.models.operations.ListUsersResponse listUsers() throws Exception {
38-
String baseUrl = this._serverUrl;
28+
String baseUrl = this.sdkConfiguration.serverUrl;
3929
String url = structure.Structure.utils.Utils.generateURL(baseUrl, "/accounts");
4030

4131
HTTPRequest req = new HTTPRequest();
4232
req.setMethod("GET");
4333
req.setURL(url);
4434

4535
req.addHeader("Accept", "*/*");
46-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
36+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
4737

48-
HTTPClient client = this._securityClient;
38+
HTTPClient client = this.sdkConfiguration.securityClient;
4939

5040
HttpResponse<byte[]> httpRes = client.send(req);
5141

lib/src/main/java/structure/Structure/Companies.java

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,10 @@
1515
*/
1616
public class Companies {
1717

18-
private HTTPClient _defaultClient;
19-
private HTTPClient _securityClient;
20-
private String _serverUrl;
21-
private String _language;
22-
private String _sdkVersion;
23-
private String _genVersion;
24-
25-
public Companies(HTTPClient defaultClient, HTTPClient securityClient, String serverUrl, String language, String sdkVersion, String genVersion) {
26-
this._defaultClient = defaultClient;
27-
this._securityClient = securityClient;
28-
this._serverUrl = serverUrl;
29-
this._language = language;
30-
this._sdkVersion = sdkVersion;
31-
this._genVersion = genVersion;
18+
private SDKConfiguration sdkConfiguration;
19+
20+
public Companies(SDKConfiguration sdkConfiguration) {
21+
this.sdkConfiguration = sdkConfiguration;
3222
}
3323

3424
/**
@@ -38,17 +28,17 @@ public Companies(HTTPClient defaultClient, HTTPClient securityClient, String ser
3828
* @throws Exception if the API call fails
3929
*/
4030
public structure.Structure.models.operations.EnrichCompanyResponse enrich(structure.Structure.models.operations.EnrichCompanyRequest request) throws Exception {
41-
String baseUrl = this._serverUrl;
31+
String baseUrl = this.sdkConfiguration.serverUrl;
4232
String url = structure.Structure.utils.Utils.generateURL(structure.Structure.models.operations.EnrichCompanyRequest.class, baseUrl, "/companies/{id}/enrich", request, null);
4333

4434
HTTPRequest req = new HTTPRequest();
4535
req.setMethod("GET");
4636
req.setURL(url);
4737

4838
req.addHeader("Accept", "*/*");
49-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
39+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
5040

51-
HTTPClient client = this._securityClient;
41+
HTTPClient client = this.sdkConfiguration.securityClient;
5242

5343
HttpResponse<byte[]> httpRes = client.send(req);
5444

@@ -78,23 +68,23 @@ else if (httpRes.statusCode() == 401 || httpRes.statusCode() == 403 || httpRes.s
7868
* @throws Exception if the API call fails
7969
*/
8070
public structure.Structure.models.operations.ListEmployeesResponse listEmployees(structure.Structure.models.operations.ListEmployeesRequest request) throws Exception {
81-
String baseUrl = this._serverUrl;
71+
String baseUrl = this.sdkConfiguration.serverUrl;
8272
String url = structure.Structure.utils.Utils.generateURL(structure.Structure.models.operations.ListEmployeesRequest.class, baseUrl, "/companies/{id}/employees", request, null);
8373

8474
HTTPRequest req = new HTTPRequest();
8575
req.setMethod("GET");
8676
req.setURL(url);
8777

8878
req.addHeader("Accept", "*/*");
89-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
79+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
9080
java.util.List<NameValuePair> queryParams = structure.Structure.utils.Utils.getQueryParams(structure.Structure.models.operations.ListEmployeesRequest.class, request, null);
9181
if (queryParams != null) {
9282
for (NameValuePair queryParam : queryParams) {
9383
req.addQueryParam(queryParam);
9484
}
9585
}
9686

97-
HTTPClient client = this._securityClient;
87+
HTTPClient client = this.sdkConfiguration.securityClient;
9888

9989
HttpResponse<byte[]> httpRes = client.send(req);
10090

@@ -124,23 +114,23 @@ else if (httpRes.statusCode() == 401 || httpRes.statusCode() == 403 || httpRes.s
124114
* @throws Exception if the API call fails
125115
*/
126116
public structure.Structure.models.operations.ListJobsResponse listJobs(structure.Structure.models.operations.ListJobsRequest request) throws Exception {
127-
String baseUrl = this._serverUrl;
117+
String baseUrl = this.sdkConfiguration.serverUrl;
128118
String url = structure.Structure.utils.Utils.generateURL(structure.Structure.models.operations.ListJobsRequest.class, baseUrl, "/companies/{id}/jobs", request, null);
129119

130120
HTTPRequest req = new HTTPRequest();
131121
req.setMethod("GET");
132122
req.setURL(url);
133123

134124
req.addHeader("Accept", "*/*");
135-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
125+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
136126
java.util.List<NameValuePair> queryParams = structure.Structure.utils.Utils.getQueryParams(structure.Structure.models.operations.ListJobsRequest.class, request, null);
137127
if (queryParams != null) {
138128
for (NameValuePair queryParam : queryParams) {
139129
req.addQueryParam(queryParam);
140130
}
141131
}
142132

143-
HTTPClient client = this._securityClient;
133+
HTTPClient client = this.sdkConfiguration.securityClient;
144134

145135
HttpResponse<byte[]> httpRes = client.send(req);
146136

@@ -170,7 +160,7 @@ else if (httpRes.statusCode() == 401 || httpRes.statusCode() == 403 || httpRes.s
170160
* @throws Exception if the API call fails
171161
*/
172162
public structure.Structure.models.operations.SearchCompaniesResponse search(structure.Structure.models.operations.SearchCompaniesApplicationJSON request) throws Exception {
173-
String baseUrl = this._serverUrl;
163+
String baseUrl = this.sdkConfiguration.serverUrl;
174164
String url = structure.Structure.utils.Utils.generateURL(baseUrl, "/companies/search");
175165

176166
HTTPRequest req = new HTTPRequest();
@@ -180,9 +170,9 @@ public structure.Structure.models.operations.SearchCompaniesResponse search(stru
180170
req.setBody(serializedRequestBody);
181171

182172
req.addHeader("Accept", "*/*");
183-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
173+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
184174

185-
HTTPClient client = this._securityClient;
175+
HTTPClient client = this.sdkConfiguration.securityClient;
186176

187177
HttpResponse<byte[]> httpRes = client.send(req);
188178

lib/src/main/java/structure/Structure/People.java

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,10 @@
1414
*/
1515
public class People {
1616

17-
private HTTPClient _defaultClient;
18-
private HTTPClient _securityClient;
19-
private String _serverUrl;
20-
private String _language;
21-
private String _sdkVersion;
22-
private String _genVersion;
17+
private SDKConfiguration sdkConfiguration;
2318

24-
public People(HTTPClient defaultClient, HTTPClient securityClient, String serverUrl, String language, String sdkVersion, String genVersion) {
25-
this._defaultClient = defaultClient;
26-
this._securityClient = securityClient;
27-
this._serverUrl = serverUrl;
28-
this._language = language;
29-
this._sdkVersion = sdkVersion;
30-
this._genVersion = genVersion;
19+
public People(SDKConfiguration sdkConfiguration) {
20+
this.sdkConfiguration = sdkConfiguration;
3121
}
3222

3323
/**
@@ -37,17 +27,17 @@ public People(HTTPClient defaultClient, HTTPClient securityClient, String server
3727
* @throws Exception if the API call fails
3828
*/
3929
public structure.Structure.models.operations.EnrichPersonResponse enrich(structure.Structure.models.operations.EnrichPersonRequest request) throws Exception {
40-
String baseUrl = this._serverUrl;
30+
String baseUrl = this.sdkConfiguration.serverUrl;
4131
String url = structure.Structure.utils.Utils.generateURL(structure.Structure.models.operations.EnrichPersonRequest.class, baseUrl, "/people/{id}/enrich", request, null);
4232

4333
HTTPRequest req = new HTTPRequest();
4434
req.setMethod("GET");
4535
req.setURL(url);
4636

4737
req.addHeader("Accept", "*/*");
48-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
38+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
4939

50-
HTTPClient client = this._securityClient;
40+
HTTPClient client = this.sdkConfiguration.securityClient;
5141

5242
HttpResponse<byte[]> httpRes = client.send(req);
5343

@@ -77,7 +67,7 @@ else if (httpRes.statusCode() == 401 || httpRes.statusCode() == 403 || httpRes.s
7767
* @throws Exception if the API call fails
7868
*/
7969
public structure.Structure.models.operations.SearchPeopleResponse search(structure.Structure.models.operations.SearchPeopleApplicationJSON request) throws Exception {
80-
String baseUrl = this._serverUrl;
70+
String baseUrl = this.sdkConfiguration.serverUrl;
8171
String url = structure.Structure.utils.Utils.generateURL(baseUrl, "/people/search");
8272

8373
HTTPRequest req = new HTTPRequest();
@@ -87,9 +77,9 @@ public structure.Structure.models.operations.SearchPeopleResponse search(structu
8777
req.setBody(serializedRequestBody);
8878

8979
req.addHeader("Accept", "*/*");
90-
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this._language, this._sdkVersion, this._genVersion));
80+
req.addHeader("user-agent", String.format("speakeasy-sdk/%s %s %s", this.sdkConfiguration.language, this.sdkConfiguration.sdkVersion, this.sdkConfiguration.genVersion));
9181

92-
HTTPClient client = this._securityClient;
82+
HTTPClient client = this.sdkConfiguration.securityClient;
9383

9484
HttpResponse<byte[]> httpRes = client.send(req);
9585

0 commit comments

Comments
 (0)