Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulogservice.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeULogServiceLogSetRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 日志集ID */ + @NotEmpty + @UCloudParam("LogSetId") + private String logSetId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getLogSetId() { + return logSetId; + } + + public void setLogSetId(String logSetId) { + this.logSetId = logSetId; + } +} diff --git a/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceLogSetResponse.java b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceLogSetResponse.java new file mode 100644 index 000000000..909f94a0b --- /dev/null +++ b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceLogSetResponse.java @@ -0,0 +1,121 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulogservice.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DescribeULogServiceLogSetResponse extends Response { + + /** 日志集总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 日志集信息 */ + @SerializedName("LogSetInfo") + private LogSetInfo logSetInfo; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public LogSetInfo getLogSetInfo() { + return logSetInfo; + } + + public void setLogSetInfo(LogSetInfo logSetInfo) { + this.logSetInfo = logSetInfo; + } + + public static class LogSetInfo extends Response { + + /** 日志集下主题数量 */ + @SerializedName("TopicCount") + private Integer topicCount; + + /** 日志集ID */ + @SerializedName("LogSetId") + private String logSetId; + + /** 日志集备注 */ + @SerializedName("LogSetRemark") + private String logSetRemark; + + /** 日志集名称 */ + @SerializedName("LogSetName") + private String logSetName; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 更新时间 */ + @SerializedName("UpdateTime") + private Integer updateTime; + + public Integer getTopicCount() { + return topicCount; + } + + public void setTopicCount(Integer topicCount) { + this.topicCount = topicCount; + } + + public String getLogSetId() { + return logSetId; + } + + public void setLogSetId(String logSetId) { + this.logSetId = logSetId; + } + + public String getLogSetRemark() { + return logSetRemark; + } + + public void setLogSetRemark(String logSetRemark) { + this.logSetRemark = logSetRemark; + } + + public String getLogSetName() { + return logSetName; + } + + public void setLogSetName(String logSetName) { + this.logSetName = logSetName; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + } +} diff --git a/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicRequest.java b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicRequest.java new file mode 100644 index 000000000..b6e1cc6b1 --- /dev/null +++ b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulogservice.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeULogServiceTopicRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 主题Id */ + @NotEmpty + @UCloudParam("TopicId") + private String topicId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getTopicId() { + return topicId; + } + + public void setTopicId(String topicId) { + this.topicId = topicId; + } +} diff --git a/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicResponse.java b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicResponse.java new file mode 100644 index 000000000..30276725b --- /dev/null +++ b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/DescribeULogServiceTopicResponse.java @@ -0,0 +1,109 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulogservice.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class DescribeULogServiceTopicResponse extends Response {
+
+ /** 主题详情 */
+ @SerializedName("Data")
+ private TopicInfo data;
+
+ public TopicInfo getData() {
+ return data;
+ }
+
+ public void setData(TopicInfo data) {
+ this.data = data;
+ }
+
+ public static class TopicInfo extends Response {
+
+ /** 主题名称 */
+ @SerializedName("TopicName")
+ private String topicName;
+
+ /** 主题ID */
+ @SerializedName("TopicId")
+ private String topicId;
+
+ /** 分区数量,固定是2 */
+ @SerializedName("TopicShardNum")
+ private Integer topicShardNum;
+
+ /** 保存时间 1~730 天 */
+ @SerializedName("ReserveAge")
+ private Integer reserveAge;
+
+ /** 是否保留:0 - NORMAL, 1 - RESERVED */
+ @SerializedName("IsReserved")
+ private Integer isReserved;
+
+ /** 日志主题状态 */
+ @SerializedName("State")
+ private String state;
+
+ public String getTopicName() {
+ return topicName;
+ }
+
+ public void setTopicName(String topicName) {
+ this.topicName = topicName;
+ }
+
+ public String getTopicId() {
+ return topicId;
+ }
+
+ public void setTopicId(String topicId) {
+ this.topicId = topicId;
+ }
+
+ public Integer getTopicShardNum() {
+ return topicShardNum;
+ }
+
+ public void setTopicShardNum(Integer topicShardNum) {
+ this.topicShardNum = topicShardNum;
+ }
+
+ public Integer getReserveAge() {
+ return reserveAge;
+ }
+
+ public void setReserveAge(Integer reserveAge) {
+ this.reserveAge = reserveAge;
+ }
+
+ public Integer getIsReserved() {
+ return isReserved;
+ }
+
+ public void setIsReserved(Integer isReserved) {
+ this.isReserved = isReserved;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/ListULogServiceTopicResponse.java b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/ListULogServiceTopicResponse.java
index ba1b5bd5d..63e383da8 100644
--- a/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/ListULogServiceTopicResponse.java
+++ b/ucloud-sdk-java-ulogservice/src/main/java/cn/ucloud/ulogservice/models/ListULogServiceTopicResponse.java
@@ -67,9 +67,9 @@ public static class TopicInfo extends Response {
@SerializedName("IsReserved")
private Integer isReserved;
- /** 主题描述 */
- @SerializedName("TopicDesc")
- private String topicDesc;
+ /** 日志主题状态 */
+ @SerializedName("State")
+ private String state;
public String getTopicName() {
return topicName;
@@ -111,12 +111,12 @@ public void setIsReserved(Integer isReserved) {
this.isReserved = isReserved;
}
- public String getTopicDesc() {
- return topicDesc;
+ public String getState() {
+ return state;
}
- public void setTopicDesc(String topicDesc) {
- this.topicDesc = topicDesc;
+ public void setState(String state) {
+ this.state = state;
}
}
}
diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml
index ae9ae0b35..9b1419333 100644
--- a/ucloud-sdk-java-umem/pom.xml
+++ b/ucloud-sdk-java-umem/pom.xml
@@ -5,19 +5,19 @@