Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: rolling update for 1.2.34-release #98

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.33-release
1.2.34-release
4 changes: 2 additions & 2 deletions examples/generic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.33-release</version>
<version>1.2.34-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<dependency>
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java-common</artifactId>
<version>1.2.33-release</version>
<version>1.2.34-release</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions examples/uhost/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>ucloud-sdk-java</artifactId>
<groupId>cn.ucloud</groupId>
<version>1.2.33-release</version>
<version>1.2.34-release</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,7 +18,7 @@
<dependency>
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java-uhost</artifactId>
<version>1.2.33-release</version>
<version>1.2.34-release</version>
</dependency>
</dependencies>
</project>
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<groupId>cn.ucloud</groupId>
<artifactId>ucloud-sdk-java</artifactId>
<packaging>pom</packaging>
<version>1.2.33-release</version>
<version>1.2.34-release</version>
<modules>
<module>ucloud-sdk-java-common</module>
<module>ucloud-sdk-java-cloudwatch</module>
<module>ucloud-sdk-java-cube</module>
<module>ucloud-sdk-java-ipsecvpn</module>
<module>ucloud-sdk-java-pathx</module>
Expand Down
49 changes: 49 additions & 0 deletions ucloud-sdk-java-cloudwatch/pom.xml
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>
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);
}
}
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;
}
Loading
Loading