Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,606 changes: 8,005 additions & 1,601 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.658.2
speakeasyVersion: 1.680.11
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:846f82b2c5f534ddfa5eaf03dae4c50d9d0d5973f953a30460951980f5a99238
sourceBlobDigest: sha256:a83dd5d2f6be3733c4c0cfde58d5b8811cff8746f24cc3baf3c90f78a45c1e30
sourceRevisionDigest: sha256:8fa347e4069014a4fdcb55e52b539cebc10e41024978fc0303bc969fe1185e3d
sourceBlobDigest: sha256:3e99b656bd5f1fea1667e04552422926478984716188b1f4004de984afcb0d56
tags:
- latest
- speakeasy-sdk-regen-1756426117
- speakeasy-sdk-regen-1763683744
- 0.0.1
targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:846f82b2c5f534ddfa5eaf03dae4c50d9d0d5973f953a30460951980f5a99238
sourceBlobDigest: sha256:a83dd5d2f6be3733c4c0cfde58d5b8811cff8746f24cc3baf3c90f78a45c1e30
sourceRevisionDigest: sha256:8fa347e4069014a4fdcb55e52b539cebc10e41024978fc0303bc969fe1185e3d
sourceBlobDigest: sha256:3e99b656bd5f1fea1667e04552422926478984716188b1f4004de984afcb0d56
codeSamplesNamespace: code-samples-java-hathora-java
codeSamplesRevisionDigest: sha256:0fc45c41414e243f3d1b781442c3b054bc035b8ac1e04c3d3b26663a2aedeed0
codeSamplesRevisionDigest: sha256:124ae8125a6fa856d90af55ac038e1d62a4737b34042cc9608be854e91de43df
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
66 changes: 35 additions & 31 deletions README.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1179,4 +1179,14 @@ Based on:
### Generated
- [java v3.3.0] .
### Releases
- [Maven Central v3.3.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.3.0 - .
- [Maven Central v3.3.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.3.0 - .

## 2026-01-02 00:09:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.680.11 (2.788.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v3.4.0] .
### Releases
- [Maven Central v3.4.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.4.0 - .
14 changes: 7 additions & 7 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ actions:
"x-codeSamples":
- "lang": "java"
"label": "GetDeployments"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetDeploymentsResponse;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .deploymentTag(\"alpha\")\n .buildTag(\"0.1.14-14c793\")\n .call();\n\n if (res.deploymentsV3Page().isPresent()) {\n // handle response\n }\n }\n}"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetDeploymentsRequest;\nimport org.openapis.openapi.models.operations.GetDeploymentsResponse;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetDeploymentsRequest req = GetDeploymentsRequest.builder()\n .deploymentTag(\"alpha\")\n .buildTag(\"0.1.14-14c793\")\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .request(req)\n .call();\n\n if (res.deploymentsV3Page().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/deployments/v3/apps/{appId}/deployments"]["post"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -243,18 +243,18 @@ actions:
- "lang": "java"
"label": "GetFleetRegion"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetFleetRegionResponse;\nimport org.openapis.openapi.models.shared.Region;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetFleetRegionResponse res = sdk.fleetsV2().getFleetRegion()\n .fleetId(\"<id>\")\n .region(Region.SINGAPORE)\n .call();\n\n if (res.fleetRegion().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}"]["put"]
update:
"x-codeSamples":
- "lang": "java"
"label": "UpdateFleetRegion"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionRequest;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionResponse;\nimport org.openapis.openapi.models.shared.*;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n UpdateFleetRegionRequest req = UpdateFleetRegionRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .fleetRegionConfig(FleetRegionConfig.builder()\n .cloudMinVcpus(503995)\n .build())\n .build();\n\n UpdateFleetRegionResponse res = sdk.fleetsV2().updateFleetRegion()\n .request(req)\n .call();\n\n // handle response\n }\n}"
- target: $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}/metrics"]["get"]
update:
"x-codeSamples":
- "lang": "java"
"label": "GetFleetRegionMetrics"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.GetFleetRegionMetricsRequest;\nimport org.openapis.openapi.models.operations.GetFleetRegionMetricsResponse;\nimport org.openapis.openapi.models.shared.Region;\nimport org.openapis.openapi.models.shared.Security;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n GetFleetRegionMetricsRequest req = GetFleetRegionMetricsRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .build();\n\n GetFleetRegionMetricsResponse res = sdk.fleetsV2().getFleetRegionMetrics()\n .request(req)\n .call();\n\n if (res.fleetMetricsData().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/fleets/v2/fleets/{fleetId}/regions/{region}/v2"]["put"]
update:
"x-codeSamples":
- "lang": "java"
"label": "UpdateFleetRegion"
"source": "package hello.world;\n\nimport java.lang.Exception;\nimport org.openapis.openapi.HathoraCloud;\nimport org.openapis.openapi.models.errors.ApiError;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionRequest;\nimport org.openapis.openapi.models.operations.UpdateFleetRegionResponse;\nimport org.openapis.openapi.models.shared.*;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .security(Security.builder()\n .hathoraDevToken(System.getenv().getOrDefault(\"HATHORA_DEV_TOKEN\", \"\"))\n .build())\n .build();\n\n UpdateFleetRegionRequest req = UpdateFleetRegionRequest.builder()\n .fleetId(\"<id>\")\n .region(Region.CHICAGO)\n .fleetRegionConfigV2(FleetRegionConfigV2.builder()\n .nodeBaseline(503995)\n .build())\n .build();\n\n UpdateFleetRegionResponse res = sdk.fleetsV2().updateFleetRegion()\n .request(req)\n .call();\n\n // handle response\n }\n}"
- target: $["paths"]["/fleets/v2/nodeShapes"]["get"]
update:
"x-codeSamples":
Expand Down
11 changes: 11 additions & 0 deletions docs/models/operations/DeprecatedUpdateFleetRegionV2Request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DeprecatedUpdateFleetRegionV2Request


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
| `fleetRegionConfig` | [FleetRegionConfig](../../models/shared/FleetRegionConfig.md) | :heavy_check_mark: | N/A | |
| `fleetId` | *String* | :heavy_check_mark: | N/A | |
| `orgId` | *Optional\<String>* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
| `region` | [Region](../../models/shared/Region.md) | :heavy_check_mark: | N/A | |
10 changes: 10 additions & 0 deletions docs/models/operations/DeprecatedUpdateFleetRegionV2Response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# DeprecatedUpdateFleetRegionV2Response


## 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 |
3 changes: 2 additions & 1 deletion docs/models/operations/GetDeploymentsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `appId` | *Optional\<String>* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `buildTag` | *Optional\<String>* | :heavy_minus_sign: | N/A | 0.1.14-14c793 |
| `deploymentTag` | *Optional\<String>* | :heavy_minus_sign: | N/A | alpha |
| `deploymentTag` | *Optional\<String>* | :heavy_minus_sign: | N/A | alpha |
| `nextPageToken` | *Optional\<String>* | :heavy_minus_sign: | N/A | |
12 changes: 6 additions & 6 deletions docs/models/operations/UpdateFleetRegionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
| `fleetRegionConfig` | [FleetRegionConfig](../../models/shared/FleetRegionConfig.md) | :heavy_check_mark: | N/A | |
| `fleetId` | *String* | :heavy_check_mark: | N/A | |
| `orgId` | *Optional\<String>* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
| `region` | [Region](../../models/shared/Region.md) | :heavy_check_mark: | N/A | |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `fleetRegionConfigV2` | [FleetRegionConfigV2](../../models/shared/FleetRegionConfigV2.md) | :heavy_check_mark: | N/A | |
| `fleetId` | *String* | :heavy_check_mark: | N/A | |
| `orgId` | *Optional\<String>* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
| `region` | [Region](../../models/shared/Region.md) | :heavy_check_mark: | N/A | |
Loading