-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from ucloud-bot/codegen/1732786268
sdk: rolling update for 1.2.34-release
- Loading branch information
Showing
90 changed files
with
4,916 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.33-release | ||
1.2.34-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>ucloud-sdk-java</artifactId> | ||
<groupId>cn.ucloud</groupId> | ||
<version>1.2.34-release</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ucloud-sdk-java-cloudwatch</artifactId> | ||
<version>1.2.34-release</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>cn.ucloud</groupId> | ||
<artifactId>ucloud-sdk-java-common</artifactId> | ||
<version>1.2.34-release</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
140 changes: 140 additions & 0 deletions
140
ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/client/CloudWatchClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/** | ||
* Copyright 2021 UCloud Technology Co., Ltd. | ||
* | ||
* <p>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 | ||
* | ||
* <p>http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* <p>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.cloudwatch.client; | ||
|
||
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse; | ||
import cn.ucloud.cloudwatch.models.GetProductMetricsRequest; | ||
import cn.ucloud.cloudwatch.models.GetProductMetricsResponse; | ||
import cn.ucloud.cloudwatch.models.ListAlertRecordRequest; | ||
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse; | ||
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse; | ||
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest; | ||
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSetResponse; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryRequest; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse; | ||
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse; | ||
import cn.ucloud.common.client.DefaultClient; | ||
import cn.ucloud.common.config.Config; | ||
import cn.ucloud.common.credential.Credential; | ||
import cn.ucloud.common.exception.UCloudException; | ||
|
||
/** This client is used to call actions of **CloudWatch** service */ | ||
public class CloudWatchClient extends DefaultClient implements CloudWatchClientInterface { | ||
public CloudWatchClient(Config config, Credential credential) { | ||
super(config, credential); | ||
} | ||
|
||
/** | ||
* BindAlertStrategy - 绑定告警策略 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest request) | ||
throws UCloudException { | ||
request.setAction("BindAlertStrategy"); | ||
return (BindAlertStrategyResponse) this.invoke(request, BindAlertStrategyResponse.class); | ||
} | ||
|
||
/** | ||
* GetProductMetrics - 获取云产品关联的指标列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public GetProductMetricsResponse getProductMetrics(GetProductMetricsRequest request) | ||
throws UCloudException { | ||
request.setAction("GetProductMetrics"); | ||
return (GetProductMetricsResponse) this.invoke(request, GetProductMetricsResponse.class); | ||
} | ||
|
||
/** | ||
* ListAlertRecord - 告警记录 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListAlertRecordResponse listAlertRecord(ListAlertRecordRequest request) | ||
throws UCloudException { | ||
request.setAction("ListAlertRecord"); | ||
return (ListAlertRecordResponse) this.invoke(request, ListAlertRecordResponse.class); | ||
} | ||
|
||
/** | ||
* ListAlertStrategy - 获取告警策略列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest request) | ||
throws UCloudException { | ||
request.setAction("ListAlertStrategy"); | ||
return (ListAlertStrategyResponse) this.invoke(request, ListAlertStrategyResponse.class); | ||
} | ||
|
||
/** | ||
* ListMonitorProduct - 获取监控对象类型列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListMonitorProductResponse listMonitorProduct(ListMonitorProductRequest request) | ||
throws UCloudException { | ||
request.setAction("ListMonitorProduct"); | ||
return (ListMonitorProductResponse) this.invoke(request, ListMonitorProductResponse.class); | ||
} | ||
|
||
/** | ||
* QueryMetricDataSet - 查询监控指标数据集 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMetricDataSetResponse queryMetricDataSet(QueryMetricDataSetRequest request) | ||
throws UCloudException { | ||
request.setAction("QueryMetricDataSet"); | ||
return (QueryMetricDataSetResponse) this.invoke(request, QueryMetricDataSetResponse.class); | ||
} | ||
|
||
/** | ||
* QueryMetricDataSummary - 获取资源看图属性列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMetricDataSummaryResponse queryMetricDataSummary( | ||
QueryMetricDataSummaryRequest request) throws UCloudException { | ||
request.setAction("QueryMetricDataSummary"); | ||
return (QueryMetricDataSummaryResponse) | ||
this.invoke(request, QueryMetricDataSummaryResponse.class); | ||
} | ||
|
||
/** | ||
* UnBindAlertStrategy - 解绑告警策略 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyRequest request) | ||
throws UCloudException { | ||
request.setAction("UnBindAlertStrategy"); | ||
return (UnBindAlertStrategyResponse) | ||
this.invoke(request, UnBindAlertStrategyResponse.class); | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
...-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/client/CloudWatchClientInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/** | ||
* Copyright 2021 UCloud Technology Co., Ltd. | ||
* | ||
* <p>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 | ||
* | ||
* <p>http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* <p>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.cloudwatch.client; | ||
|
||
import cn.ucloud.cloudwatch.models.BindAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.BindAlertStrategyResponse; | ||
import cn.ucloud.cloudwatch.models.GetProductMetricsRequest; | ||
import cn.ucloud.cloudwatch.models.GetProductMetricsResponse; | ||
import cn.ucloud.cloudwatch.models.ListAlertRecordRequest; | ||
import cn.ucloud.cloudwatch.models.ListAlertRecordResponse; | ||
import cn.ucloud.cloudwatch.models.ListAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.ListAlertStrategyResponse; | ||
import cn.ucloud.cloudwatch.models.ListMonitorProductRequest; | ||
import cn.ucloud.cloudwatch.models.ListMonitorProductResponse; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSetRequest; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSetResponse; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryRequest; | ||
import cn.ucloud.cloudwatch.models.QueryMetricDataSummaryResponse; | ||
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyRequest; | ||
import cn.ucloud.cloudwatch.models.UnBindAlertStrategyResponse; | ||
import cn.ucloud.common.client.Client; | ||
import cn.ucloud.common.exception.UCloudException; | ||
|
||
/** This client is used to call actions of **CloudWatch** service */ | ||
public interface CloudWatchClientInterface extends Client { | ||
|
||
/** | ||
* BindAlertStrategy - 绑定告警策略 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public BindAlertStrategyResponse bindAlertStrategy(BindAlertStrategyRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* GetProductMetrics - 获取云产品关联的指标列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public GetProductMetricsResponse getProductMetrics(GetProductMetricsRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* ListAlertRecord - 告警记录 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListAlertRecordResponse listAlertRecord(ListAlertRecordRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* ListAlertStrategy - 获取告警策略列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListAlertStrategyResponse listAlertStrategy(ListAlertStrategyRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* ListMonitorProduct - 获取监控对象类型列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public ListMonitorProductResponse listMonitorProduct(ListMonitorProductRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* QueryMetricDataSet - 查询监控指标数据集 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMetricDataSetResponse queryMetricDataSet(QueryMetricDataSetRequest request) | ||
throws UCloudException; | ||
|
||
/** | ||
* QueryMetricDataSummary - 获取资源看图属性列表 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMetricDataSummaryResponse queryMetricDataSummary( | ||
QueryMetricDataSummaryRequest request) throws UCloudException; | ||
|
||
/** | ||
* UnBindAlertStrategy - 解绑告警策略 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public UnBindAlertStrategyResponse unBindAlertStrategy(UnBindAlertStrategyRequest request) | ||
throws UCloudException; | ||
} |
Oops, something went wrong.