Skip to content

Commit 75beebd

Browse files
authored
Merge pull request #98 from ucloud-bot/codegen/1732786268
sdk: rolling update for 1.2.34-release
2 parents 2d0dc97 + 05f5f69 commit 75beebd

File tree

90 files changed

+4916
-390
lines changed

Some content is hidden

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

90 files changed

+4916
-390
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.33-release
1+
1.2.34-release

examples/generic/pom.xml

+2-2
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.33-release</version>
10+
<version>1.2.34-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.33-release</version>
21+
<version>1.2.34-release</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

examples/uhost/pom.xml

+2-2
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.33-release</version>
10+
<version>1.2.34-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.33-release</version>
21+
<version>1.2.34-release</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
<groupId>cn.ucloud</groupId>
88
<artifactId>ucloud-sdk-java</artifactId>
99
<packaging>pom</packaging>
10-
<version>1.2.33-release</version>
10+
<version>1.2.34-release</version>
1111
<modules>
1212
<module>ucloud-sdk-java-common</module>
13+
<module>ucloud-sdk-java-cloudwatch</module>
1314
<module>ucloud-sdk-java-cube</module>
1415
<module>ucloud-sdk-java-ipsecvpn</module>
1516
<module>ucloud-sdk-java-pathx</module>

ucloud-sdk-java-cloudwatch/pom.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
<?xml version="1.0" encoding="UTF-8"?>
3+
<project xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6+
<parent>
7+
<artifactId>ucloud-sdk-java</artifactId>
8+
<groupId>cn.ucloud</groupId>
9+
<version>1.2.34-release</version>
10+
</parent>
11+
12+
<modelVersion>4.0.0</modelVersion>
13+
<artifactId>ucloud-sdk-java-cloudwatch</artifactId>
14+
<version>1.2.34-release</version>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>cn.ucloud</groupId>
19+
<artifactId>ucloud-sdk-java-common</artifactId>
20+
<version>1.2.34-release</version>
21+
</dependency>
22+
23+
<dependency>
24+
<groupId>com.google.code.gson</groupId>
25+
<artifactId>gson</artifactId>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>commons-codec</groupId>
30+
<artifactId>commons-codec</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.apache.commons</groupId>
34+
<artifactId>commons-lang3</artifactId>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>junit</groupId>
39+
<artifactId>junit</artifactId>
40+
<scope>test</scope>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>org.slf4j</groupId>
45+
<artifactId>slf4j-simple</artifactId>
46+
<scope>provided</scope>
47+
</dependency>
48+
</dependencies>
49+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/**
2+
* Copyright 2021 UCloud Technology Co., Ltd.
3+
*
4+
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
5+
* except in compliance with the License. You may obtain a copy of the License at
6+
*
7+
* <p>http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* <p>Unless required by applicable law or agreed to in writing, software distributed under the
10+
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
* express or implied. See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
package cn.ucloud.cloudwatch.client;
15+
16+
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest;
17+
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse;
18+
import cn.ucloud.cloudwatch.models.GetProductMetricsRequest;
19+
import cn.ucloud.cloudwatch.models.GetProductMetricsResponse;
20+
import cn.ucloud.cloudwatch.models.ListAlertRecordRequest;
21+
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse;
22+
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest;
23+
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse;
24+
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest;
25+
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse;
26+
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest;
27+
import cn.ucloud.cloudwatch.models.QueryMetricDataSetResponse;
28+
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryRequest;
29+
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse;
30+
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest;
31+
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse;
32+
import cn.ucloud.common.client.DefaultClient;
33+
import cn.ucloud.common.config.Config;
34+
import cn.ucloud.common.credential.Credential;
35+
import cn.ucloud.common.exception.UCloudException;
36+
37+
/** This client is used to call actions of **CloudWatch** service */
38+
public class CloudWatchClient extends DefaultClient implements CloudWatchClientInterface {
39+
public CloudWatchClient(Config config, Credential credential) {
40+
super(config, credential);
41+
}
42+
43+
/**
44+
* BindAlertStrategy - 绑定告警策略
45+
*
46+
* @param request Request object
47+
* @throws UCloudException Exception
48+
*/
49+
public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest request)
50+
throws UCloudException {
51+
request.setAction("BindAlertStrategy");
52+
return (BindAlertStrategyResponse) this.invoke(request, BindAlertStrategyResponse.class);
53+
}
54+
55+
/**
56+
* GetProductMetrics - 获取云产品关联的指标列表
57+
*
58+
* @param request Request object
59+
* @throws UCloudException Exception
60+
*/
61+
public GetProductMetricsResponse getProductMetrics(GetProductMetricsRequest request)
62+
throws UCloudException {
63+
request.setAction("GetProductMetrics");
64+
return (GetProductMetricsResponse) this.invoke(request, GetProductMetricsResponse.class);
65+
}
66+
67+
/**
68+
* ListAlertRecord - 告警记录
69+
*
70+
* @param request Request object
71+
* @throws UCloudException Exception
72+
*/
73+
public ListAlertRecordResponse listAlertRecord(ListAlertRecordRequest request)
74+
throws UCloudException {
75+
request.setAction("ListAlertRecord");
76+
return (ListAlertRecordResponse) this.invoke(request, ListAlertRecordResponse.class);
77+
}
78+
79+
/**
80+
* ListAlertStrategy - 获取告警策略列表
81+
*
82+
* @param request Request object
83+
* @throws UCloudException Exception
84+
*/
85+
public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest request)
86+
throws UCloudException {
87+
request.setAction("ListAlertStrategy");
88+
return (ListAlertStrategyResponse) this.invoke(request, ListAlertStrategyResponse.class);
89+
}
90+
91+
/**
92+
* ListMonitorProduct - 获取监控对象类型列表
93+
*
94+
* @param request Request object
95+
* @throws UCloudException Exception
96+
*/
97+
public ListMonitorProductResponse listMonitorProduct(ListMonitorProductRequest request)
98+
throws UCloudException {
99+
request.setAction("ListMonitorProduct");
100+
return (ListMonitorProductResponse) this.invoke(request, ListMonitorProductResponse.class);
101+
}
102+
103+
/**
104+
* QueryMetricDataSet - 查询监控指标数据集
105+
*
106+
* @param request Request object
107+
* @throws UCloudException Exception
108+
*/
109+
public QueryMetricDataSetResponse queryMetricDataSet(QueryMetricDataSetRequest request)
110+
throws UCloudException {
111+
request.setAction("QueryMetricDataSet");
112+
return (QueryMetricDataSetResponse) this.invoke(request, QueryMetricDataSetResponse.class);
113+
}
114+
115+
/**
116+
* QueryMetricDataSummary - 获取资源看图属性列表
117+
*
118+
* @param request Request object
119+
* @throws UCloudException Exception
120+
*/
121+
public QueryMetricDataSummaryResponse queryMetricDataSummary(
122+
QueryMetricDataSummaryRequest request) throws UCloudException {
123+
request.setAction("QueryMetricDataSummary");
124+
return (QueryMetricDataSummaryResponse)
125+
this.invoke(request, QueryMetricDataSummaryResponse.class);
126+
}
127+
128+
/**
129+
* UnBindAlertStrategy - 解绑告警策略
130+
*
131+
* @param request Request object
132+
* @throws UCloudException Exception
133+
*/
134+
public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyRequest request)
135+
throws UCloudException {
136+
request.setAction("UnBindAlertStrategy");
137+
return (UnBindAlertStrategyResponse)
138+
this.invoke(request, UnBindAlertStrategyResponse.class);
139+
}
140+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/**
2+
* Copyright 2021 UCloud Technology Co., Ltd.
3+
*
4+
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
5+
* except in compliance with the License. You may obtain a copy of the License at
6+
*
7+
* <p>http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* <p>Unless required by applicable law or agreed to in writing, software distributed under the
10+
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
* express or implied. See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
package cn.ucloud.cloudwatch.client;
15+
16+
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest;
17+
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse;
18+
import cn.ucloud.cloudwatch.models.GetProductMetricsRequest;
19+
import cn.ucloud.cloudwatch.models.GetProductMetricsResponse;
20+
import cn.ucloud.cloudwatch.models.ListAlertRecordRequest;
21+
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse;
22+
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest;
23+
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse;
24+
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest;
25+
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse;
26+
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest;
27+
import cn.ucloud.cloudwatch.models.QueryMetricDataSetResponse;
28+
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryRequest;
29+
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse;
30+
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest;
31+
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse;
32+
import cn.ucloud.common.client.Client;
33+
import cn.ucloud.common.exception.UCloudException;
34+
35+
/** This client is used to call actions of **CloudWatch** service */
36+
public interface CloudWatchClientInterface extends Client {
37+
38+
/**
39+
* BindAlertStrategy - 绑定告警策略
40+
*
41+
* @param request Request object
42+
* @throws UCloudException Exception
43+
*/
44+
public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest request)
45+
throws UCloudException;
46+
47+
/**
48+
* GetProductMetrics - 获取云产品关联的指标列表
49+
*
50+
* @param request Request object
51+
* @throws UCloudException Exception
52+
*/
53+
public GetProductMetricsResponse getProductMetrics(GetProductMetricsRequest request)
54+
throws UCloudException;
55+
56+
/**
57+
* ListAlertRecord - 告警记录
58+
*
59+
* @param request Request object
60+
* @throws UCloudException Exception
61+
*/
62+
public ListAlertRecordResponse listAlertRecord(ListAlertRecordRequest request)
63+
throws UCloudException;
64+
65+
/**
66+
* ListAlertStrategy - 获取告警策略列表
67+
*
68+
* @param request Request object
69+
* @throws UCloudException Exception
70+
*/
71+
public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest request)
72+
throws UCloudException;
73+
74+
/**
75+
* ListMonitorProduct - 获取监控对象类型列表
76+
*
77+
* @param request Request object
78+
* @throws UCloudException Exception
79+
*/
80+
public ListMonitorProductResponse listMonitorProduct(ListMonitorProductRequest request)
81+
throws UCloudException;
82+
83+
/**
84+
* QueryMetricDataSet - 查询监控指标数据集
85+
*
86+
* @param request Request object
87+
* @throws UCloudException Exception
88+
*/
89+
public QueryMetricDataSetResponse queryMetricDataSet(QueryMetricDataSetRequest request)
90+
throws UCloudException;
91+
92+
/**
93+
* QueryMetricDataSummary - 获取资源看图属性列表
94+
*
95+
* @param request Request object
96+
* @throws UCloudException Exception
97+
*/
98+
public QueryMetricDataSummaryResponse queryMetricDataSummary(
99+
QueryMetricDataSummaryRequest request) throws UCloudException;
100+
101+
/**
102+
* UnBindAlertStrategy - 解绑告警策略
103+
*
104+
* @param request Request object
105+
* @throws UCloudException Exception
106+
*/
107+
public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyRequest request)
108+
throws UCloudException;
109+
}

0 commit comments

Comments
 (0)