(buildsV2())
createBuildV2Deprecated- CreateBuildV2Deprecated⚠️ DeprecatedcreateBuildWithUploadUrlV2Deprecated- CreateBuildWithUploadUrlV2Deprecated⚠️ DeprecatedcreateWithMultipartUploadsV2Deprecated- CreateWithMultipartUploadsV2Deprecated⚠️ DeprecateddeleteBuildV2Deprecated- DeleteBuildV2Deprecated⚠️ DeprecatedgetBuildInfoV2Deprecated- GetBuildInfoV2Deprecated⚠️ DeprecatedgetBuildsV2Deprecated- GetBuildsV2Deprecated⚠️ DeprecatedrunBuildV2Deprecated- RunBuildV2Deprecated⚠️ Deprecated
Creates a new build. Responds with a buildId
that you must pass to RunBuild()
to build the game server artifact. You can optionally pass in a buildTag
to associate an external version with a build.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.CreateBuildV2DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.CreateBuildParams;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
CreateBuildV2DeprecatedResponse res = sdk.buildsV2().createBuildV2Deprecated()
.createBuildParams(CreateBuildParams.builder()
.buildTag("0.1.14-14c793")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.call();
if (res.build().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
createBuildParams |
CreateBuildParams | ✔️ | N/A | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
CreateBuildV2DeprecatedResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 404, 422, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Creates a new build with uploadUrl
that can be used to upload the build to before calling runBuild
. Responds with a buildId
that you must pass to RunBuild()
to build the game server artifact. You can optionally pass in a buildTag
to associate an external version with a build.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.CreateBuildWithUploadUrlV2DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.CreateBuildParams;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
CreateBuildWithUploadUrlV2DeprecatedResponse res = sdk.buildsV2().createBuildWithUploadUrlV2Deprecated()
.createBuildParams(CreateBuildParams.builder()
.buildTag("0.1.14-14c793")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.call();
if (res.buildWithUploadUrl().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
createBuildParams |
CreateBuildParams | ✔️ | N/A | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
CreateBuildWithUploadUrlV2DeprecatedResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 404, 422, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Creates a new build with optional multipartUploadUrls
that can be used to upload larger builds in parts before calling runBuild
. Responds with a buildId
that you must pass to RunBuild()
to build the game server artifact. You can optionally pass in a buildTag
to associate an external version with a build.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.CreateWithMultipartUploadsV2DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.CreateMultipartBuildParams;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
CreateWithMultipartUploadsV2DeprecatedResponse res = sdk.buildsV2().createWithMultipartUploadsV2Deprecated()
.createMultipartBuildParams(CreateMultipartBuildParams.builder()
.buildSizeInBytes(3146.66d)
.buildId("bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5")
.buildTag("0.1.14-14c793")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.call();
if (res.buildWithMultipartUrls().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
createMultipartBuildParams |
CreateMultipartBuildParams | ✔️ | N/A | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
CreateWithMultipartUploadsV2DeprecatedResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 400, 401, 404, 422, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Delete a build. All associated metadata is deleted.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.DeleteBuildV2DeprecatedResponse;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
DeleteBuildV2DeprecatedResponse res = sdk.buildsV2().deleteBuildV2Deprecated()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.buildId(1)
.call();
// handle response
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
buildId |
int | ✔️ | N/A | 1 |
DeleteBuildV2DeprecatedResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 404, 422, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Get details for a build.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetBuildInfoV2DeprecatedResponse;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetBuildInfoV2DeprecatedResponse res = sdk.buildsV2().getBuildInfoV2Deprecated()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.buildId(1)
.call();
if (res.build().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
buildId |
int | ✔️ | N/A | 1 |
GetBuildInfoV2DeprecatedResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 404, 429 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Returns an array of builds for an application.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetBuildsV2DeprecatedResponse;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetBuildsV2DeprecatedResponse res = sdk.buildsV2().getBuildsV2Deprecated()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.call();
if (res.classes().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 404, 429 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |
Builds a game server artifact from a tarball you provide. Pass in the buildId
generated from CreateBuild()
.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.RunBuildV2DeprecatedRequestBody;
import dev.hathora.cloud_sdk.models.operations.RunBuildV2DeprecatedResponse;
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("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
RunBuildV2DeprecatedResponse res = sdk.buildsV2().runBuildV2Deprecated()
.requestBody(RunBuildV2DeprecatedRequestBody.builder()
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.buildId(1)
.call();
if (res.responseStream().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
requestBody |
RunBuildV2DeprecatedRequestBody | ✔️ | N/A | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
buildId |
int | ✔️ | N/A | 1 |
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 400, 401, 404, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |