/
DomainClient.java
305 lines (276 loc) · 13.4 KB
/
DomainClient.java
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
295
296
297
298
299
300
301
302
303
304
305
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.domain.v20180808;
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.domain.v20180808.models.*;
public class DomainClient extends AbstractClient{
private static String endpoint = "domain.tencentcloudapi.com";
private static String service = "domain";
private static String version = "2018-08-08";
public DomainClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public DomainClient(Credential credential, String region, ClientProfile profile) {
super(DomainClient.endpoint, DomainClient.version, credential, region, profile);
}
/**
*This API is used to bulk modify DNS servers for domains.
* @param req BatchModifyIntlDomainDNSRequest
* @return BatchModifyIntlDomainDNSResponse
* @throws TencentCloudSDKException
*/
public BatchModifyIntlDomainDNSResponse BatchModifyIntlDomainDNS(BatchModifyIntlDomainDNSRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchModifyIntlDomainDNS", BatchModifyIntlDomainDNSResponse.class);
}
/**
*This API is used to bulk modify registrant information.
* @param req BatchModifyIntlDomainInfoRequest
* @return BatchModifyIntlDomainInfoResponse
* @throws TencentCloudSDKException
*/
public BatchModifyIntlDomainInfoResponse BatchModifyIntlDomainInfo(BatchModifyIntlDomainInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "BatchModifyIntlDomainInfo", BatchModifyIntlDomainInfoResponse.class);
}
/**
*This API is used to check whether a domain is available for registration.
* @param req CheckIntlDomainNewRequest
* @return CheckIntlDomainNewResponse
* @throws TencentCloudSDKException
*/
public CheckIntlDomainNewResponse CheckIntlDomainNew(CheckIntlDomainNewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CheckIntlDomainNew", CheckIntlDomainNewResponse.class);
}
/**
*This API is used to bulk register domains.
* @param req CreateIntlDomainBatchRequest
* @return CreateIntlDomainBatchResponse
* @throws TencentCloudSDKException
*/
public CreateIntlDomainBatchResponse CreateIntlDomainBatch(CreateIntlDomainBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateIntlDomainBatch", CreateIntlDomainBatchResponse.class);
}
/**
*This API is used to verify a mobile number or an email address via a verification code.
* @param req CreateIntlPhoneEmailRequest
* @return CreateIntlPhoneEmailResponse
* @throws TencentCloudSDKException
*/
public CreateIntlPhoneEmailResponse CreateIntlPhoneEmail(CreateIntlPhoneEmailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateIntlPhoneEmail", CreateIntlPhoneEmailResponse.class);
}
/**
*This API is used to add a registrant profile.
* @param req CreateIntlTemplateRequest
* @return CreateIntlTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateIntlTemplateResponse CreateIntlTemplate(CreateIntlTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateIntlTemplate", CreateIntlTemplateResponse.class);
}
/**
*This API is used to delete a mobile number or an email address.
* @param req DeleteIntlPhoneEmailRequest
* @return DeleteIntlPhoneEmailResponse
* @throws TencentCloudSDKException
*/
public DeleteIntlPhoneEmailResponse DeleteIntlPhoneEmail(DeleteIntlPhoneEmailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteIntlPhoneEmail", DeleteIntlPhoneEmailResponse.class);
}
/**
*This API is used to delete a registrant profile.
* @param req DeleteIntlTemplateRequest
* @return DeleteIntlTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteIntlTemplateResponse DeleteIntlTemplate(DeleteIntlTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteIntlTemplate", DeleteIntlTemplateResponse.class);
}
/**
*This API is used to query the status of a bulk task.
* @param req DescribeIntlBatchDetailStatusRequest
* @return DescribeIntlBatchDetailStatusResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlBatchDetailStatusResponse DescribeIntlBatchDetailStatus(DescribeIntlBatchDetailStatusRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlBatchDetailStatus", DescribeIntlBatchDetailStatusResponse.class);
}
/**
*This API is used to query the logs of bulk domain purchase.
* @param req DescribeIntlBatchOperationLogsRequest
* @return DescribeIntlBatchOperationLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlBatchOperationLogsResponse DescribeIntlBatchOperationLogs(DescribeIntlBatchOperationLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlBatchOperationLogs", DescribeIntlBatchOperationLogsResponse.class);
}
/**
*This API is used to query domain information.
* @param req DescribeIntlDomainRequest
* @return DescribeIntlDomainResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlDomainResponse DescribeIntlDomain(DescribeIntlDomainRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlDomain", DescribeIntlDomainResponse.class);
}
/**
*This API is used to get the log details of bulk domain purchase.
* @param req DescribeIntlDomainBatchDetailsRequest
* @return DescribeIntlDomainBatchDetailsResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlDomainBatchDetailsResponse DescribeIntlDomainBatchDetails(DescribeIntlDomainBatchDetailsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlDomainBatchDetails", DescribeIntlDomainBatchDetailsResponse.class);
}
/**
*This API is used to query the "My domains" list.
* @param req DescribeIntlDomainListRequest
* @return DescribeIntlDomainListResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlDomainListResponse DescribeIntlDomainList(DescribeIntlDomainListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlDomainList", DescribeIntlDomainListResponse.class);
}
/**
*This API is used to get the price list by domain suffix.
* @param req DescribeIntlDomainPriceNewListRequest
* @return DescribeIntlDomainPriceNewListResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlDomainPriceNewListResponse DescribeIntlDomainPriceNewList(DescribeIntlDomainPriceNewListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlDomainPriceNewList", DescribeIntlDomainPriceNewListResponse.class);
}
/**
*This API is used to get the list of verified mobile numbers and email addresses.
* @param req DescribeIntlPhoneEmailListRequest
* @return DescribeIntlPhoneEmailListResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlPhoneEmailListResponse DescribeIntlPhoneEmailList(DescribeIntlPhoneEmailListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlPhoneEmailList", DescribeIntlPhoneEmailListResponse.class);
}
/**
*This API is used to get the details of a registrant profile.
* @param req DescribeIntlTemplateRequest
* @return DescribeIntlTemplateResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlTemplateResponse DescribeIntlTemplate(DescribeIntlTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlTemplate", DescribeIntlTemplateResponse.class);
}
/**
*This API is used to get the list of registrant profiles.
* @param req DescribeIntlTemplateListRequest
* @return DescribeIntlTemplateListResponse
* @throws TencentCloudSDKException
*/
public DescribeIntlTemplateListResponse DescribeIntlTemplateList(DescribeIntlTemplateListRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeIntlTemplateList", DescribeIntlTemplateListResponse.class);
}
/**
*This API is used to bulk transfer domains to another account.
* @param req ModifyOwnerIntlBatchRequest
* @return ModifyOwnerIntlBatchResponse
* @throws TencentCloudSDKException
*/
public ModifyOwnerIntlBatchResponse ModifyOwnerIntlBatch(ModifyOwnerIntlBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyOwnerIntlBatch", ModifyOwnerIntlBatchResponse.class);
}
/**
*This API is used to bulk renew domains.
* @param req RenewIntlDomainBatchRequest
* @return RenewIntlDomainBatchResponse
* @throws TencentCloudSDKException
*/
public RenewIntlDomainBatchResponse RenewIntlDomainBatch(RenewIntlDomainBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RenewIntlDomainBatch", RenewIntlDomainBatchResponse.class);
}
/**
*This API is used to send a verification code to a mobile number or an email address.
* @param req SendIntlPhoneEmailCodeRequest
* @return SendIntlPhoneEmailCodeResponse
* @throws TencentCloudSDKException
*/
public SendIntlPhoneEmailCodeResponse SendIntlPhoneEmailCode(SendIntlPhoneEmailCodeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SendIntlPhoneEmailCode", SendIntlPhoneEmailCodeResponse.class);
}
/**
*This API is used to set auto-renewal.
* @param req SetIntlDomainAutoRenewRequest
* @return SetIntlDomainAutoRenewResponse
* @throws TencentCloudSDKException
*/
public SetIntlDomainAutoRenewResponse SetIntlDomainAutoRenew(SetIntlDomainAutoRenewRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SetIntlDomainAutoRenew", SetIntlDomainAutoRenewResponse.class);
}
/**
*This API is used to bulk transfer domains in.
* @param req TransferInIntlDomainBatchRequest
* @return TransferInIntlDomainBatchResponse
* @throws TencentCloudSDKException
*/
public TransferInIntlDomainBatchResponse TransferInIntlDomainBatch(TransferInIntlDomainBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "TransferInIntlDomainBatch", TransferInIntlDomainBatchResponse.class);
}
/**
*This API is used to bulk set transfer prohibition for domains.
* @param req TransferProhibitionIntlBatchRequest
* @return TransferProhibitionIntlBatchResponse
* @throws TencentCloudSDKException
*/
public TransferProhibitionIntlBatchResponse TransferProhibitionIntlBatch(TransferProhibitionIntlBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "TransferProhibitionIntlBatch", TransferProhibitionIntlBatchResponse.class);
}
/**
*This API is used to bulk set update prohibition for domains.
* @param req UpdateProhibitionIntlBatchRequest
* @return UpdateProhibitionIntlBatchResponse
* @throws TencentCloudSDKException
*/
public UpdateProhibitionIntlBatchResponse UpdateProhibitionIntlBatch(UpdateProhibitionIntlBatchRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpdateProhibitionIntlBatch", UpdateProhibitionIntlBatchResponse.class);
}
}