Skip to content

Commit 48de489

Browse files
author
codezhang
committed
修改ftl,re produce pathx
1 parent d57f78d commit 48de489

258 files changed

Lines changed: 8117 additions & 1832 deletions

File tree

Some content is hidden

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

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<module>ucloud-sdk-java-udb</module>
2020
<module>ucloud-sdk-java-udpn</module>
2121
<module>ucloud-sdk-java-pathx</module>
22+
<module>ucloud-sdk-java-usql</module>
2223
</modules>
2324

2425
<name>ucloud-sdk-java</name>

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/DefaultPATHXClient.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @Description : PATHX 默认客户端接口实现
1212
* @Author : ucloud-sdk-generator
13-
* @Date : 2019-03-12 04:27
13+
* @Date : 2019-03-13 10:02
1414
**/
1515
public class DefaultPATHXClient extends DefaultUcloudClient implements PATHXClient {
1616
public DefaultPATHXClient(PATHXConfig config) {
@@ -417,6 +417,22 @@ public void deletePathXSSL(DeletePathXSSLParam param,
417417
}
418418
}
419419

420+
@Override
421+
public ModifyUGANameResult modifyUGAName(ModifyUGANameParam param) throws Exception {
422+
UcloudHttp http = new UcloudHttpImpl(ModifyUGANameResult.class);
423+
return (ModifyUGANameResult) http.doGet(param, config, null);
424+
}
425+
426+
@Override
427+
public void modifyUGAName(ModifyUGANameParam param,
428+
UcloudHandler<ModifyUGANameResult> handler, Boolean... asyncFlag) {
429+
UcloudHttp http = new UcloudHttpImpl(ModifyUGANameResult.class);
430+
try {
431+
http.doGet(param, config, handler, asyncFlag);
432+
} catch (Exception e) {
433+
}
434+
}
435+
420436
@Override
421437
public GetUPathPriceResult getUPathPrice(GetUPathPriceParam param) throws Exception {
422438
UcloudHttp http = new UcloudHttpImpl(GetUPathPriceResult.class);

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PATHXClient.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @Description : PATHX 客户端接口
99
* @Author : ucloud-sdk-generator
10-
* @Date : 2019-03-12 04:27
10+
* @Date : 2019-03-13 10:02
1111
**/
1212
public interface PATHXClient extends UcloudClient {
1313

@@ -536,6 +536,27 @@ void deletePathXSSL(DeletePathXSSLParam param,
536536
UcloudHandler<DeletePathXSSLResult> handler,
537537
Boolean... asyncFlag);
538538

539+
/**
540+
* 更改加速配置名字
541+
*
542+
* @param param 参数对象
543+
* @return 结果对象
544+
* @throws Exception
545+
*/
546+
ModifyUGANameResult modifyUGAName(
547+
ModifyUGANameParam param) throws Exception;
548+
549+
/**
550+
* 更改加速配置名字 (回调)
551+
*
552+
* @param param 参数对象
553+
* @param handler 回调接口
554+
* @param asyncFlag 是否异步
555+
*/
556+
void modifyUGAName(ModifyUGANameParam param,
557+
UcloudHandler<ModifyUGANameResult> handler,
558+
Boolean... asyncFlag);
559+
539560
/**
540561
* 获取UPath价格
541562
*

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/AddUGATaskParam.java

Lines changed: 5 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
import cn.ucloud.common.annotation.UcloudParam;
44
import cn.ucloud.common.pojo.BaseRequestParam;
5-
import cn.ucloud.common.pojo.Param;
65

7-
import javax.validation.ValidationException;
86
import javax.validation.constraints.NotEmpty;
9-
import java.util.ArrayList;
10-
import java.util.List;
117

128

139
/**
1410
* @Description : 添加加速配置端口 参数类
1511
* @Author : ucloud-sdk-generator
16-
* @Date : 2019-03-12 04:27
12+
* @Date : 2019-03-13 10:02
1713
**/
1814
public class AddUGATaskParam extends BaseRequestParam {
1915
/**
@@ -22,26 +18,11 @@ public class AddUGATaskParam extends BaseRequestParam {
2218
@UcloudParam("UGAId")
2319
@NotEmpty(message = "uGAId can not be empty")
2420
private String uGAId;
21+
// TODO 需要人工接入 AddUGATask =》 TCP.n
22+
// TODO 需要人工接入 AddUGATask =》 UDP.n
23+
// TODO 需要人工接入 AddUGATask =》 HTTP.n
24+
// TODO 需要人工接入 AddUGATask =》 HTTPS.n
2525

26-
/**
27-
* tcp 端口号
28-
*/
29-
private List<Integer> tcpPorts;
30-
31-
/**
32-
* udp 端口号
33-
*/
34-
private List<Integer> udpPorts;
35-
36-
/**
37-
* http 端口号
38-
*/
39-
private List<Integer> httpPorts;
40-
41-
/**
42-
* https 端口号
43-
*/
44-
private List<Integer> httpsPorts;
4526

4627
public AddUGATaskParam(String projectId
4728
, String uGAId
@@ -51,101 +32,6 @@ public AddUGATaskParam(String projectId
5132
this.uGAId = uGAId;
5233
}
5334

54-
@UcloudParam("tcpPorts")
55-
public List<Param> checkTCPPorts() throws ValidationException {
56-
List<Param> params = new ArrayList<>();
57-
if (tcpPorts != null && !tcpPorts.isEmpty()) {
58-
int size = tcpPorts.size();
59-
for (int i = 0; i < size; i++) {
60-
if (tcpPorts.get(i) == null){
61-
throw new ValidationException(String.format("tcpPorts[%d] can not be null",i));
62-
}else {
63-
params.add(new Param(String.format("TCP.%d",i),tcpPorts.get(i)));
64-
}
65-
}
66-
}
67-
return params;
68-
}
69-
70-
@UcloudParam("udpPorts")
71-
public List<Param> checkUCPPorts() throws ValidationException {
72-
List<Param> params = new ArrayList<>();
73-
if (udpPorts != null && !udpPorts.isEmpty()) {
74-
int size = udpPorts.size();
75-
for (int i = 0; i < size; i++) {
76-
if (udpPorts.get(i) == null){
77-
throw new ValidationException(String.format("udpPorts[%d] can not be null",i));
78-
}else {
79-
params.add(new Param(String.format("UDP.%d",i),udpPorts.get(i)));
80-
}
81-
}
82-
}
83-
return params;
84-
}
85-
86-
@UcloudParam("httpPorts")
87-
public List<Param> checkHTTPPorts() throws ValidationException {
88-
List<Param> params = new ArrayList<>();
89-
if (httpPorts != null && !httpPorts.isEmpty()) {
90-
int size = httpPorts.size();
91-
for (int i = 0; i < size; i++) {
92-
if (httpPorts.get(i) == null){
93-
throw new ValidationException(String.format("httpPorts[%d] can not be null",i));
94-
}else {
95-
params.add(new Param(String.format("HTTP.%d",i),httpPorts.get(i)));
96-
}
97-
}
98-
}
99-
return params;
100-
}
101-
102-
@UcloudParam("httpsPorts")
103-
public List<Param> checkHTTPSPorts() throws ValidationException {
104-
List<Param> params = new ArrayList<>();
105-
if (httpsPorts != null && !httpsPorts.isEmpty()) {
106-
int size = httpsPorts.size();
107-
for (int i = 0; i < size; i++) {
108-
if (httpsPorts.get(i) == null){
109-
throw new ValidationException(String.format("httpsPorts[%d] can not be null",i));
110-
}else {
111-
params.add(new Param(String.format("HTTPS.%d",i),httpsPorts.get(i)));
112-
}
113-
}
114-
}
115-
return params;
116-
}
117-
118-
public List<Integer> getTcpPorts() {
119-
return tcpPorts;
120-
}
121-
122-
public void setTcpPorts(List<Integer> tcpPorts) {
123-
this.tcpPorts = tcpPorts;
124-
}
125-
126-
public List<Integer> getUdpPorts() {
127-
return udpPorts;
128-
}
129-
130-
public void setUdpPorts(List<Integer> udpPorts) {
131-
this.udpPorts = udpPorts;
132-
}
133-
134-
public List<Integer> getHttpPorts() {
135-
return httpPorts;
136-
}
137-
138-
public void setHttpPorts(List<Integer> httpPorts) {
139-
this.httpPorts = httpPorts;
140-
}
141-
142-
public List<Integer> getHttpsPorts() {
143-
return httpsPorts;
144-
}
145-
146-
public void setHttpsPorts(List<Integer> httpsPorts) {
147-
this.httpsPorts = httpsPorts;
148-
}
14935

15036
public String getuGAId() {
15137
return this.uGAId;

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/AddUGATaskResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* @Description : 添加加速配置端口 结果类
88
* @Author : ucloud-sdk-generator
9-
* @Date : 2019-03-12 04:27
9+
* @Date : 2019-03-13 10:02
1010
**/
1111
public class AddUGATaskResult extends BaseResponseResult {
1212

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/AlarmRuler.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* @Description : 告警详情 模型类
88
* @Author : ucloud-sdk-generator
9-
* @Date : 2019-03-12 04:27
9+
* @Date : 2019-03-13 10:02
1010
**/
1111
public class AlarmRuler {
1212
/**
@@ -49,7 +49,6 @@ public void setAlarmStrategy(String alarmStrategy) {
4949
this.alarmStrategy = alarmStrategy;
5050
}
5151

52-
5352
public String getCompare() {
5453
return this.compare;
5554
}
@@ -58,7 +57,6 @@ public void setCompare(String compare) {
5857
this.compare = compare;
5958
}
6059

61-
6260
public Integer getContactGroupId() {
6361
return this.contactGroupId;
6462
}
@@ -67,7 +65,6 @@ public void setContactGroupId(Integer contactGroupId) {
6765
this.contactGroupId = contactGroupId;
6866
}
6967

70-
7168
public String getMetricName() {
7269
return this.metricName;
7370
}
@@ -76,7 +73,6 @@ public void setMetricName(String metricName) {
7673
this.metricName = metricName;
7774
}
7875

79-
8076
public Integer getThreshold() {
8177
return this.threshold;
8278
}
@@ -85,7 +81,6 @@ public void setThreshold(Integer threshold) {
8581
this.threshold = threshold;
8682
}
8783

88-
8984
public Integer getTriggerCount() {
9085
return this.triggerCount;
9186
}

ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/model/AppleUGAAInfo.java

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @Description : 苹果审核加速通道信息 模型类
1010
* @Author : ucloud-sdk-generator
11-
* @Date : 2019-03-12 04:27
11+
* @Date : 2019-03-13 10:02
1212
**/
1313
public class AppleUGAAInfo {
1414
/**
@@ -66,7 +66,6 @@ public void setuGAId(String uGAId) {
6666
this.uGAId = uGAId;
6767
}
6868

69-
7069
public String getcName() {
7170
return this.cName;
7271
}
@@ -75,6 +74,13 @@ public void setcName(String cName) {
7574
this.cName = cName;
7675
}
7776

77+
public List<String> getiPList() {
78+
return this.iPList;
79+
}
80+
81+
public void setiPList(List<String> iPList) {
82+
this.iPList = iPList;
83+
}
7884

7985
public String getuGAName() {
8086
return this.uGAName;
@@ -84,7 +90,6 @@ public void setuGAName(String uGAName) {
8490
this.uGAName = uGAName;
8591
}
8692

87-
8893
public String getDomain() {
8994
return this.domain;
9095
}
@@ -94,6 +99,14 @@ public void setDomain(String domain) {
9499
}
95100

96101

102+
public List<UGAATask> getTaskSet() {
103+
return this.taskSet;
104+
}
105+
106+
public void setTaskSet(List<UGAATask> taskSet) {
107+
this.taskSet = taskSet;
108+
}
109+
97110
public String getChargeType() {
98111
return this.chargeType;
99112
}
@@ -102,7 +115,6 @@ public void setChargeType(String chargeType) {
102115
this.chargeType = chargeType;
103116
}
104117

105-
106118
public String getCreateTime() {
107119
return this.createTime;
108120
}
@@ -111,7 +123,6 @@ public void setCreateTime(String createTime) {
111123
this.createTime = createTime;
112124
}
113125

114-
115126
public String getExpireTime() {
116127
return this.expireTime;
117128
}

0 commit comments

Comments
 (0)