-
Notifications
You must be signed in to change notification settings - Fork 286
Expand file tree
/
Copy pathCdcClient.java
More file actions
294 lines (266 loc) · 12.6 KB
/
CdcClient.java
File metadata and controls
294 lines (266 loc) · 12.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
/*
* Copyright (c) 2017-2025 Tencent. All Rights Reserved.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 com.tencentcloudapi.cdc.v20201214;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.cdc.v20201214.models.*;
public class CdcClient extends AbstractClient{
private static String endpoint = "cdc.tencentcloudapi.com";
private static String service = "cdc";
private static String version = "2020-12-14";
public CdcClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public CdcClient(Credential credential, String region, ClientProfile profile) {
super(CdcClient.endpoint, CdcClient.version, credential, region, profile);
}
/**
*创建专用集群
* @param req CreateDedicatedClusterRequest
* @return CreateDedicatedClusterResponse
* @throws TencentCloudSDKException
*/
public CreateDedicatedClusterResponse CreateDedicatedCluster(CreateDedicatedClusterRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDedicatedCluster", CreateDedicatedClusterResponse.class);
}
/**
*创建云上镜像缓存到本地专用集群中
* @param req CreateDedicatedClusterImageCacheRequest
* @return CreateDedicatedClusterImageCacheResponse
* @throws TencentCloudSDKException
*/
public CreateDedicatedClusterImageCacheResponse CreateDedicatedClusterImageCache(CreateDedicatedClusterImageCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDedicatedClusterImageCache", CreateDedicatedClusterImageCacheResponse.class);
}
/**
*创建专用集群订单
* @param req CreateDedicatedClusterOrderRequest
* @return CreateDedicatedClusterOrderResponse
* @throws TencentCloudSDKException
*/
public CreateDedicatedClusterOrderResponse CreateDedicatedClusterOrder(CreateDedicatedClusterOrderRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDedicatedClusterOrder", CreateDedicatedClusterOrderResponse.class);
}
/**
*创建站点
* @param req CreateSiteRequest
* @return CreateSiteResponse
* @throws TencentCloudSDKException
*/
public CreateSiteResponse CreateSite(CreateSiteRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSite", CreateSiteResponse.class);
}
/**
*删除本地专用集群的云上镜像缓存
* @param req DeleteDedicatedClusterImageCacheRequest
* @return DeleteDedicatedClusterImageCacheResponse
* @throws TencentCloudSDKException
*/
public DeleteDedicatedClusterImageCacheResponse DeleteDedicatedClusterImageCache(DeleteDedicatedClusterImageCacheRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteDedicatedClusterImageCache", DeleteDedicatedClusterImageCacheResponse.class);
}
/**
*删除专用集群
* @param req DeleteDedicatedClustersRequest
* @return DeleteDedicatedClustersResponse
* @throws TencentCloudSDKException
*/
public DeleteDedicatedClustersResponse DeleteDedicatedClusters(DeleteDedicatedClustersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteDedicatedClusters", DeleteDedicatedClustersResponse.class);
}
/**
*删除站点
* @param req DeleteSitesRequest
* @return DeleteSitesResponse
* @throws TencentCloudSDKException
*/
public DeleteSitesResponse DeleteSites(DeleteSitesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSites", DeleteSitesResponse.class);
}
/**
*查询本地专用集群云硬盘仓库信息
* @param req DescribeDedicatedClusterCbsStatisticsRequest
* @return DescribeDedicatedClusterCbsStatisticsResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterCbsStatisticsResponse DescribeDedicatedClusterCbsStatistics(DescribeDedicatedClusterCbsStatisticsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterCbsStatistics", DescribeDedicatedClusterCbsStatisticsResponse.class);
}
/**
*查询专用集群内cos的容量信息
* @param req DescribeDedicatedClusterCosCapacityRequest
* @return DescribeDedicatedClusterCosCapacityResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterCosCapacityResponse DescribeDedicatedClusterCosCapacity(DescribeDedicatedClusterCosCapacityRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterCosCapacity", DescribeDedicatedClusterCosCapacityResponse.class);
}
/**
*查询专用集群内宿主机的统计信息
* @param req DescribeDedicatedClusterHostStatisticsRequest
* @return DescribeDedicatedClusterHostStatisticsResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterHostStatisticsResponse DescribeDedicatedClusterHostStatistics(DescribeDedicatedClusterHostStatisticsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterHostStatistics", DescribeDedicatedClusterHostStatisticsResponse.class);
}
/**
*查询专用集群宿主机信息
* @param req DescribeDedicatedClusterHostsRequest
* @return DescribeDedicatedClusterHostsResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterHostsResponse DescribeDedicatedClusterHosts(DescribeDedicatedClusterHostsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterHosts", DescribeDedicatedClusterHostsResponse.class);
}
/**
*查询专用集群支持的实例规格列表
* @param req DescribeDedicatedClusterInstanceTypesRequest
* @return DescribeDedicatedClusterInstanceTypesResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterInstanceTypesResponse DescribeDedicatedClusterInstanceTypes(DescribeDedicatedClusterInstanceTypesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterInstanceTypes", DescribeDedicatedClusterInstanceTypesResponse.class);
}
/**
*查询专用集群订单列表
* @param req DescribeDedicatedClusterOrdersRequest
* @return DescribeDedicatedClusterOrdersResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterOrdersResponse DescribeDedicatedClusterOrders(DescribeDedicatedClusterOrdersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterOrders", DescribeDedicatedClusterOrdersResponse.class);
}
/**
*查询专用集群概览信息
* @param req DescribeDedicatedClusterOverviewRequest
* @return DescribeDedicatedClusterOverviewResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterOverviewResponse DescribeDedicatedClusterOverview(DescribeDedicatedClusterOverviewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterOverview", DescribeDedicatedClusterOverviewResponse.class);
}
/**
*查询专有集群配置列表
* @param req DescribeDedicatedClusterTypesRequest
* @return DescribeDedicatedClusterTypesResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClusterTypesResponse DescribeDedicatedClusterTypes(DescribeDedicatedClusterTypesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusterTypes", DescribeDedicatedClusterTypesResponse.class);
}
/**
*查询专用集群列表
* @param req DescribeDedicatedClustersRequest
* @return DescribeDedicatedClustersResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedClustersResponse DescribeDedicatedClusters(DescribeDedicatedClustersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedClusters", DescribeDedicatedClustersResponse.class);
}
/**
*查询专用集群支持的可用区列表
* @param req DescribeDedicatedSupportedZonesRequest
* @return DescribeDedicatedSupportedZonesResponse
* @throws TencentCloudSDKException
*/
public DescribeDedicatedSupportedZonesResponse DescribeDedicatedSupportedZones(DescribeDedicatedSupportedZonesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDedicatedSupportedZones", DescribeDedicatedSupportedZonesResponse.class);
}
/**
*查询站点列表
* @param req DescribeSitesRequest
* @return DescribeSitesResponse
* @throws TencentCloudSDKException
*/
public DescribeSitesResponse DescribeSites(DescribeSitesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSites", DescribeSitesResponse.class);
}
/**
*查询站点详情
* @param req DescribeSitesDetailRequest
* @return DescribeSitesDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeSitesDetailResponse DescribeSitesDetail(DescribeSitesDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSitesDetail", DescribeSitesDetailResponse.class);
}
/**
*修改本地专用集群信息
* @param req ModifyDedicatedClusterInfoRequest
* @return ModifyDedicatedClusterInfoResponse
* @throws TencentCloudSDKException
*/
public ModifyDedicatedClusterInfoResponse ModifyDedicatedClusterInfo(ModifyDedicatedClusterInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDedicatedClusterInfo", ModifyDedicatedClusterInfoResponse.class);
}
/**
*修改大订单、小订单的状态
* @param req ModifyOrderStatusRequest
* @return ModifyOrderStatusResponse
* @throws TencentCloudSDKException
*/
public ModifyOrderStatusResponse ModifyOrderStatus(ModifyOrderStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyOrderStatus", ModifyOrderStatusResponse.class);
}
/**
*修改机房设备信息
* @param req ModifySiteDeviceInfoRequest
* @return ModifySiteDeviceInfoResponse
* @throws TencentCloudSDKException
*/
public ModifySiteDeviceInfoResponse ModifySiteDeviceInfo(ModifySiteDeviceInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySiteDeviceInfo", ModifySiteDeviceInfoResponse.class);
}
/**
*修改机房信息
* @param req ModifySiteInfoRequest
* @return ModifySiteInfoResponse
* @throws TencentCloudSDKException
*/
public ModifySiteInfoResponse ModifySiteInfo(ModifySiteInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySiteInfo", ModifySiteInfoResponse.class);
}
}