Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 30, 2024
1 parent 06a5543 commit d849236
Show file tree
Hide file tree
Showing 18 changed files with 191 additions and 43 deletions.
16 changes: 9 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 7b361cb9-7960-4aa9-aefb-1d3ff2bbe54b
management:
docChecksum: 21a416a1b30cc2a28c7e1d4dfa79202b
docChecksum: f979120c4d53a579602f5709907e5abe
docVersion: 0.0.1
speakeasyVersion: 1.422.1
generationVersion: 2.438.15
releaseVersion: 2.10.10
configChecksum: 6b7104325f5ea5f2d1544008b829b03e
speakeasyVersion: 1.423.2
generationVersion: 2.442.11
releaseVersion: 2.10.11
configChecksum: b265ddf33916bd22a8395a0c68599893
repoURL: https://github.com/hathora/cloud-sdk-java.git
repoSubDirectory: .
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.30.5
core: 3.30.6
deprecations: 2.81.1
downloadStreams: 0.1.1
flattening: 2.81.1
Expand Down Expand Up @@ -1410,7 +1410,7 @@ examples:
path:
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"
requestBody:
application/json: {"additionalContainerPorts": [], "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "containerPort": 4000, "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tcp"}
application/json: {"additionalContainerPorts": [], "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "containerPort": 4000, "deploymentTag": "alpha", "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tcp"}
responses:
"201":
application/json: {"additionalContainerPorts": [{"name": "default", "port": 8000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "buildTag": "0.1.14-14c793", "createdAt": "2022-07-14T04:14:25.503Z", "createdBy": "[email protected]", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tcp"}, "deploymentId": "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "env": [], "idleTimeoutEnabled": false, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3}
Expand All @@ -1432,6 +1432,8 @@ examples:
parameters:
path:
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"
query:
deploymentTag: "alpha"
responses:
"200":
application/json: {"deployments": []}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.422.1
speakeasyVersion: 1.423.2
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:5e452b25180f3f633df5c9b49542037e7549d735502f0a3deb1342c65bdc7948
sourceBlobDigest: sha256:17d496af184c2a1507c89f3b3fc6068e830536d7ef6757a35fb6541a68f71bb3
sourceRevisionDigest: sha256:4ed168774771083b9e20e73de81902e64e270f51eee9ecfe662119028f43d976
sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
tags:
- latest
- main
targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:5e452b25180f3f633df5c9b49542037e7549d735502f0a3deb1342c65bdc7948
sourceBlobDigest: sha256:17d496af184c2a1507c89f3b3fc6068e830536d7ef6757a35fb6541a68f71bb3
sourceRevisionDigest: sha256:4ed168774771083b9e20e73de81902e64e270f51eee9ecfe662119028f43d976
sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
codeSamplesNamespace: code-samples-java-hathora-java
codeSamplesRevisionDigest: sha256:58b5b695a738ce88ccd4e55a268403ffdfec65b01b27cddc245a2d0630c3b68e
codeSamplesRevisionDigest: sha256:db42a9fe7d004f1056784b774b5b2c1d881bdf15848009309090773c41c2638d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'dev.hathora:cloud-sdk:2.10.10'
implementation 'dev.hathora:cloud-sdk:2.10.11'
```

Maven:
```xml
<dependency>
<groupId>dev.hathora</groupId>
<artifactId>cloud-sdk</artifactId>
<version>2.10.10</version>
<version>2.10.11</version>
</dependency>
```

Expand Down Expand Up @@ -189,7 +189,7 @@ Deleting a build that is actively build used by an app's deployment will cause f

* [createDeployment](docs/sdks/deploymentsv3/README.md#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected.
* [getDeployment](docs/sdks/deploymentsv3/README.md#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment).
* [getDeployments](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).
* [getDeployments](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application), optionally filtered by deploymentTag.
* [getLatestDeployment](docs/sdks/deploymentsv3/README.md#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).

### [~~discoveryV1()~~](docs/sdks/discoveryv1/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,4 +799,14 @@ Based on:
### Generated
- [java v2.10.10] .
### Releases
- [Maven Central v2.10.10] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.10 - .
- [Maven Central v2.10.10] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.10 - .

## 2024-10-30 00:07:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.423.2 (2.442.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.10.11] .
### Releases
- [Maven Central v2.10.11] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.11 - .
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}

group = "dev.hathora"
version = "2.10.10"
version = "2.10.11"

sourcesJar {
archiveBaseName = "cloud-sdk"
Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.hathora'
artifactId = 'cloud-sdk'
version = '2.10.10'
version = '2.10.11'

from components.java

Expand Down
4 changes: 2 additions & 2 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ actions:
"x-codeSamples":
- "lang": "java"
"label": "GetDeployments"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.GetDeploymentsResponse;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport java.lang.Exception;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .call();\n\n if (res.deploymentsV3Page().isPresent()) {\n // handle response\n }\n }\n}"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.GetDeploymentsResponse;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport java.lang.Exception;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n GetDeploymentsResponse res = sdk.deploymentsV3().getDeployments()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .deploymentTag(\"alpha\")\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":
- "lang": "java"
"label": "CreateDeployment"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.CreateDeploymentResponse;\nimport dev.hathora.cloud_sdk.models.shared.ContainerPort;\nimport dev.hathora.cloud_sdk.models.shared.DeploymentConfigV3;\nimport dev.hathora.cloud_sdk.models.shared.DeploymentConfigV3Env;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport dev.hathora.cloud_sdk.models.shared.TransportType;\nimport java.lang.Exception;\nimport java.util.List;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n CreateDeploymentResponse res = sdk.deploymentsV3().createDeployment()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .deploymentConfigV3(DeploymentConfigV3.builder()\n .idleTimeoutEnabled(false)\n .env(List.of(\n DeploymentConfigV3Env.builder()\n .value(\"TRUE\")\n .name(\"EULA\")\n .build()))\n .roomsPerProcess(3)\n .transportType(TransportType.UDP)\n .containerPort(4000)\n .requestedMemoryMB(1024d)\n .requestedCPU(0.5d)\n .buildId(\"bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\")\n .additionalContainerPorts(List.of(\n ContainerPort.builder()\n .transportType(TransportType.TCP)\n .port(8000)\n .name(\"default\")\n .build()))\n .build())\n .call();\n\n if (res.deploymentV3().isPresent()) {\n // handle response\n }\n }\n}"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.CreateDeploymentResponse;\nimport dev.hathora.cloud_sdk.models.shared.ContainerPort;\nimport dev.hathora.cloud_sdk.models.shared.DeploymentConfigV3;\nimport dev.hathora.cloud_sdk.models.shared.DeploymentConfigV3Env;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport dev.hathora.cloud_sdk.models.shared.TransportType;\nimport java.lang.Exception;\nimport java.util.List;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n CreateDeploymentResponse res = sdk.deploymentsV3().createDeployment()\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .deploymentConfigV3(DeploymentConfigV3.builder()\n .idleTimeoutEnabled(false)\n .env(List.of(\n DeploymentConfigV3Env.builder()\n .value(\"TRUE\")\n .name(\"EULA\")\n .build()))\n .roomsPerProcess(3)\n .transportType(TransportType.UDP)\n .containerPort(4000)\n .requestedMemoryMB(1024d)\n .requestedCPU(0.5d)\n .buildId(\"bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\")\n .deploymentTag(\"alpha\")\n .additionalContainerPorts(List.of(\n ContainerPort.builder()\n .transportType(TransportType.TCP)\n .port(8000)\n .name(\"default\")\n .build()))\n .build())\n .call();\n\n if (res.deploymentV3().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/deployments/v3/apps/{appId}/deployments/latest"]["get"]
update:
"x-codeSamples":
Expand Down
3 changes: 2 additions & 1 deletion docs/models/operations/GetDeploymentsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

| Field | Type | Required | Description | Example |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `appId` | *Optional\<String>* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `appId` | *Optional\<String>* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `deploymentTag` | *Optional\<String>* | :heavy_minus_sign: | N/A | alpha |
1 change: 1 addition & 0 deletions docs/models/shared/DeploymentConfigV3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| `additionalContainerPorts` | List\<[ContainerPort](../../models/shared/ContainerPort.md)> | :heavy_minus_sign: | Additional ports your server listens on. | |
| `buildId` | *String* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5 |
| `containerPort` | *int* | :heavy_check_mark: | Default port the server listens on. | 4000 |
| `deploymentTag` | *Optional\<String>* | :heavy_minus_sign: | Arbitrary metadata associated with a deployment. | alpha |
| `env` | List\<[DeploymentConfigV3Env](../../models/shared/DeploymentConfigV3Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | |
| `idleTimeoutEnabled` | *boolean* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms<br/>for five minutes. | |
| `requestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 |
Expand Down
Loading

0 comments on commit d849236

Please sign in to comment.