From 7930dc84f077e8dda8520c6a46349d70cb1a161b Mon Sep 17 00:00:00 2001 From: Son Do Date: Wed, 17 Jul 2024 07:31:06 +0700 Subject: [PATCH 1/2] update response for database api --- .../com/treasuredata/client/model/TDDatabase.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/com/treasuredata/client/model/TDDatabase.java b/src/main/java/com/treasuredata/client/model/TDDatabase.java index 059c7ee6..76ca7804 100644 --- a/src/main/java/com/treasuredata/client/model/TDDatabase.java +++ b/src/main/java/com/treasuredata/client/model/TDDatabase.java @@ -30,6 +30,8 @@ public class TDDatabase private final String id; private final String name; private final long count; + private final long userId; + private final String description; private final String createdAt; private final String updatedAt; private final Optional organization; @@ -39,6 +41,8 @@ public class TDDatabase public TDDatabase( @JsonProperty("id") String id, @JsonProperty("name") String name, + @JsonProperty("user_id") long userId, + @JsonProperty("description") String description, @JsonProperty("count") long count, @JsonProperty("created_at") String createdAt, @JsonProperty("updated_at") String updatedAt, @@ -48,6 +52,8 @@ public TDDatabase( { this.id = id; this.name = name; + this.userId = userId; + this.description = description; this.count = count; this.createdAt = createdAt; this.updatedAt = updatedAt; @@ -67,6 +73,15 @@ public String getName() return name; } + public long getUserId() + { + return userId; + } + + public String getDescription() + { + return description; + } /** * Record count * From cc5d9195e92f5bf588e2a1d624f9e459af41af5a Mon Sep 17 00:00:00 2001 From: Son Do Date: Thu, 18 Jul 2024 09:44:38 +0700 Subject: [PATCH 2/2] Fixup! change user_id type --- src/main/java/com/treasuredata/client/model/TDDatabase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/treasuredata/client/model/TDDatabase.java b/src/main/java/com/treasuredata/client/model/TDDatabase.java index 76ca7804..f3e01a63 100644 --- a/src/main/java/com/treasuredata/client/model/TDDatabase.java +++ b/src/main/java/com/treasuredata/client/model/TDDatabase.java @@ -30,7 +30,7 @@ public class TDDatabase private final String id; private final String name; private final long count; - private final long userId; + private final Integer userId; private final String description; private final String createdAt; private final String updatedAt; @@ -41,7 +41,7 @@ public class TDDatabase public TDDatabase( @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("user_id") long userId, + @JsonProperty("user_id") Integer userId, @JsonProperty("description") String description, @JsonProperty("count") long count, @JsonProperty("created_at") String createdAt, @@ -73,7 +73,7 @@ public String getName() return name; } - public long getUserId() + public Integer getUserId() { return userId; }