Skip to content

Commit 125f90d

Browse files
authored
Update response for table list (#352)
* update response for table list * Fixup! change user_id type
1 parent 3e0e2c4 commit 125f90d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/main/java/com/treasuredata/client/model/TDTable.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public class TDTable
3737
private final String expireDays;
3838
private final String createdAt;
3939
private final String updatedAt;
40+
private final Integer userId;
41+
private final String description;
4042

4143
@JsonCreator
4244
public TDTable(
@@ -49,7 +51,9 @@ public TDTable(
4951
@JsonProperty("last_log_timestamp") String lastLogTimeStamp,
5052
@JsonProperty("expire_days") String expireDays,
5153
@JsonProperty("created_at") String createdAt,
52-
@JsonProperty("updated_at") String updatedAt
54+
@JsonProperty("updated_at") String updatedAt,
55+
@JsonProperty("user_id") Integer userId,
56+
@JsonProperty("description") String description
5357
)
5458
{
5559
this.id = id;
@@ -62,6 +66,8 @@ public TDTable(
6266
this.expireDays = expireDays;
6367
this.createdAt = createdAt;
6468
this.updatedAt = updatedAt;
69+
this.userId = userId;
70+
this.description = description;
6571
}
6672

6773
public String getId()
@@ -126,6 +132,15 @@ public String getUpdatedAt()
126132
return updatedAt;
127133
}
128134

135+
public Integer getUserId()
136+
{
137+
return userId;
138+
}
139+
140+
public String getDescription()
141+
{
142+
return description;
143+
}
129144
@Override
130145
public boolean equals(Object obj)
131146
{

src/test/java/com/treasuredata/client/TestTDClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ public void listTables()
262262
Set<TDTable> tableSet = new HashSet<>();
263263
for (final TDTable t : tableList) {
264264
logger.info("id: " + t.getId());
265+
logger.info("user id:" + t.getUserId());
266+
logger.info("description: " + t.getDescription());
265267
logger.info("type: " + t.getType());
266268
logger.info("estimated size:" + t.getEstimatedStorageSize());
267269
logger.info("last log timestamp: " + t.getLastLogTimeStamp());

0 commit comments

Comments
 (0)