diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 03a7ec6..442fb42 100755
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 7b361cb9-7960-4aa9-aefb-1d3ff2bbe54b
management:
- docChecksum: f979120c4d53a579602f5709907e5abe
+ docChecksum: 83ae53941fd703d9ce4034ec1d57c1e8
docVersion: 0.0.1
- speakeasyVersion: 1.423.2
- generationVersion: 2.442.11
- releaseVersion: 2.10.11
- configChecksum: b265ddf33916bd22a8395a0c68599893
+ speakeasyVersion: 1.423.5
+ generationVersion: 2.445.1
+ releaseVersion: 2.10.12
+ configChecksum: 789973c2da1ed2cc5b3bed4b80e2ddca
repoURL: https://github.com/hathora/cloud-sdk-java.git
repoSubDirectory: .
published: true
@@ -172,10 +172,6 @@ generatedFiles:
- docs/models/operations/GetLobbyInfoByShortCodeResponse.md
- docs/models/operations/GetLobbyInfoRequest.md
- docs/models/operations/GetLobbyInfoResponse.md
- - docs/models/operations/GetLogsForAppRequest.md
- - docs/models/operations/GetLogsForAppResponse.md
- - docs/models/operations/GetLogsForDeploymentRequest.md
- - docs/models/operations/GetLogsForDeploymentResponse.md
- docs/models/operations/GetLogsForProcessRequest.md
- docs/models/operations/GetLogsForProcessResponse.md
- docs/models/operations/GetMetricsDeprecatedRequest.md
@@ -654,12 +650,6 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLobbyInfoRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLobbyInfoRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLobbyInfoResponse.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequest.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequestBuilder.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppResponse.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequest.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequestBuilder.java
- - src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForProcessRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForProcessRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForProcessResponse.java
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 074663b..cd4a0ef 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,9 +1,9 @@
-speakeasyVersion: 1.423.2
+speakeasyVersion: 1.423.5
sources:
java-source:
sourceNamespace: java-source
- sourceRevisionDigest: sha256:4ed168774771083b9e20e73de81902e64e270f51eee9ecfe662119028f43d976
- sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
+ sourceRevisionDigest: sha256:74441a330cbd59977c0f77bdcb0042490f0de63b4a372272c4cf6714793bff3b
+ sourceBlobDigest: sha256:0e16ce9aaa07e858d7c86259cef36b8abf8e4a92edce30c9c7f89dd4dd23f638
tags:
- latest
- main
@@ -11,10 +11,10 @@ targets:
hathora-java:
source: java-source
sourceNamespace: java-source
- sourceRevisionDigest: sha256:4ed168774771083b9e20e73de81902e64e270f51eee9ecfe662119028f43d976
- sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
+ sourceRevisionDigest: sha256:74441a330cbd59977c0f77bdcb0042490f0de63b4a372272c4cf6714793bff3b
+ sourceBlobDigest: sha256:0e16ce9aaa07e858d7c86259cef36b8abf8e4a92edce30c9c7f89dd4dd23f638
codeSamplesNamespace: code-samples-java-hathora-java
- codeSamplesRevisionDigest: sha256:db42a9fe7d004f1056784b774b5b2c1d881bdf15848009309090773c41c2638d
+ codeSamplesRevisionDigest: sha256:1c138f925097a4b7e7a491d74611f297f78730ccc9e1f55e44c5ac686bbbec8b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/README.md b/README.md
index a8f7a38..8dc876f 100755
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
-implementation 'dev.hathora:cloud-sdk:2.10.11'
+implementation 'dev.hathora:cloud-sdk:2.10.12'
```
Maven:
@@ -43,7 +43,7 @@ Maven:
dev.hathora
cloud-sdk
- 2.10.11
+ 2.10.12
```
@@ -234,8 +234,6 @@ Deleting a build that is actively build used by an app's deployment will cause f
### [logsV1()](docs/sdks/logsv1/README.md)
* [downloadLogForProcess](docs/sdks/logsv1/README.md#downloadlogforprocess) - Download entire log file for a stopped process.
-* [~~getLogsForApp~~](docs/sdks/logsv1/README.md#getlogsforapp) - Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. :warning: **Deprecated**
-* [~~getLogsForDeployment~~](docs/sdks/logsv1/README.md#getlogsfordeployment) - Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. :warning: **Deprecated**
* [getLogsForProcess](docs/sdks/logsv1/README.md#getlogsforprocess) - Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`.
### [managementV1()](docs/sdks/managementv1/README.md)
diff --git a/RELEASES.md b/RELEASES.md
index ece7614..c8e58ea 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -809,4 +809,14 @@ Based on:
### Generated
- [java v2.10.11] .
### Releases
-- [Maven Central v2.10.11] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.11 - .
\ No newline at end of file
+- [Maven Central v2.10.11] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.11 - .
+
+## 2024-10-31 00:07:36
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.423.5 (2.445.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [java v2.10.12] .
+### Releases
+- [Maven Central v2.10.12] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.12 - .
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index e28d995..a905110 100644
--- a/build.gradle
+++ b/build.gradle
@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}
group = "dev.hathora"
-version = "2.10.11"
+version = "2.10.12"
sourcesJar {
archiveBaseName = "cloud-sdk"
@@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.hathora'
artifactId = 'cloud-sdk'
- version = '2.10.11'
+ version = '2.10.12'
from components.java
diff --git a/docs/models/operations/GetLogsForAppRequest.md b/docs/models/operations/GetLogsForAppRequest.md
deleted file mode 100644
index 2a3cf4d..0000000
--- a/docs/models/operations/GetLogsForAppRequest.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GetLogsForAppRequest
-
-
-## Fields
-
-| Field | Type | Required | Description | Example |
-| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
-| `appId` | *Optional\* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
-| `follow` | *Optional\* | :heavy_minus_sign: | N/A | |
-| `region` | [Optional\](../../models/shared/Region.md) | :heavy_minus_sign: | N/A | |
-| `tailLines` | *Optional\* | :heavy_minus_sign: | N/A | 100 |
\ No newline at end of file
diff --git a/docs/models/operations/GetLogsForAppResponse.md b/docs/models/operations/GetLogsForAppResponse.md
deleted file mode 100644
index db61f93..0000000
--- a/docs/models/operations/GetLogsForAppResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GetLogsForAppResponse
-
-
-## Fields
-
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
-| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
-| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `rawResponse` | [HttpResponse\](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 |
-| `responseStream` | *Optional\* | :heavy_minus_sign: | Ok |
\ No newline at end of file
diff --git a/docs/models/operations/GetLogsForDeploymentRequest.md b/docs/models/operations/GetLogsForDeploymentRequest.md
deleted file mode 100644
index 4eab106..0000000
--- a/docs/models/operations/GetLogsForDeploymentRequest.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GetLogsForDeploymentRequest
-
-
-## Fields
-
-| Field | Type | Required | Description | Example |
-| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
-| `appId` | *Optional\* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
-| `deploymentId` | *int* | :heavy_check_mark: | N/A | 1 |
-| `follow` | *Optional\* | :heavy_minus_sign: | N/A | |
-| `tailLines` | *Optional\* | :heavy_minus_sign: | N/A | 100 |
\ No newline at end of file
diff --git a/docs/models/operations/GetLogsForDeploymentResponse.md b/docs/models/operations/GetLogsForDeploymentResponse.md
deleted file mode 100644
index 54dcb88..0000000
--- a/docs/models/operations/GetLogsForDeploymentResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GetLogsForDeploymentResponse
-
-
-## Fields
-
-| Field | Type | Required | Description |
-| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
-| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
-| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
-| `rawResponse` | [HttpResponse\](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 |
-| `responseStream` | *Optional\* | :heavy_minus_sign: | Ok |
\ No newline at end of file
diff --git a/docs/sdks/logsv1/README.md b/docs/sdks/logsv1/README.md
index 0c274f5..036707e 100644
--- a/docs/sdks/logsv1/README.md
+++ b/docs/sdks/logsv1/README.md
@@ -6,8 +6,6 @@
### Available Operations
* [downloadLogForProcess](#downloadlogforprocess) - Download entire log file for a stopped process.
-* [~~getLogsForApp~~](#getlogsforapp) - Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. :warning: **Deprecated**
-* [~~getLogsForDeployment~~](#getlogsfordeployment) - Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. :warning: **Deprecated**
* [getLogsForProcess](#getlogsforprocess) - Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`.
## downloadLogForProcess
@@ -66,129 +64,6 @@ public class Application {
| models/errors/ApiError | 400, 401, 404, 410, 429 | application/json |
| models/errors/SDKError | 4XX, 5XX | \*/\* |
-## ~~getLogsForApp~~
-
-Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`.
-
-> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
-
-### Example Usage
-
-```java
-package hello.world;
-
-import dev.hathora.cloud_sdk.HathoraCloud;
-import dev.hathora.cloud_sdk.models.errors.ApiError;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForAppRequest;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForAppResponse;
-import dev.hathora.cloud_sdk.models.shared.Security;
-import java.lang.Exception;
-
-public class Application {
-
- public static void main(String[] args) throws ApiError, Exception {
-
- HathoraCloud sdk = HathoraCloud.builder()
- .security(Security.builder()
- .hathoraDevToken("")
- .build())
- .appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
- .build();
-
- GetLogsForAppRequest req = GetLogsForAppRequest.builder()
- .tailLines(100)
- .build();
-
- GetLogsForAppResponse res = sdk.logsV1().getLogsForApp()
- .request(req)
- .call();
-
- if (res.responseStream().isPresent()) {
- // handle response
- }
- }
-}
-```
-
-### Parameters
-
-| Parameter | Type | Required | Description |
-| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
-| `request` | [GetLogsForAppRequest](../../models/operations/GetLogsForAppRequest.md) | :heavy_check_mark: | The request object to use for the request. |
-
-### Response
-
-**[GetLogsForAppResponse](../../models/operations/GetLogsForAppResponse.md)**
-
-### Errors
-
-| Error Type | Status Code | Content Type |
-| ---------------------- | ---------------------- | ---------------------- |
-| models/errors/ApiError | 401, 404, 422, 429 | application/json |
-| models/errors/SDKError | 4XX, 5XX | \*/\* |
-
-## ~~getLogsForDeployment~~
-
-Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`.
-
-> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
-
-### Example Usage
-
-```java
-package hello.world;
-
-import dev.hathora.cloud_sdk.HathoraCloud;
-import dev.hathora.cloud_sdk.models.errors.ApiError;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForDeploymentRequest;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForDeploymentResponse;
-import dev.hathora.cloud_sdk.models.shared.Security;
-import java.lang.Exception;
-
-public class Application {
-
- public static void main(String[] args) throws ApiError, Exception {
-
- HathoraCloud sdk = HathoraCloud.builder()
- .security(Security.builder()
- .hathoraDevToken("")
- .build())
- .appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
- .build();
-
- GetLogsForDeploymentRequest req = GetLogsForDeploymentRequest.builder()
- .deploymentId(1)
- .tailLines(100)
- .build();
-
- GetLogsForDeploymentResponse res = sdk.logsV1().getLogsForDeployment()
- .request(req)
- .call();
-
- if (res.responseStream().isPresent()) {
- // handle response
- }
- }
-}
-```
-
-### Parameters
-
-| Parameter | Type | Required | Description |
-| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
-| `request` | [GetLogsForDeploymentRequest](../../models/operations/GetLogsForDeploymentRequest.md) | :heavy_check_mark: | The request object to use for the request. |
-
-### Response
-
-**[GetLogsForDeploymentResponse](../../models/operations/GetLogsForDeploymentResponse.md)**
-
-### Errors
-
-| Error Type | Status Code | Content Type |
-| ---------------------- | ---------------------- | ---------------------- |
-| models/errors/ApiError | 401, 404, 429 | application/json |
-| models/errors/SDKError | 4XX, 5XX | \*/\* |
-
## getLogsForProcess
Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`.
diff --git a/gen.yaml b/gen.yaml
index 0b266ea..70919d4 100644
--- a/gen.yaml
+++ b/gen.yaml
@@ -12,7 +12,7 @@ generation:
baseServerURL: ""
flattenGlobalSecurity: true
java:
- version: 2.10.11
+ version: 2.10.12
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.1
- testRuntimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.1
diff --git a/src/main/java/dev/hathora/cloud_sdk/LogsV1.java b/src/main/java/dev/hathora/cloud_sdk/LogsV1.java
index 9f47775..a67a8c2 100644
--- a/src/main/java/dev/hathora/cloud_sdk/LogsV1.java
+++ b/src/main/java/dev/hathora/cloud_sdk/LogsV1.java
@@ -10,12 +10,6 @@
import dev.hathora.cloud_sdk.models.operations.DownloadLogForProcessRequest;
import dev.hathora.cloud_sdk.models.operations.DownloadLogForProcessRequestBuilder;
import dev.hathora.cloud_sdk.models.operations.DownloadLogForProcessResponse;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForAppRequest;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForAppRequestBuilder;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForAppResponse;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForDeploymentRequest;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForDeploymentRequestBuilder;
-import dev.hathora.cloud_sdk.models.operations.GetLogsForDeploymentResponse;
import dev.hathora.cloud_sdk.models.operations.GetLogsForProcessRequest;
import dev.hathora.cloud_sdk.models.operations.GetLogsForProcessRequestBuilder;
import dev.hathora.cloud_sdk.models.operations.GetLogsForProcessResponse;
@@ -27,7 +21,6 @@
import dev.hathora.cloud_sdk.utils.Hook.BeforeRequestContextImpl;
import dev.hathora.cloud_sdk.utils.Utils;
import java.io.InputStream;
-import java.lang.Deprecated;
import java.lang.Exception;
import java.lang.String;
import java.net.http.HttpRequest;
@@ -37,8 +30,6 @@
public class LogsV1 implements
MethodCallDownloadLogForProcess,
- MethodCallGetLogsForApp,
- MethodCallGetLogsForDeployment,
MethodCallGetLogsForProcess {
private final SDKConfiguration sdkConfiguration;
@@ -197,282 +188,6 @@ public DownloadLogForProcessResponse downloadLogForProcess(
- /**
- * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`.
- * @return The call builder
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
- */
- @Deprecated
- public GetLogsForAppRequestBuilder getLogsForApp() {
- return new GetLogsForAppRequestBuilder(this);
- }
-
- /**
- * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`.
- * @param request The request object containing all of the parameters for the API call.
- * @return The response from the API call
- * @throws Exception if the API call fails
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
- */
- @Deprecated
- public GetLogsForAppResponse getLogsForApp(
- GetLogsForAppRequest request) throws Exception {
- String _baseUrl = this.sdkConfiguration.serverUrl;
- String _url = Utils.generateURL(
- GetLogsForAppRequest.class,
- _baseUrl,
- "/logs/v1/{appId}/all",
- request, this.sdkConfiguration.globals);
-
- HTTPRequest _req = new HTTPRequest(_url, "GET");
- _req.addHeader("Accept", "application/octet-stream")
- .addHeader("user-agent",
- SDKConfiguration.USER_AGENT);
-
- _req.addQueryParams(Utils.getQueryParams(
- GetLogsForAppRequest.class,
- request,
- this.sdkConfiguration.globals));
-
- Utils.configureSecurity(_req,
- this.sdkConfiguration.securitySource.getSecurity());
-
- HTTPClient _client = this.sdkConfiguration.defaultClient;
- HttpRequest _r =
- sdkConfiguration.hooks()
- .beforeRequest(
- new BeforeRequestContextImpl(
- "GetLogsForApp",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- _req.build());
- HttpResponse _httpRes;
- try {
- _httpRes = _client.send(_r);
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "422", "429", "4XX", "5XX")) {
- _httpRes = sdkConfiguration.hooks()
- .afterError(
- new AfterErrorContextImpl(
- "GetLogsForApp",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- Optional.of(_httpRes),
- Optional.empty());
- } else {
- _httpRes = sdkConfiguration.hooks()
- .afterSuccess(
- new AfterSuccessContextImpl(
- "GetLogsForApp",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- _httpRes);
- }
- } catch (Exception _e) {
- _httpRes = sdkConfiguration.hooks()
- .afterError(
- new AfterErrorContextImpl(
- "GetLogsForApp",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- Optional.empty(),
- Optional.of(_e));
- }
- String _contentType = _httpRes
- .headers()
- .firstValue("Content-Type")
- .orElse("application/octet-stream");
- GetLogsForAppResponse.Builder _resBuilder =
- GetLogsForAppResponse
- .builder()
- .contentType(_contentType)
- .statusCode(_httpRes.statusCode())
- .rawResponse(_httpRes);
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "200") && Utils.contentTypeMatches(_contentType, "application/octet-stream")) {
- _resBuilder.responseStream(_httpRes.body());
- }
-
- GetLogsForAppResponse _res = _resBuilder.build();
-
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
- if (Utils.contentTypeMatches(_contentType, "application/octet-stream")) {
- return _res;
- } else {
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected content-type received: " + _contentType,
- Utils.extractByteArrayFromBody(_httpRes));
- }
- }
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "422", "429")) {
- if (Utils.contentTypeMatches(_contentType, "application/json")) {
- ApiError _out = Utils.mapper().readValue(
- Utils.toUtf8AndClose(_httpRes.body()),
- new TypeReference() {});
- throw _out;
- } else {
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected content-type received: " + _contentType,
- Utils.extractByteArrayFromBody(_httpRes));
- }
- }
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
- // no content
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "API error occurred",
- Utils.extractByteArrayFromBody(_httpRes));
- }
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected status code received: " + _httpRes.statusCode(),
- Utils.extractByteArrayFromBody(_httpRes));
- }
-
-
-
- /**
- * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`.
- * @return The call builder
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
- */
- @Deprecated
- public GetLogsForDeploymentRequestBuilder getLogsForDeployment() {
- return new GetLogsForDeploymentRequestBuilder(this);
- }
-
- /**
- * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`.
- * @param request The request object containing all of the parameters for the API call.
- * @return The response from the API call
- * @throws Exception if the API call fails
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
- */
- @Deprecated
- public GetLogsForDeploymentResponse getLogsForDeployment(
- GetLogsForDeploymentRequest request) throws Exception {
- String _baseUrl = this.sdkConfiguration.serverUrl;
- String _url = Utils.generateURL(
- GetLogsForDeploymentRequest.class,
- _baseUrl,
- "/logs/v1/{appId}/deployment/{deploymentId}",
- request, this.sdkConfiguration.globals);
-
- HTTPRequest _req = new HTTPRequest(_url, "GET");
- _req.addHeader("Accept", "application/octet-stream")
- .addHeader("user-agent",
- SDKConfiguration.USER_AGENT);
-
- _req.addQueryParams(Utils.getQueryParams(
- GetLogsForDeploymentRequest.class,
- request,
- this.sdkConfiguration.globals));
-
- Utils.configureSecurity(_req,
- this.sdkConfiguration.securitySource.getSecurity());
-
- HTTPClient _client = this.sdkConfiguration.defaultClient;
- HttpRequest _r =
- sdkConfiguration.hooks()
- .beforeRequest(
- new BeforeRequestContextImpl(
- "GetLogsForDeployment",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- _req.build());
- HttpResponse _httpRes;
- try {
- _httpRes = _client.send(_r);
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "429", "4XX", "5XX")) {
- _httpRes = sdkConfiguration.hooks()
- .afterError(
- new AfterErrorContextImpl(
- "GetLogsForDeployment",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- Optional.of(_httpRes),
- Optional.empty());
- } else {
- _httpRes = sdkConfiguration.hooks()
- .afterSuccess(
- new AfterSuccessContextImpl(
- "GetLogsForDeployment",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- _httpRes);
- }
- } catch (Exception _e) {
- _httpRes = sdkConfiguration.hooks()
- .afterError(
- new AfterErrorContextImpl(
- "GetLogsForDeployment",
- Optional.of(List.of()),
- sdkConfiguration.securitySource()),
- Optional.empty(),
- Optional.of(_e));
- }
- String _contentType = _httpRes
- .headers()
- .firstValue("Content-Type")
- .orElse("application/octet-stream");
- GetLogsForDeploymentResponse.Builder _resBuilder =
- GetLogsForDeploymentResponse
- .builder()
- .contentType(_contentType)
- .statusCode(_httpRes.statusCode())
- .rawResponse(_httpRes);
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "200") && Utils.contentTypeMatches(_contentType, "application/octet-stream")) {
- _resBuilder.responseStream(_httpRes.body());
- }
-
- GetLogsForDeploymentResponse _res = _resBuilder.build();
-
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) {
- if (Utils.contentTypeMatches(_contentType, "application/octet-stream")) {
- return _res;
- } else {
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected content-type received: " + _contentType,
- Utils.extractByteArrayFromBody(_httpRes));
- }
- }
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "429")) {
- if (Utils.contentTypeMatches(_contentType, "application/json")) {
- ApiError _out = Utils.mapper().readValue(
- Utils.toUtf8AndClose(_httpRes.body()),
- new TypeReference() {});
- throw _out;
- } else {
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected content-type received: " + _contentType,
- Utils.extractByteArrayFromBody(_httpRes));
- }
- }
- if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) {
- // no content
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "API error occurred",
- Utils.extractByteArrayFromBody(_httpRes));
- }
- throw new SDKError(
- _httpRes,
- _httpRes.statusCode(),
- "Unexpected status code received: " + _httpRes.statusCode(),
- Utils.extractByteArrayFromBody(_httpRes));
- }
-
-
-
/**
* Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`.
* @return The call builder
diff --git a/src/main/java/dev/hathora/cloud_sdk/SDKConfiguration.java b/src/main/java/dev/hathora/cloud_sdk/SDKConfiguration.java
index 14531d8..22590bc 100644
--- a/src/main/java/dev/hathora/cloud_sdk/SDKConfiguration.java
+++ b/src/main/java/dev/hathora/cloud_sdk/SDKConfiguration.java
@@ -25,8 +25,8 @@ public Optional securitySource() {
public int serverIdx = 0;
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.0.1";
- public static final String SDK_VERSION = "2.10.11";
- public static final String GEN_VERSION = "2.442.11";
+ public static final String SDK_VERSION = "2.10.12";
+ public static final String GEN_VERSION = "2.445.1";
private static final String BASE_PACKAGE = "dev.hathora.cloud_sdk";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequest.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequest.java
deleted file mode 100644
index 797af8d..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequest.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.core.type.TypeReference;
-import dev.hathora.cloud_sdk.models.shared.Region;
-import dev.hathora.cloud_sdk.utils.LazySingletonValue;
-import dev.hathora.cloud_sdk.utils.SpeakeasyMetadata;
-import dev.hathora.cloud_sdk.utils.Utils;
-import java.lang.Boolean;
-import java.lang.Integer;
-import java.lang.Override;
-import java.lang.String;
-import java.lang.SuppressWarnings;
-import java.util.Objects;
-import java.util.Optional;
-
-
-public class GetLogsForAppRequest {
-
- @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")
- private Optional appId;
-
- @SpeakeasyMetadata("queryParam:style=form,explode=true,name=follow")
- private Optional follow;
-
- @SpeakeasyMetadata("queryParam:style=form,explode=true,name=region")
- private Optional extends Region> region;
-
- @SpeakeasyMetadata("queryParam:style=form,explode=true,name=tailLines")
- private Optional tailLines;
-
- @JsonCreator
- public GetLogsForAppRequest(
- Optional appId,
- Optional follow,
- Optional extends Region> region,
- Optional tailLines) {
- Utils.checkNotNull(appId, "appId");
- Utils.checkNotNull(follow, "follow");
- Utils.checkNotNull(region, "region");
- Utils.checkNotNull(tailLines, "tailLines");
- this.appId = appId;
- this.follow = follow;
- this.region = region;
- this.tailLines = tailLines;
- }
-
- public GetLogsForAppRequest() {
- this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
- }
-
- @JsonIgnore
- public Optional appId() {
- return appId;
- }
-
- @JsonIgnore
- public Optional follow() {
- return follow;
- }
-
- @SuppressWarnings("unchecked")
- @JsonIgnore
- public Optional region() {
- return (Optional) region;
- }
-
- @JsonIgnore
- public Optional tailLines() {
- return tailLines;
- }
-
- public final static Builder builder() {
- return new Builder();
- }
-
- public GetLogsForAppRequest withAppId(String appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = Optional.ofNullable(appId);
- return this;
- }
-
- public GetLogsForAppRequest withAppId(Optional appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = appId;
- return this;
- }
-
- public GetLogsForAppRequest withFollow(boolean follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = Optional.ofNullable(follow);
- return this;
- }
-
- public GetLogsForAppRequest withFollow(Optional follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = follow;
- return this;
- }
-
- public GetLogsForAppRequest withRegion(Region region) {
- Utils.checkNotNull(region, "region");
- this.region = Optional.ofNullable(region);
- return this;
- }
-
- public GetLogsForAppRequest withRegion(Optional extends Region> region) {
- Utils.checkNotNull(region, "region");
- this.region = region;
- return this;
- }
-
- public GetLogsForAppRequest withTailLines(int tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = Optional.ofNullable(tailLines);
- return this;
- }
-
- public GetLogsForAppRequest withTailLines(Optional tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = tailLines;
- return this;
- }
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GetLogsForAppRequest other = (GetLogsForAppRequest) o;
- return
- Objects.deepEquals(this.appId, other.appId) &&
- Objects.deepEquals(this.follow, other.follow) &&
- Objects.deepEquals(this.region, other.region) &&
- Objects.deepEquals(this.tailLines, other.tailLines);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- appId,
- follow,
- region,
- tailLines);
- }
-
- @Override
- public String toString() {
- return Utils.toString(GetLogsForAppRequest.class,
- "appId", appId,
- "follow", follow,
- "region", region,
- "tailLines", tailLines);
- }
-
- public final static class Builder {
-
- private Optional appId = Optional.empty();
-
- private Optional follow = Optional.empty();
-
- private Optional extends Region> region = Optional.empty();
-
- private Optional tailLines;
-
- private Builder() {
- // force use of static builder() method
- }
-
- public Builder appId(String appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = Optional.ofNullable(appId);
- return this;
- }
-
- public Builder appId(Optional appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = appId;
- return this;
- }
-
- public Builder follow(boolean follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = Optional.ofNullable(follow);
- return this;
- }
-
- public Builder follow(Optional follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = follow;
- return this;
- }
-
- public Builder region(Region region) {
- Utils.checkNotNull(region, "region");
- this.region = Optional.ofNullable(region);
- return this;
- }
-
- public Builder region(Optional extends Region> region) {
- Utils.checkNotNull(region, "region");
- this.region = region;
- return this;
- }
-
- public Builder tailLines(int tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = Optional.ofNullable(tailLines);
- return this;
- }
-
- public Builder tailLines(Optional tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = tailLines;
- return this;
- }
-
- public GetLogsForAppRequest build() {
- if (tailLines == null) {
- tailLines = _SINGLETON_VALUE_TailLines.value();
- } return new GetLogsForAppRequest(
- appId,
- follow,
- region,
- tailLines);
- }
-
- private static final LazySingletonValue> _SINGLETON_VALUE_TailLines =
- new LazySingletonValue<>(
- "tailLines",
- "100",
- new TypeReference>() {});
- }
-}
-
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequestBuilder.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequestBuilder.java
deleted file mode 100644
index aebcc4b..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppRequestBuilder.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-import dev.hathora.cloud_sdk.utils.Utils;
-
-public class GetLogsForAppRequestBuilder {
-
- private GetLogsForAppRequest request;
- private final SDKMethodInterfaces.MethodCallGetLogsForApp sdk;
-
- public GetLogsForAppRequestBuilder(SDKMethodInterfaces.MethodCallGetLogsForApp sdk) {
- this.sdk = sdk;
- }
-
- public GetLogsForAppRequestBuilder request(GetLogsForAppRequest request) {
- Utils.checkNotNull(request, "request");
- this.request = request;
- return this;
- }
-
- public GetLogsForAppResponse call() throws Exception {
-
- return sdk.getLogsForApp(
- request);
- }
-}
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppResponse.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppResponse.java
deleted file mode 100644
index 5e60ff0..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForAppResponse.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import dev.hathora.cloud_sdk.utils.Response;
-import dev.hathora.cloud_sdk.utils.Utils;
-import java.io.InputStream;
-import java.lang.Integer;
-import java.lang.Override;
-import java.lang.String;
-import java.lang.SuppressWarnings;
-import java.net.http.HttpResponse;
-import java.util.Objects;
-import java.util.Optional;
-
-
-public class GetLogsForAppResponse implements Response {
-
- /**
- * HTTP response content type for this operation
- */
- private String contentType;
-
- /**
- * HTTP response status code for this operation
- */
- private int statusCode;
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- private HttpResponse rawResponse;
-
- /**
- * Ok
- */
- private Optional extends InputStream> responseStream;
-
- @JsonCreator
- public GetLogsForAppResponse(
- String contentType,
- int statusCode,
- HttpResponse rawResponse,
- Optional extends InputStream> responseStream) {
- Utils.checkNotNull(contentType, "contentType");
- Utils.checkNotNull(statusCode, "statusCode");
- Utils.checkNotNull(rawResponse, "rawResponse");
- Utils.checkNotNull(responseStream, "responseStream");
- this.contentType = contentType;
- this.statusCode = statusCode;
- this.rawResponse = rawResponse;
- this.responseStream = responseStream;
- }
-
- public GetLogsForAppResponse(
- String contentType,
- int statusCode,
- HttpResponse rawResponse) {
- this(contentType, statusCode, rawResponse, Optional.empty());
- }
-
- /**
- * HTTP response content type for this operation
- */
- @JsonIgnore
- public String contentType() {
- return contentType;
- }
-
- /**
- * HTTP response status code for this operation
- */
- @JsonIgnore
- public int statusCode() {
- return statusCode;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- @JsonIgnore
- public HttpResponse rawResponse() {
- return rawResponse;
- }
-
- /**
- * Ok
- */
- @SuppressWarnings("unchecked")
- @JsonIgnore
- public Optional responseStream() {
- return (Optional) responseStream;
- }
-
- public final static Builder builder() {
- return new Builder();
- }
-
- /**
- * HTTP response content type for this operation
- */
- public GetLogsForAppResponse withContentType(String contentType) {
- Utils.checkNotNull(contentType, "contentType");
- this.contentType = contentType;
- return this;
- }
-
- /**
- * HTTP response status code for this operation
- */
- public GetLogsForAppResponse withStatusCode(int statusCode) {
- Utils.checkNotNull(statusCode, "statusCode");
- this.statusCode = statusCode;
- return this;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- public GetLogsForAppResponse withRawResponse(HttpResponse rawResponse) {
- Utils.checkNotNull(rawResponse, "rawResponse");
- this.rawResponse = rawResponse;
- return this;
- }
-
- /**
- * Ok
- */
- public GetLogsForAppResponse withResponseStream(InputStream responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = Optional.ofNullable(responseStream);
- return this;
- }
-
- /**
- * Ok
- */
- public GetLogsForAppResponse withResponseStream(Optional extends InputStream> responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = responseStream;
- return this;
- }
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GetLogsForAppResponse other = (GetLogsForAppResponse) o;
- return
- Objects.deepEquals(this.contentType, other.contentType) &&
- Objects.deepEquals(this.statusCode, other.statusCode) &&
- Objects.deepEquals(this.rawResponse, other.rawResponse) &&
- Objects.deepEquals(this.responseStream, other.responseStream);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- contentType,
- statusCode,
- rawResponse,
- responseStream);
- }
-
- @Override
- public String toString() {
- return Utils.toString(GetLogsForAppResponse.class,
- "contentType", contentType,
- "statusCode", statusCode,
- "rawResponse", rawResponse,
- "responseStream", responseStream);
- }
-
- public final static class Builder {
-
- private String contentType;
-
- private Integer statusCode;
-
- private HttpResponse rawResponse;
-
- private Optional extends InputStream> responseStream = Optional.empty();
-
- private Builder() {
- // force use of static builder() method
- }
-
- /**
- * HTTP response content type for this operation
- */
- public Builder contentType(String contentType) {
- Utils.checkNotNull(contentType, "contentType");
- this.contentType = contentType;
- return this;
- }
-
- /**
- * HTTP response status code for this operation
- */
- public Builder statusCode(int statusCode) {
- Utils.checkNotNull(statusCode, "statusCode");
- this.statusCode = statusCode;
- return this;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- public Builder rawResponse(HttpResponse rawResponse) {
- Utils.checkNotNull(rawResponse, "rawResponse");
- this.rawResponse = rawResponse;
- return this;
- }
-
- /**
- * Ok
- */
- public Builder responseStream(InputStream responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = Optional.ofNullable(responseStream);
- return this;
- }
-
- /**
- * Ok
- */
- public Builder responseStream(Optional extends InputStream> responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = responseStream;
- return this;
- }
-
- public GetLogsForAppResponse build() {
- return new GetLogsForAppResponse(
- contentType,
- statusCode,
- rawResponse,
- responseStream);
- }
- }
-}
-
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequest.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequest.java
deleted file mode 100644
index 2b0417e..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequest.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.core.type.TypeReference;
-import dev.hathora.cloud_sdk.utils.LazySingletonValue;
-import dev.hathora.cloud_sdk.utils.SpeakeasyMetadata;
-import dev.hathora.cloud_sdk.utils.Utils;
-import java.lang.Boolean;
-import java.lang.Integer;
-import java.lang.Override;
-import java.lang.String;
-import java.util.Objects;
-import java.util.Optional;
-
-
-public class GetLogsForDeploymentRequest {
-
- @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")
- private Optional appId;
-
- @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=deploymentId")
- private int deploymentId;
-
- @SpeakeasyMetadata("queryParam:style=form,explode=true,name=follow")
- private Optional follow;
-
- @SpeakeasyMetadata("queryParam:style=form,explode=true,name=tailLines")
- private Optional tailLines;
-
- @JsonCreator
- public GetLogsForDeploymentRequest(
- Optional appId,
- int deploymentId,
- Optional follow,
- Optional tailLines) {
- Utils.checkNotNull(appId, "appId");
- Utils.checkNotNull(deploymentId, "deploymentId");
- Utils.checkNotNull(follow, "follow");
- Utils.checkNotNull(tailLines, "tailLines");
- this.appId = appId;
- this.deploymentId = deploymentId;
- this.follow = follow;
- this.tailLines = tailLines;
- }
-
- public GetLogsForDeploymentRequest(
- int deploymentId) {
- this(Optional.empty(), deploymentId, Optional.empty(), Optional.empty());
- }
-
- @JsonIgnore
- public Optional appId() {
- return appId;
- }
-
- @JsonIgnore
- public int deploymentId() {
- return deploymentId;
- }
-
- @JsonIgnore
- public Optional follow() {
- return follow;
- }
-
- @JsonIgnore
- public Optional tailLines() {
- return tailLines;
- }
-
- public final static Builder builder() {
- return new Builder();
- }
-
- public GetLogsForDeploymentRequest withAppId(String appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = Optional.ofNullable(appId);
- return this;
- }
-
- public GetLogsForDeploymentRequest withAppId(Optional appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = appId;
- return this;
- }
-
- public GetLogsForDeploymentRequest withDeploymentId(int deploymentId) {
- Utils.checkNotNull(deploymentId, "deploymentId");
- this.deploymentId = deploymentId;
- return this;
- }
-
- public GetLogsForDeploymentRequest withFollow(boolean follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = Optional.ofNullable(follow);
- return this;
- }
-
- public GetLogsForDeploymentRequest withFollow(Optional follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = follow;
- return this;
- }
-
- public GetLogsForDeploymentRequest withTailLines(int tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = Optional.ofNullable(tailLines);
- return this;
- }
-
- public GetLogsForDeploymentRequest withTailLines(Optional tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = tailLines;
- return this;
- }
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GetLogsForDeploymentRequest other = (GetLogsForDeploymentRequest) o;
- return
- Objects.deepEquals(this.appId, other.appId) &&
- Objects.deepEquals(this.deploymentId, other.deploymentId) &&
- Objects.deepEquals(this.follow, other.follow) &&
- Objects.deepEquals(this.tailLines, other.tailLines);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- appId,
- deploymentId,
- follow,
- tailLines);
- }
-
- @Override
- public String toString() {
- return Utils.toString(GetLogsForDeploymentRequest.class,
- "appId", appId,
- "deploymentId", deploymentId,
- "follow", follow,
- "tailLines", tailLines);
- }
-
- public final static class Builder {
-
- private Optional appId = Optional.empty();
-
- private Integer deploymentId;
-
- private Optional follow = Optional.empty();
-
- private Optional tailLines;
-
- private Builder() {
- // force use of static builder() method
- }
-
- public Builder appId(String appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = Optional.ofNullable(appId);
- return this;
- }
-
- public Builder appId(Optional appId) {
- Utils.checkNotNull(appId, "appId");
- this.appId = appId;
- return this;
- }
-
- public Builder deploymentId(int deploymentId) {
- Utils.checkNotNull(deploymentId, "deploymentId");
- this.deploymentId = deploymentId;
- return this;
- }
-
- public Builder follow(boolean follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = Optional.ofNullable(follow);
- return this;
- }
-
- public Builder follow(Optional follow) {
- Utils.checkNotNull(follow, "follow");
- this.follow = follow;
- return this;
- }
-
- public Builder tailLines(int tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = Optional.ofNullable(tailLines);
- return this;
- }
-
- public Builder tailLines(Optional tailLines) {
- Utils.checkNotNull(tailLines, "tailLines");
- this.tailLines = tailLines;
- return this;
- }
-
- public GetLogsForDeploymentRequest build() {
- if (tailLines == null) {
- tailLines = _SINGLETON_VALUE_TailLines.value();
- } return new GetLogsForDeploymentRequest(
- appId,
- deploymentId,
- follow,
- tailLines);
- }
-
- private static final LazySingletonValue> _SINGLETON_VALUE_TailLines =
- new LazySingletonValue<>(
- "tailLines",
- "100",
- new TypeReference>() {});
- }
-}
-
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequestBuilder.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequestBuilder.java
deleted file mode 100644
index c4c4b54..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentRequestBuilder.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-import dev.hathora.cloud_sdk.utils.Utils;
-
-public class GetLogsForDeploymentRequestBuilder {
-
- private GetLogsForDeploymentRequest request;
- private final SDKMethodInterfaces.MethodCallGetLogsForDeployment sdk;
-
- public GetLogsForDeploymentRequestBuilder(SDKMethodInterfaces.MethodCallGetLogsForDeployment sdk) {
- this.sdk = sdk;
- }
-
- public GetLogsForDeploymentRequestBuilder request(GetLogsForDeploymentRequest request) {
- Utils.checkNotNull(request, "request");
- this.request = request;
- return this;
- }
-
- public GetLogsForDeploymentResponse call() throws Exception {
-
- return sdk.getLogsForDeployment(
- request);
- }
-}
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentResponse.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentResponse.java
deleted file mode 100644
index 8990e16..0000000
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/GetLogsForDeploymentResponse.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/*
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
- */
-
-package dev.hathora.cloud_sdk.models.operations;
-
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import dev.hathora.cloud_sdk.utils.Response;
-import dev.hathora.cloud_sdk.utils.Utils;
-import java.io.InputStream;
-import java.lang.Integer;
-import java.lang.Override;
-import java.lang.String;
-import java.lang.SuppressWarnings;
-import java.net.http.HttpResponse;
-import java.util.Objects;
-import java.util.Optional;
-
-
-public class GetLogsForDeploymentResponse implements Response {
-
- /**
- * HTTP response content type for this operation
- */
- private String contentType;
-
- /**
- * HTTP response status code for this operation
- */
- private int statusCode;
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- private HttpResponse rawResponse;
-
- /**
- * Ok
- */
- private Optional extends InputStream> responseStream;
-
- @JsonCreator
- public GetLogsForDeploymentResponse(
- String contentType,
- int statusCode,
- HttpResponse rawResponse,
- Optional extends InputStream> responseStream) {
- Utils.checkNotNull(contentType, "contentType");
- Utils.checkNotNull(statusCode, "statusCode");
- Utils.checkNotNull(rawResponse, "rawResponse");
- Utils.checkNotNull(responseStream, "responseStream");
- this.contentType = contentType;
- this.statusCode = statusCode;
- this.rawResponse = rawResponse;
- this.responseStream = responseStream;
- }
-
- public GetLogsForDeploymentResponse(
- String contentType,
- int statusCode,
- HttpResponse rawResponse) {
- this(contentType, statusCode, rawResponse, Optional.empty());
- }
-
- /**
- * HTTP response content type for this operation
- */
- @JsonIgnore
- public String contentType() {
- return contentType;
- }
-
- /**
- * HTTP response status code for this operation
- */
- @JsonIgnore
- public int statusCode() {
- return statusCode;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- @JsonIgnore
- public HttpResponse rawResponse() {
- return rawResponse;
- }
-
- /**
- * Ok
- */
- @SuppressWarnings("unchecked")
- @JsonIgnore
- public Optional responseStream() {
- return (Optional) responseStream;
- }
-
- public final static Builder builder() {
- return new Builder();
- }
-
- /**
- * HTTP response content type for this operation
- */
- public GetLogsForDeploymentResponse withContentType(String contentType) {
- Utils.checkNotNull(contentType, "contentType");
- this.contentType = contentType;
- return this;
- }
-
- /**
- * HTTP response status code for this operation
- */
- public GetLogsForDeploymentResponse withStatusCode(int statusCode) {
- Utils.checkNotNull(statusCode, "statusCode");
- this.statusCode = statusCode;
- return this;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- public GetLogsForDeploymentResponse withRawResponse(HttpResponse rawResponse) {
- Utils.checkNotNull(rawResponse, "rawResponse");
- this.rawResponse = rawResponse;
- return this;
- }
-
- /**
- * Ok
- */
- public GetLogsForDeploymentResponse withResponseStream(InputStream responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = Optional.ofNullable(responseStream);
- return this;
- }
-
- /**
- * Ok
- */
- public GetLogsForDeploymentResponse withResponseStream(Optional extends InputStream> responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = responseStream;
- return this;
- }
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GetLogsForDeploymentResponse other = (GetLogsForDeploymentResponse) o;
- return
- Objects.deepEquals(this.contentType, other.contentType) &&
- Objects.deepEquals(this.statusCode, other.statusCode) &&
- Objects.deepEquals(this.rawResponse, other.rawResponse) &&
- Objects.deepEquals(this.responseStream, other.responseStream);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- contentType,
- statusCode,
- rawResponse,
- responseStream);
- }
-
- @Override
- public String toString() {
- return Utils.toString(GetLogsForDeploymentResponse.class,
- "contentType", contentType,
- "statusCode", statusCode,
- "rawResponse", rawResponse,
- "responseStream", responseStream);
- }
-
- public final static class Builder {
-
- private String contentType;
-
- private Integer statusCode;
-
- private HttpResponse rawResponse;
-
- private Optional extends InputStream> responseStream = Optional.empty();
-
- private Builder() {
- // force use of static builder() method
- }
-
- /**
- * HTTP response content type for this operation
- */
- public Builder contentType(String contentType) {
- Utils.checkNotNull(contentType, "contentType");
- this.contentType = contentType;
- return this;
- }
-
- /**
- * HTTP response status code for this operation
- */
- public Builder statusCode(int statusCode) {
- Utils.checkNotNull(statusCode, "statusCode");
- this.statusCode = statusCode;
- return this;
- }
-
- /**
- * Raw HTTP response; suitable for custom response parsing
- */
- public Builder rawResponse(HttpResponse rawResponse) {
- Utils.checkNotNull(rawResponse, "rawResponse");
- this.rawResponse = rawResponse;
- return this;
- }
-
- /**
- * Ok
- */
- public Builder responseStream(InputStream responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = Optional.ofNullable(responseStream);
- return this;
- }
-
- /**
- * Ok
- */
- public Builder responseStream(Optional extends InputStream> responseStream) {
- Utils.checkNotNull(responseStream, "responseStream");
- this.responseStream = responseStream;
- return this;
- }
-
- public GetLogsForDeploymentResponse build() {
- return new GetLogsForDeploymentResponse(
- contentType,
- statusCode,
- rawResponse,
- responseStream);
- }
- }
-}
-
diff --git a/src/main/java/dev/hathora/cloud_sdk/models/operations/SDKMethodInterfaces.java b/src/main/java/dev/hathora/cloud_sdk/models/operations/SDKMethodInterfaces.java
index f479bed..02cca76 100644
--- a/src/main/java/dev/hathora/cloud_sdk/models/operations/SDKMethodInterfaces.java
+++ b/src/main/java/dev/hathora/cloud_sdk/models/operations/SDKMethodInterfaces.java
@@ -499,18 +499,6 @@ DownloadLogForProcessResponse downloadLogForProcess(
}
- public interface MethodCallGetLogsForApp {
- GetLogsForAppResponse getLogsForApp(
- GetLogsForAppRequest request) throws Exception;
- }
-
-
- public interface MethodCallGetLogsForDeployment {
- GetLogsForDeploymentResponse getLogsForDeployment(
- GetLogsForDeploymentRequest request) throws Exception;
- }
-
-
public interface MethodCallGetLogsForProcess {
GetLogsForProcessResponse getLogsForProcess(
GetLogsForProcessRequest request) throws Exception;