Skip to content

Commit 919aa6c

Browse files
authored
Merge pull request #5 from hathora/speakeasy-sdk-regen-1707412158
chore: 🐝 Update SDK - Generate
2 parents af0744f + 6b36a27 commit 919aa6c

File tree

628 files changed

+45684
-8829
lines changed

Some content is hidden

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

628 files changed

+45684
-8829
lines changed

β€Ž.gitattributesβ€Ž

100755100644
File mode changed.

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Ignore IDE-specific configs
2+
.project
3+
.settings/
14
# Ignore Gradle project-specific cache directory
25
.gradle
36
# Ignore Gradle build output directory

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 545 additions & 0 deletions
Large diffs are not rendered by default.

β€ŽREADME.mdβ€Ž

Lines changed: 483 additions & 65 deletions
Large diffs are not rendered by default.

β€ŽRELEASES.mdβ€Ž

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,12 @@ Based on:
176176
- OpenAPI Doc 0.0.1
177177
- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy
178178
### Generated
179-
- [java v1.19.0] .
179+
- [java v1.19.0] .
180+
181+
## 2024-02-08 17:09:16
182+
### Changes
183+
Based on:
184+
- OpenAPI Doc 0.0.1
185+
- Speakeasy CLI 1.174.2 (2.250.19) https://github.com/speakeasy-api/speakeasy
186+
### Generated
187+
- [java v2.0.0] .

β€ŽUSAGE.mdβ€Ž

100755100644
Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,58 @@
1-
<!-- Start SDK Example Usage -->
2-
3-
1+
<!-- Start SDK Example Usage [usage] -->
42
```java
53
package hello.world;
64

7-
import dev.hathora.cloud_api.SDK;
5+
import dev.hathora.cloud_api.Hathora-Cloud;
6+
import dev.hathora.cloud_api.models.operations.*;
87
import dev.hathora.cloud_api.models.operations.CreateAppResponse;
9-
import dev.hathora.cloud_api.models.operations.CreateAppSecurity;
8+
import dev.hathora.cloud_api.models.shared.*;
109
import dev.hathora.cloud_api.models.shared.AppConfig;
11-
import dev.hathora.cloud_api.models.shared.AppConfigAuthConfiguration;
12-
import dev.hathora.cloud_api.models.shared.AppConfigAuthConfigurationGoogle;
10+
import dev.hathora.cloud_api.models.shared.AuthConfiguration;
11+
import dev.hathora.cloud_api.models.shared.Google;
1312
import dev.hathora.cloud_api.models.shared.RecordStringNever;
13+
import dev.hathora.cloud_api.models.shared.Security;
14+
import java.time.LocalDate;
15+
import java.time.OffsetDateTime;
16+
import static java.util.Map.entry;
1417

1518
public class Application {
19+
1620
public static void main(String[] args) {
1721
try {
18-
SDK sdk = SDK.builder()
22+
HathoraCloud sdk = HathoraCloud.builder()
23+
.security(Security.builder()
24+
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
25+
.build())
26+
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
1927
.build();
2028

21-
dev.hathora.cloud_api.models.shared.AppConfig req = new AppConfig("minecraft", new AppConfigAuthConfiguration() {{
22-
anonymous = new RecordStringNever();;
23-
google = new AppConfigAuthConfigurationGoogle("corrupti");;
24-
nickname = new RecordStringNever();;
25-
}};);
29+
AppConfig req = AppConfig.builder()
30+
.appName("minecraft")
31+
.authConfiguration(AuthConfiguration.builder()
32+
.anonymous(RecordStringNever.builder()
33+
.build())
34+
.google(Google.builder()
35+
.clientId("string")
36+
.build())
37+
.nickname(RecordStringNever.builder()
38+
.build())
39+
.build())
40+
.build();
2641

27-
CreateAppResponse res = sdk.appV1.createApp(req, new CreateAppSecurity("provident") {{
28-
auth0 = "";
29-
}});
42+
CreateAppResponse res = sdk.appV1().createApp()
43+
.request(req)
44+
.call();
3045

31-
if (res.application != null) {
46+
if (res.application().isPresent()) {
3247
// handle response
3348
}
49+
50+
} catch (dev.hathora.cloud_api.models.errors.SDKError e) {
51+
// handle exception
3452
} catch (Exception e) {
3553
// handle exception
3654
}
3755
}
3856
}
3957
```
40-
<!-- End SDK Example Usage -->
58+
<!-- End SDK Example Usage [usage] -->

β€Ždocs/models/operations/CreateAppResponse.mdβ€Ž

100755100644
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
8-
| `application` | [dev.hathora.cloud_api.models.shared.Application](../../models/shared/Application.md) | :heavy_minus_sign: | N/A |
9-
| `contentType` | *String* | :heavy_check_mark: | N/A |
10-
| `createApp422ApplicationJSONString` | *String* | :heavy_minus_sign: | N/A |
11-
| `createApp500ApplicationJSONString` | *String* | :heavy_minus_sign: | N/A |
12-
| `statusCode` | *Integer* | :heavy_check_mark: | N/A |
13-
| `rawResponse` | [HttpResponse<byte[]>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
8+
| `apiError` | [Optional<? extends dev.hathora.cloud_api.models.shared.ApiError>](../../models/shared/ApiError.md) | :heavy_minus_sign: | N/A |
9+
| `application` | [Optional<? extends dev.hathora.cloud_api.models.shared.Application>](../../models/shared/Application.md) | :heavy_minus_sign: | N/A |
10+
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
11+
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `rawResponse` | [HttpResponse<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

β€Ždocs/models/operations/CreateAppSecurity.mdβ€Ž

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

β€Ždocs/models/operations/CreateBuildRequest.mdβ€Ž

100755100644
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
8-
| `appId` | *String* | :heavy_check_mark: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
8+
| `createBuildParams` | [dev.hathora.cloud_api.models.shared.CreateBuildParams](../../models/shared/CreateBuildParams.md) | :heavy_check_mark: | N/A | |
9+
| `appId` | *Optional<? extends String>* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |

0 commit comments

Comments
Β (0)