Release v1.3.0

This commit is contained in:
Guilherme Werner 2025-12-27 10:03:42 -03:00
parent 46eec14060
commit 05878c3e24
73 changed files with 10656 additions and 4822 deletions

View file

@ -1,8 +1,8 @@
/*
* Tribufu API
* REST API to access Tribufu services.
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.3.0
* Contact: contact@tribufu.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -52,63 +52,8 @@ import com.tribufu.generated.JSON;
/**
* Game
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-26T22:04:46.763378600-03:00[America/Sao_Paulo]", comments = "Generator version: 7.12.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-27T09:52:38.593392400-03:00[America/Sao_Paulo]", comments = "Generator version: 7.12.0")
public class Game {
public static final String SERIALIZED_NAME_GAME_PORT = "game_port";
@SerializedName(SERIALIZED_NAME_GAME_PORT)
@javax.annotation.Nullable
private Integer gamePort;
public static final String SERIALIZED_NAME_QUERY_PORT = "query_port";
@SerializedName(SERIALIZED_NAME_QUERY_PORT)
@javax.annotation.Nullable
private Integer queryPort;
public static final String SERIALIZED_NAME_RCON_PORT = "rcon_port";
@SerializedName(SERIALIZED_NAME_RCON_PORT)
@javax.annotation.Nullable
private Integer rconPort;
public static final String SERIALIZED_NAME_SERVER_COUNT = "server_count";
@SerializedName(SERIALIZED_NAME_SERVER_COUNT)
@javax.annotation.Nullable
private Integer serverCount;
public static final String SERIALIZED_NAME_STEAM_APP_ID = "steam_app_id";
@SerializedName(SERIALIZED_NAME_STEAM_APP_ID)
@javax.annotation.Nullable
private Integer steamAppId;
public static final String SERIALIZED_NAME_STEAM_SERVER_APP_ID = "steam_server_app_id";
@SerializedName(SERIALIZED_NAME_STEAM_SERVER_APP_ID)
@javax.annotation.Nullable
private Integer steamServerAppId;
public static final String SERIALIZED_NAME_ENABLE_SERVERS = "enable_servers";
@SerializedName(SERIALIZED_NAME_ENABLE_SERVERS)
@javax.annotation.Nullable
private Boolean enableServers;
public static final String SERIALIZED_NAME_RUST_GAMEDIG_ID = "rust_gamedig_id";
@SerializedName(SERIALIZED_NAME_RUST_GAMEDIG_ID)
@javax.annotation.Nullable
private String rustGamedigId;
public static final String SERIALIZED_NAME_NODE_GAMEDIG_ID = "node_gamedig_id";
@SerializedName(SERIALIZED_NAME_NODE_GAMEDIG_ID)
@javax.annotation.Nullable
private String nodeGamedigId;
public static final String SERIALIZED_NAME_SERVER_CONNECT_URL = "server_connect_url";
@SerializedName(SERIALIZED_NAME_SERVER_CONNECT_URL)
@javax.annotation.Nullable
private String serverConnectUrl;
public static final String SERIALIZED_NAME_SERVER_TAGS = "server_tags";
@SerializedName(SERIALIZED_NAME_SERVER_TAGS)
@javax.annotation.Nullable
private String serverTags;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
@ -154,51 +99,11 @@ public class Game {
@javax.annotation.Nullable
private URI libraryImageUrl;
public static final String SERIALIZED_NAME_PARENT_ID = "parent_id";
@SerializedName(SERIALIZED_NAME_PARENT_ID)
@javax.annotation.Nullable
private String parentId;
public static final String SERIALIZED_NAME_SLUG = "slug";
@SerializedName(SERIALIZED_NAME_SLUG)
@javax.annotation.Nullable
private String slug;
public static final String SERIALIZED_NAME_VISIBILITY = "visibility";
@SerializedName(SERIALIZED_NAME_VISIBILITY)
@javax.annotation.Nullable
private Integer visibility;
public static final String SERIALIZED_NAME_PASSWORD = "password";
@SerializedName(SERIALIZED_NAME_PASSWORD)
@javax.annotation.Nullable
private String password;
public static final String SERIALIZED_NAME_PRIMARY = "primary";
@SerializedName(SERIALIZED_NAME_PRIMARY)
@javax.annotation.Nullable
private Integer primary;
public static final String SERIALIZED_NAME_USER_COUNT = "user_count";
@SerializedName(SERIALIZED_NAME_USER_COUNT)
@javax.annotation.Nullable
private Integer userCount;
public static final String SERIALIZED_NAME_ACHIEVEMENT_COUNT = "achievement_count";
@SerializedName(SERIALIZED_NAME_ACHIEVEMENT_COUNT)
@javax.annotation.Nullable
private Integer achievementCount;
public static final String SERIALIZED_NAME_BADGE_COUNT = "badge_count";
@SerializedName(SERIALIZED_NAME_BADGE_COUNT)
@javax.annotation.Nullable
private Integer badgeCount;
public static final String SERIALIZED_NAME_DOWNLOAD_COUNT = "download_count";
@SerializedName(SERIALIZED_NAME_DOWNLOAD_COUNT)
@javax.annotation.Nullable
private Integer downloadCount;
public static final String SERIALIZED_NAME_CREATED = "created";
@SerializedName(SERIALIZED_NAME_CREATED)
@javax.annotation.Nullable
@ -209,218 +114,44 @@ public class Game {
@javax.annotation.Nullable
private OffsetDateTime updated;
public static final String SERIALIZED_NAME_ENABLE_SERVERS = "enable_servers";
@SerializedName(SERIALIZED_NAME_ENABLE_SERVERS)
@javax.annotation.Nullable
private Boolean enableServers;
public static final String SERIALIZED_NAME_GAME_PORT = "game_port";
@SerializedName(SERIALIZED_NAME_GAME_PORT)
@javax.annotation.Nullable
private Integer gamePort;
public static final String SERIALIZED_NAME_QUERY_PORT = "query_port";
@SerializedName(SERIALIZED_NAME_QUERY_PORT)
@javax.annotation.Nullable
private Integer queryPort;
public static final String SERIALIZED_NAME_RCON_PORT = "rcon_port";
@SerializedName(SERIALIZED_NAME_RCON_PORT)
@javax.annotation.Nullable
private Integer rconPort;
public static final String SERIALIZED_NAME_GAMEDIG_ID = "gamedig_id";
@SerializedName(SERIALIZED_NAME_GAMEDIG_ID)
@javax.annotation.Nullable
private String gamedigId;
public static final String SERIALIZED_NAME_STEAM_APP_ID = "steam_app_id";
@SerializedName(SERIALIZED_NAME_STEAM_APP_ID)
@javax.annotation.Nullable
private Integer steamAppId;
public static final String SERIALIZED_NAME_STEAM_SERVER_APP_ID = "steam_server_app_id";
@SerializedName(SERIALIZED_NAME_STEAM_SERVER_APP_ID)
@javax.annotation.Nullable
private Integer steamServerAppId;
public Game() {
}
public Game gamePort(@javax.annotation.Nullable Integer gamePort) {
this.gamePort = gamePort;
return this;
}
/**
* Get gamePort
* @return gamePort
*/
@javax.annotation.Nullable
public Integer getGamePort() {
return gamePort;
}
public void setGamePort(@javax.annotation.Nullable Integer gamePort) {
this.gamePort = gamePort;
}
public Game queryPort(@javax.annotation.Nullable Integer queryPort) {
this.queryPort = queryPort;
return this;
}
/**
* Get queryPort
* @return queryPort
*/
@javax.annotation.Nullable
public Integer getQueryPort() {
return queryPort;
}
public void setQueryPort(@javax.annotation.Nullable Integer queryPort) {
this.queryPort = queryPort;
}
public Game rconPort(@javax.annotation.Nullable Integer rconPort) {
this.rconPort = rconPort;
return this;
}
/**
* Get rconPort
* @return rconPort
*/
@javax.annotation.Nullable
public Integer getRconPort() {
return rconPort;
}
public void setRconPort(@javax.annotation.Nullable Integer rconPort) {
this.rconPort = rconPort;
}
public Game serverCount(@javax.annotation.Nullable Integer serverCount) {
this.serverCount = serverCount;
return this;
}
/**
* Get serverCount
* @return serverCount
*/
@javax.annotation.Nullable
public Integer getServerCount() {
return serverCount;
}
public void setServerCount(@javax.annotation.Nullable Integer serverCount) {
this.serverCount = serverCount;
}
public Game steamAppId(@javax.annotation.Nullable Integer steamAppId) {
this.steamAppId = steamAppId;
return this;
}
/**
* Get steamAppId
* @return steamAppId
*/
@javax.annotation.Nullable
public Integer getSteamAppId() {
return steamAppId;
}
public void setSteamAppId(@javax.annotation.Nullable Integer steamAppId) {
this.steamAppId = steamAppId;
}
public Game steamServerAppId(@javax.annotation.Nullable Integer steamServerAppId) {
this.steamServerAppId = steamServerAppId;
return this;
}
/**
* Get steamServerAppId
* @return steamServerAppId
*/
@javax.annotation.Nullable
public Integer getSteamServerAppId() {
return steamServerAppId;
}
public void setSteamServerAppId(@javax.annotation.Nullable Integer steamServerAppId) {
this.steamServerAppId = steamServerAppId;
}
public Game enableServers(@javax.annotation.Nullable Boolean enableServers) {
this.enableServers = enableServers;
return this;
}
/**
* Get enableServers
* @return enableServers
*/
@javax.annotation.Nullable
public Boolean getEnableServers() {
return enableServers;
}
public void setEnableServers(@javax.annotation.Nullable Boolean enableServers) {
this.enableServers = enableServers;
}
public Game rustGamedigId(@javax.annotation.Nullable String rustGamedigId) {
this.rustGamedigId = rustGamedigId;
return this;
}
/**
* Get rustGamedigId
* @return rustGamedigId
*/
@javax.annotation.Nullable
public String getRustGamedigId() {
return rustGamedigId;
}
public void setRustGamedigId(@javax.annotation.Nullable String rustGamedigId) {
this.rustGamedigId = rustGamedigId;
}
public Game nodeGamedigId(@javax.annotation.Nullable String nodeGamedigId) {
this.nodeGamedigId = nodeGamedigId;
return this;
}
/**
* Get nodeGamedigId
* @return nodeGamedigId
*/
@javax.annotation.Nullable
public String getNodeGamedigId() {
return nodeGamedigId;
}
public void setNodeGamedigId(@javax.annotation.Nullable String nodeGamedigId) {
this.nodeGamedigId = nodeGamedigId;
}
public Game serverConnectUrl(@javax.annotation.Nullable String serverConnectUrl) {
this.serverConnectUrl = serverConnectUrl;
return this;
}
/**
* Get serverConnectUrl
* @return serverConnectUrl
*/
@javax.annotation.Nullable
public String getServerConnectUrl() {
return serverConnectUrl;
}
public void setServerConnectUrl(@javax.annotation.Nullable String serverConnectUrl) {
this.serverConnectUrl = serverConnectUrl;
}
public Game serverTags(@javax.annotation.Nullable String serverTags) {
this.serverTags = serverTags;
return this;
}
/**
* Get serverTags
* @return serverTags
*/
@javax.annotation.Nullable
public String getServerTags() {
return serverTags;
}
public void setServerTags(@javax.annotation.Nullable String serverTags) {
this.serverTags = serverTags;
}
public Game id(@javax.annotation.Nullable String id) {
this.id = id;
return this;
@ -592,25 +323,6 @@ public class Game {
}
public Game parentId(@javax.annotation.Nullable String parentId) {
this.parentId = parentId;
return this;
}
/**
* Get parentId
* @return parentId
*/
@javax.annotation.Nullable
public String getParentId() {
return parentId;
}
public void setParentId(@javax.annotation.Nullable String parentId) {
this.parentId = parentId;
}
public Game slug(@javax.annotation.Nullable String slug) {
this.slug = slug;
return this;
@ -630,139 +342,6 @@ public class Game {
}
public Game visibility(@javax.annotation.Nullable Integer visibility) {
this.visibility = visibility;
return this;
}
/**
* Get visibility
* @return visibility
*/
@javax.annotation.Nullable
public Integer getVisibility() {
return visibility;
}
public void setVisibility(@javax.annotation.Nullable Integer visibility) {
this.visibility = visibility;
}
public Game password(@javax.annotation.Nullable String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
*/
@javax.annotation.Nullable
public String getPassword() {
return password;
}
public void setPassword(@javax.annotation.Nullable String password) {
this.password = password;
}
public Game primary(@javax.annotation.Nullable Integer primary) {
this.primary = primary;
return this;
}
/**
* Get primary
* @return primary
*/
@javax.annotation.Nullable
public Integer getPrimary() {
return primary;
}
public void setPrimary(@javax.annotation.Nullable Integer primary) {
this.primary = primary;
}
public Game userCount(@javax.annotation.Nullable Integer userCount) {
this.userCount = userCount;
return this;
}
/**
* Get userCount
* @return userCount
*/
@javax.annotation.Nullable
public Integer getUserCount() {
return userCount;
}
public void setUserCount(@javax.annotation.Nullable Integer userCount) {
this.userCount = userCount;
}
public Game achievementCount(@javax.annotation.Nullable Integer achievementCount) {
this.achievementCount = achievementCount;
return this;
}
/**
* Get achievementCount
* @return achievementCount
*/
@javax.annotation.Nullable
public Integer getAchievementCount() {
return achievementCount;
}
public void setAchievementCount(@javax.annotation.Nullable Integer achievementCount) {
this.achievementCount = achievementCount;
}
public Game badgeCount(@javax.annotation.Nullable Integer badgeCount) {
this.badgeCount = badgeCount;
return this;
}
/**
* Get badgeCount
* @return badgeCount
*/
@javax.annotation.Nullable
public Integer getBadgeCount() {
return badgeCount;
}
public void setBadgeCount(@javax.annotation.Nullable Integer badgeCount) {
this.badgeCount = badgeCount;
}
public Game downloadCount(@javax.annotation.Nullable Integer downloadCount) {
this.downloadCount = downloadCount;
return this;
}
/**
* Get downloadCount
* @return downloadCount
*/
@javax.annotation.Nullable
public Integer getDownloadCount() {
return downloadCount;
}
public void setDownloadCount(@javax.annotation.Nullable Integer downloadCount) {
this.downloadCount = downloadCount;
}
public Game created(@javax.annotation.Nullable OffsetDateTime created) {
this.created = created;
return this;
@ -801,6 +380,139 @@ public class Game {
}
public Game enableServers(@javax.annotation.Nullable Boolean enableServers) {
this.enableServers = enableServers;
return this;
}
/**
* Get enableServers
* @return enableServers
*/
@javax.annotation.Nullable
public Boolean getEnableServers() {
return enableServers;
}
public void setEnableServers(@javax.annotation.Nullable Boolean enableServers) {
this.enableServers = enableServers;
}
public Game gamePort(@javax.annotation.Nullable Integer gamePort) {
this.gamePort = gamePort;
return this;
}
/**
* Get gamePort
* @return gamePort
*/
@javax.annotation.Nullable
public Integer getGamePort() {
return gamePort;
}
public void setGamePort(@javax.annotation.Nullable Integer gamePort) {
this.gamePort = gamePort;
}
public Game queryPort(@javax.annotation.Nullable Integer queryPort) {
this.queryPort = queryPort;
return this;
}
/**
* Get queryPort
* @return queryPort
*/
@javax.annotation.Nullable
public Integer getQueryPort() {
return queryPort;
}
public void setQueryPort(@javax.annotation.Nullable Integer queryPort) {
this.queryPort = queryPort;
}
public Game rconPort(@javax.annotation.Nullable Integer rconPort) {
this.rconPort = rconPort;
return this;
}
/**
* Get rconPort
* @return rconPort
*/
@javax.annotation.Nullable
public Integer getRconPort() {
return rconPort;
}
public void setRconPort(@javax.annotation.Nullable Integer rconPort) {
this.rconPort = rconPort;
}
public Game gamedigId(@javax.annotation.Nullable String gamedigId) {
this.gamedigId = gamedigId;
return this;
}
/**
* Get gamedigId
* @return gamedigId
*/
@javax.annotation.Nullable
public String getGamedigId() {
return gamedigId;
}
public void setGamedigId(@javax.annotation.Nullable String gamedigId) {
this.gamedigId = gamedigId;
}
public Game steamAppId(@javax.annotation.Nullable Integer steamAppId) {
this.steamAppId = steamAppId;
return this;
}
/**
* Get steamAppId
* @return steamAppId
*/
@javax.annotation.Nullable
public Integer getSteamAppId() {
return steamAppId;
}
public void setSteamAppId(@javax.annotation.Nullable Integer steamAppId) {
this.steamAppId = steamAppId;
}
public Game steamServerAppId(@javax.annotation.Nullable Integer steamServerAppId) {
this.steamServerAppId = steamServerAppId;
return this;
}
/**
* Get steamServerAppId
* @return steamServerAppId
*/
@javax.annotation.Nullable
public Integer getSteamServerAppId() {
return steamServerAppId;
}
public void setSteamServerAppId(@javax.annotation.Nullable Integer steamServerAppId) {
this.steamServerAppId = steamServerAppId;
}
@Override
public boolean equals(Object o) {
@ -811,18 +523,7 @@ public class Game {
return false;
}
Game game = (Game) o;
return Objects.equals(this.gamePort, game.gamePort) &&
Objects.equals(this.queryPort, game.queryPort) &&
Objects.equals(this.rconPort, game.rconPort) &&
Objects.equals(this.serverCount, game.serverCount) &&
Objects.equals(this.steamAppId, game.steamAppId) &&
Objects.equals(this.steamServerAppId, game.steamServerAppId) &&
Objects.equals(this.enableServers, game.enableServers) &&
Objects.equals(this.rustGamedigId, game.rustGamedigId) &&
Objects.equals(this.nodeGamedigId, game.nodeGamedigId) &&
Objects.equals(this.serverConnectUrl, game.serverConnectUrl) &&
Objects.equals(this.serverTags, game.serverTags) &&
Objects.equals(this.id, game.id) &&
return Objects.equals(this.id, game.id) &&
Objects.equals(this.name, game.name) &&
Objects.equals(this.description, game.description) &&
Objects.equals(this.type, game.type) &&
@ -831,17 +532,16 @@ public class Game {
Objects.equals(this.bannerUrl, game.bannerUrl) &&
Objects.equals(this.capsuleImageUrl, game.capsuleImageUrl) &&
Objects.equals(this.libraryImageUrl, game.libraryImageUrl) &&
Objects.equals(this.parentId, game.parentId) &&
Objects.equals(this.slug, game.slug) &&
Objects.equals(this.visibility, game.visibility) &&
Objects.equals(this.password, game.password) &&
Objects.equals(this.primary, game.primary) &&
Objects.equals(this.userCount, game.userCount) &&
Objects.equals(this.achievementCount, game.achievementCount) &&
Objects.equals(this.badgeCount, game.badgeCount) &&
Objects.equals(this.downloadCount, game.downloadCount) &&
Objects.equals(this.created, game.created) &&
Objects.equals(this.updated, game.updated);
Objects.equals(this.updated, game.updated) &&
Objects.equals(this.enableServers, game.enableServers) &&
Objects.equals(this.gamePort, game.gamePort) &&
Objects.equals(this.queryPort, game.queryPort) &&
Objects.equals(this.rconPort, game.rconPort) &&
Objects.equals(this.gamedigId, game.gamedigId) &&
Objects.equals(this.steamAppId, game.steamAppId) &&
Objects.equals(this.steamServerAppId, game.steamServerAppId);
}
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
@ -850,7 +550,7 @@ public class Game {
@Override
public int hashCode() {
return Objects.hash(gamePort, queryPort, rconPort, serverCount, steamAppId, steamServerAppId, enableServers, rustGamedigId, nodeGamedigId, serverConnectUrl, serverTags, id, name, description, type, organizationId, iconUrl, bannerUrl, capsuleImageUrl, libraryImageUrl, parentId, slug, visibility, password, primary, userCount, achievementCount, badgeCount, downloadCount, created, updated);
return Objects.hash(id, name, description, type, organizationId, iconUrl, bannerUrl, capsuleImageUrl, libraryImageUrl, slug, created, updated, enableServers, gamePort, queryPort, rconPort, gamedigId, steamAppId, steamServerAppId);
}
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@ -864,17 +564,6 @@ public class Game {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Game {\n");
sb.append(" gamePort: ").append(toIndentedString(gamePort)).append("\n");
sb.append(" queryPort: ").append(toIndentedString(queryPort)).append("\n");
sb.append(" rconPort: ").append(toIndentedString(rconPort)).append("\n");
sb.append(" serverCount: ").append(toIndentedString(serverCount)).append("\n");
sb.append(" steamAppId: ").append(toIndentedString(steamAppId)).append("\n");
sb.append(" steamServerAppId: ").append(toIndentedString(steamServerAppId)).append("\n");
sb.append(" enableServers: ").append(toIndentedString(enableServers)).append("\n");
sb.append(" rustGamedigId: ").append(toIndentedString(rustGamedigId)).append("\n");
sb.append(" nodeGamedigId: ").append(toIndentedString(nodeGamedigId)).append("\n");
sb.append(" serverConnectUrl: ").append(toIndentedString(serverConnectUrl)).append("\n");
sb.append(" serverTags: ").append(toIndentedString(serverTags)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
@ -884,17 +573,16 @@ public class Game {
sb.append(" bannerUrl: ").append(toIndentedString(bannerUrl)).append("\n");
sb.append(" capsuleImageUrl: ").append(toIndentedString(capsuleImageUrl)).append("\n");
sb.append(" libraryImageUrl: ").append(toIndentedString(libraryImageUrl)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" slug: ").append(toIndentedString(slug)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" primary: ").append(toIndentedString(primary)).append("\n");
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
sb.append(" achievementCount: ").append(toIndentedString(achievementCount)).append("\n");
sb.append(" badgeCount: ").append(toIndentedString(badgeCount)).append("\n");
sb.append(" downloadCount: ").append(toIndentedString(downloadCount)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" updated: ").append(toIndentedString(updated)).append("\n");
sb.append(" enableServers: ").append(toIndentedString(enableServers)).append("\n");
sb.append(" gamePort: ").append(toIndentedString(gamePort)).append("\n");
sb.append(" queryPort: ").append(toIndentedString(queryPort)).append("\n");
sb.append(" rconPort: ").append(toIndentedString(rconPort)).append("\n");
sb.append(" gamedigId: ").append(toIndentedString(gamedigId)).append("\n");
sb.append(" steamAppId: ").append(toIndentedString(steamAppId)).append("\n");
sb.append(" steamServerAppId: ").append(toIndentedString(steamServerAppId)).append("\n");
sb.append("}");
return sb.toString();
}
@ -917,17 +605,6 @@ public class Game {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>();
openapiFields.add("game_port");
openapiFields.add("query_port");
openapiFields.add("rcon_port");
openapiFields.add("server_count");
openapiFields.add("steam_app_id");
openapiFields.add("steam_server_app_id");
openapiFields.add("enable_servers");
openapiFields.add("rust_gamedig_id");
openapiFields.add("node_gamedig_id");
openapiFields.add("server_connect_url");
openapiFields.add("server_tags");
openapiFields.add("id");
openapiFields.add("name");
openapiFields.add("description");
@ -937,20 +614,20 @@ public class Game {
openapiFields.add("banner_url");
openapiFields.add("capsule_image_url");
openapiFields.add("library_image_url");
openapiFields.add("parent_id");
openapiFields.add("slug");
openapiFields.add("visibility");
openapiFields.add("password");
openapiFields.add("primary");
openapiFields.add("user_count");
openapiFields.add("achievement_count");
openapiFields.add("badge_count");
openapiFields.add("download_count");
openapiFields.add("created");
openapiFields.add("updated");
openapiFields.add("enable_servers");
openapiFields.add("game_port");
openapiFields.add("query_port");
openapiFields.add("rcon_port");
openapiFields.add("gamedig_id");
openapiFields.add("steam_app_id");
openapiFields.add("steam_server_app_id");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
openapiRequiredFields.add("name");
}
/**
@ -973,19 +650,14 @@ public class Game {
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Game` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
// check to make sure all required properties/fields are present in the JSON string
for (String requiredField : Game.openapiRequiredFields) {
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("rust_gamedig_id") != null && !jsonObj.get("rust_gamedig_id").isJsonNull()) && !jsonObj.get("rust_gamedig_id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `rust_gamedig_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rust_gamedig_id").toString()));
}
if ((jsonObj.get("node_gamedig_id") != null && !jsonObj.get("node_gamedig_id").isJsonNull()) && !jsonObj.get("node_gamedig_id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `node_gamedig_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("node_gamedig_id").toString()));
}
if ((jsonObj.get("server_connect_url") != null && !jsonObj.get("server_connect_url").isJsonNull()) && !jsonObj.get("server_connect_url").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `server_connect_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("server_connect_url").toString()));
}
if ((jsonObj.get("server_tags") != null && !jsonObj.get("server_tags").isJsonNull()) && !jsonObj.get("server_tags").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `server_tags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("server_tags").toString()));
}
if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
}
@ -1014,14 +686,11 @@ public class Game {
if ((jsonObj.get("library_image_url") != null && !jsonObj.get("library_image_url").isJsonNull()) && !jsonObj.get("library_image_url").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `library_image_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("library_image_url").toString()));
}
if ((jsonObj.get("parent_id") != null && !jsonObj.get("parent_id").isJsonNull()) && !jsonObj.get("parent_id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `parent_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent_id").toString()));
}
if ((jsonObj.get("slug") != null && !jsonObj.get("slug").isJsonNull()) && !jsonObj.get("slug").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `slug` to be a primitive type in the JSON string but got `%s`", jsonObj.get("slug").toString()));
}
if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString()));
if ((jsonObj.get("gamedig_id") != null && !jsonObj.get("gamedig_id").isJsonNull()) && !jsonObj.get("gamedig_id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `gamedig_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gamedig_id").toString()));
}
}