Skip to content

Commit e16b87a

Browse files
authored
Merge pull request #120 from ucloud-bot/codegen/1753933566
sdk: rolling update for 1.2.45-release
2 parents 1c1f54f + 039a62f commit e16b87a

File tree

59 files changed

+1841
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1841
-142
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.44-release
1+
1.2.45-release

examples/generic/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>ucloud-sdk-java</artifactId>
99
<groupId>cn.ucloud</groupId>
10-
<version>1.2.44-release</version>
10+
<version>1.2.45-release</version>
1111
</parent>
1212

1313
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>cn.ucloud</groupId>
2020
<artifactId>ucloud-sdk-java-common</artifactId>
21-
<version>1.2.44-release</version>
21+
<version>1.2.45-release</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

examples/uhost/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>ucloud-sdk-java</artifactId>
99
<groupId>cn.ucloud</groupId>
10-
<version>1.2.44-release</version>
10+
<version>1.2.45-release</version>
1111
</parent>
1212

1313
<modelVersion>4.0.0</modelVersion>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>cn.ucloud</groupId>
2020
<artifactId>ucloud-sdk-java-uhost</artifactId>
21-
<version>1.2.44-release</version>
21+
<version>1.2.45-release</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>cn.ucloud</groupId>
88
<artifactId>ucloud-sdk-java</artifactId>
99
<packaging>pom</packaging>
10-
<version>1.2.44-release</version>
10+
<version>1.2.45-release</version>
1111
<modules>
1212
<module>ucloud-sdk-java-common</module>
1313
<module>ucloud-sdk-java-cloudwatch</module>

ucloud-sdk-java-cloudwatch/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
<parent>
66
<artifactId>ucloud-sdk-java</artifactId>
77
<groupId>cn.ucloud</groupId>
8-
<version>1.2.44-release</version>
8+
<version>1.2.45-release</version>
99
</parent>
1010

1111
<modelVersion>4.0.0</modelVersion>
1212
<artifactId>ucloud-sdk-java-cloudwatch</artifactId>
13-
<version>1.2.44-release</version>
13+
<version>1.2.45-release</version>
1414

1515
<dependencies>
1616
<dependency>
1717
<groupId>cn.ucloud</groupId>
1818
<artifactId>ucloud-sdk-java-common</artifactId>
19-
<version>1.2.44-release</version>
19+
<version>1.2.45-release</version>
2020
</dependency>
2121

2222
<dependency>

ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/client/CloudWatchClient.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest;
1717
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse;
18+
import cn.ucloud.cloudwatch.models.CreateAlertStrategyRequest;
19+
import cn.ucloud.cloudwatch.models.CreateAlertStrategyResponse;
1820
import cn.ucloud.cloudwatch.models.CreateAlertStrategyTemplateRequest;
1921
import cn.ucloud.cloudwatch.models.CreateAlertStrategyTemplateResponse;
2022
import cn.ucloud.cloudwatch.models.DeleteAlertStrategyTemplateRequest;
@@ -25,6 +27,8 @@
2527
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse;
2628
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest;
2729
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse;
30+
import cn.ucloud.cloudwatch.models.ListAlertStrategyTemplateRequest;
31+
import cn.ucloud.cloudwatch.models.ListAlertStrategyTemplateResponse;
2832
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest;
2933
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse;
3034
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest;
@@ -33,6 +37,10 @@
3337
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse;
3438
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest;
3539
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse;
40+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyRequest;
41+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyResponse;
42+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyTemplateRequest;
43+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyTemplateResponse;
3644
import cn.ucloud.common.client.DefaultClient;
3745
import cn.ucloud.common.config.Config;
3846
import cn.ucloud.common.credential.Credential;
@@ -56,6 +64,19 @@ public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest requ
5664
return (BindAlertStrategyResponse) this.invoke(request, BindAlertStrategyResponse.class);
5765
}
5866

67+
/**
68+
* CreateAlertStrategy - 创建告警策略
69+
*
70+
* @param request Request object
71+
* @throws UCloudException Exception
72+
*/
73+
public CreateAlertStrategyResponse createAlertStrategy(CreateAlertStrategyRequest request)
74+
throws UCloudException {
75+
request.setAction("CreateAlertStrategy");
76+
return (CreateAlertStrategyResponse)
77+
this.invoke(request, CreateAlertStrategyResponse.class);
78+
}
79+
5980
/**
6081
* CreateAlertStrategyTemplate - 新建条件模板
6182
*
@@ -118,6 +139,19 @@ public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest requ
118139
return (ListAlertStrategyResponse) this.invoke(request, ListAlertStrategyResponse.class);
119140
}
120141

142+
/**
143+
* ListAlertStrategyTemplate - 条件模板列表
144+
*
145+
* @param request Request object
146+
* @throws UCloudException Exception
147+
*/
148+
public ListAlertStrategyTemplateResponse listAlertStrategyTemplate(
149+
ListAlertStrategyTemplateRequest request) throws UCloudException {
150+
request.setAction("ListAlertStrategyTemplate");
151+
return (ListAlertStrategyTemplateResponse)
152+
this.invoke(request, ListAlertStrategyTemplateResponse.class);
153+
}
154+
121155
/**
122156
* ListMonitorProduct - 获取监控对象类型列表
123157
*
@@ -167,4 +201,30 @@ public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyReques
167201
return (UnBindAlertStrategyResponse)
168202
this.invoke(request, UnBindAlertStrategyResponse.class);
169203
}
204+
205+
/**
206+
* UpdateAlertStrategy - 更新告警策略
207+
*
208+
* @param request Request object
209+
* @throws UCloudException Exception
210+
*/
211+
public UpdateAlertStrategyResponse updateAlertStrategy(UpdateAlertStrategyRequest request)
212+
throws UCloudException {
213+
request.setAction("UpdateAlertStrategy");
214+
return (UpdateAlertStrategyResponse)
215+
this.invoke(request, UpdateAlertStrategyResponse.class);
216+
}
217+
218+
/**
219+
* UpdateAlertStrategyTemplate - 编辑条件模板
220+
*
221+
* @param request Request object
222+
* @throws UCloudException Exception
223+
*/
224+
public UpdateAlertStrategyTemplateResponse updateAlertStrategyTemplate(
225+
UpdateAlertStrategyTemplateRequest request) throws UCloudException {
226+
request.setAction("UpdateAlertStrategyTemplate");
227+
return (UpdateAlertStrategyTemplateResponse)
228+
this.invoke(request, UpdateAlertStrategyTemplateResponse.class);
229+
}
170230
}

ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/client/CloudWatchClientInterface.java

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest;
1717
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse;
18+
import cn.ucloud.cloudwatch.models.CreateAlertStrategyRequest;
19+
import cn.ucloud.cloudwatch.models.CreateAlertStrategyResponse;
1820
import cn.ucloud.cloudwatch.models.CreateAlertStrategyTemplateRequest;
1921
import cn.ucloud.cloudwatch.models.CreateAlertStrategyTemplateResponse;
2022
import cn.ucloud.cloudwatch.models.DeleteAlertStrategyTemplateRequest;
@@ -25,6 +27,8 @@
2527
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse;
2628
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest;
2729
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse;
30+
import cn.ucloud.cloudwatch.models.ListAlertStrategyTemplateRequest;
31+
import cn.ucloud.cloudwatch.models.ListAlertStrategyTemplateResponse;
2832
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest;
2933
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse;
3034
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest;
@@ -33,6 +37,10 @@
3337
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse;
3438
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest;
3539
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse;
40+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyRequest;
41+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyResponse;
42+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyTemplateRequest;
43+
import cn.ucloud.cloudwatch.models.UpdateAlertStrategyTemplateResponse;
3644
import cn.ucloud.common.client.Client;
3745
import cn.ucloud.common.exception.UCloudException;
3846

@@ -48,6 +56,15 @@ public interface CloudWatchClientInterface extends Client {
4856
public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest request)
4957
throws UCloudException;
5058

59+
/**
60+
* CreateAlertStrategy - 创建告警策略
61+
*
62+
* @param request Request object
63+
* @throws UCloudException Exception
64+
*/
65+
public CreateAlertStrategyResponse createAlertStrategy(CreateAlertStrategyRequest request)
66+
throws UCloudException;
67+
5168
/**
5269
* CreateAlertStrategyTemplate - 新建条件模板
5370
*
@@ -93,6 +110,15 @@ public ListAlertRecordResponse listAlertRecord(ListAlertRecordRequest request)
93110
public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest request)
94111
throws UCloudException;
95112

113+
/**
114+
* ListAlertStrategyTemplate - 条件模板列表
115+
*
116+
* @param request Request object
117+
* @throws UCloudException Exception
118+
*/
119+
public ListAlertStrategyTemplateResponse listAlertStrategyTemplate(
120+
ListAlertStrategyTemplateRequest request) throws UCloudException;
121+
96122
/**
97123
* ListMonitorProduct - 获取监控对象类型列表
98124
*
@@ -128,4 +154,22 @@ public QueryMetricDataSummaryResponse queryMetricDataSummary(
128154
*/
129155
public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyRequest request)
130156
throws UCloudException;
157+
158+
/**
159+
* UpdateAlertStrategy - 更新告警策略
160+
*
161+
* @param request Request object
162+
* @throws UCloudException Exception
163+
*/
164+
public UpdateAlertStrategyResponse updateAlertStrategy(UpdateAlertStrategyRequest request)
165+
throws UCloudException;
166+
167+
/**
168+
* UpdateAlertStrategyTemplate - 编辑条件模板
169+
*
170+
* @param request Request object
171+
* @throws UCloudException Exception
172+
*/
173+
public UpdateAlertStrategyTemplateResponse updateAlertStrategyTemplate(
174+
UpdateAlertStrategyTemplateRequest request) throws UCloudException;
131175
}

0 commit comments

Comments
 (0)