Skip to content

Commit 3fed758

Browse files
author
fengyikai
committed
证书管理(kcm):ExtendCertificate 证书延期接口对外暴露;费用账单(bill-union):实例按日汇总api更新;
1 parent 7862bf9 commit 3fed758

6 files changed

Lines changed: 1116 additions & 36 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.ksyun</groupId>
88
<artifactId>ksyun-java-sdk</artifactId>
9-
<version>1.8.7.8</version>
9+
<version>1.8.7.9</version>
1010
<packaging>jar</packaging>
1111

1212
<name>KSYUN SDK for Java</name>

src/main/java/ksyun/client/bill_union/queryinstanceconsume.v20221222/QueryInstanceConsumeClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public QueryInstanceConsumeClient(Credential credential) {
4444
*/
4545
public QueryInstanceConsumeResponse doPostSend(String path, QueryInstanceConsumeRequest requestObj) throws RuntimeException {
4646
Map<String, String> head = new HashMap<>();
47-
head.put("Content-Type", "application/json");
47+
head.put("Content-Type", "application/x-www-form-urlencoded");
4848
return doPostSend(path, requestObj, head);
4949
}
5050

@@ -63,7 +63,7 @@ public QueryInstanceConsumeResponse doPostSend(String path, QueryInstanceConsume
6363
UrlPathParams urlPathParams,
6464
Map<String, String> customHeaders) throws RuntimeException {
6565
Map<String, String> head = new HashMap<>();
66-
head.put("Content-Type", "application/json");
66+
head.put("Content-Type", "application/x-www-form-urlencoded");
6767
if (customHeaders != null && !customHeaders.isEmpty()) {
6868
head.putAll(customHeaders);
6969
}
@@ -111,7 +111,7 @@ public QueryInstanceConsumeResponse doPostSend(String path, QueryInstanceConsume
111111
*/
112112
public QueryInstanceConsumeResponse doGetSend(String path, QueryInstanceConsumeRequest requestObj) throws RuntimeException {
113113
Map<String, String> head = new HashMap<>();
114-
head.put("Content-Type", "application/json");
114+
head.put("Content-Type", "application/x-www-form-urlencoded");
115115
return doGetSend(path, requestObj, head);
116116
}
117117

@@ -144,7 +144,7 @@ public QueryInstanceConsumeResponse doGetSend(String path, QueryInstanceConsumeR
144144
UrlPathParams urlPathParams,
145145
Map<String, String> customHeaders) throws RuntimeException {
146146
Map<String, String> head = new HashMap<>();
147-
head.put("Content-Type", "application/json");
147+
head.put("Content-Type", "application/x-www-form-urlencoded");
148148
if (customHeaders != null && !customHeaders.isEmpty()) {
149149
head.putAll(customHeaders);
150150
}
@@ -162,7 +162,7 @@ public QueryInstanceConsumeResponse doGetSend(String path, QueryInstanceConsumeR
162162
*/
163163
public QueryInstanceConsumeResponse doPutSend(String path, QueryInstanceConsumeRequest requestObj) throws RuntimeException {
164164
Map<String, String> head = new HashMap<>();
165-
head.put("Content-Type", "application/json");
165+
head.put("Content-Type", "application/x-www-form-urlencoded");
166166
return doPutSend(path, requestObj, head);
167167
}
168168

@@ -195,7 +195,7 @@ public QueryInstanceConsumeResponse doPutSend(String path, QueryInstanceConsumeR
195195
UrlPathParams urlPathParams,
196196
Map<String, String> customHeaders) throws RuntimeException {
197197
Map<String, String> head = new HashMap<>();
198-
head.put("Content-Type", "application/json");
198+
head.put("Content-Type", "application/x-www-form-urlencoded");
199199
if (customHeaders != null && !customHeaders.isEmpty()) {
200200
head.putAll(customHeaders);
201201
}
@@ -213,7 +213,7 @@ public QueryInstanceConsumeResponse doPutSend(String path, QueryInstanceConsumeR
213213
*/
214214
public QueryInstanceConsumeResponse doDeleteSend(String path, QueryInstanceConsumeRequest requestObj) throws RuntimeException {
215215
Map<String, String> head = new HashMap<>();
216-
head.put("Content-Type", "application/json");
216+
head.put("Content-Type", "application/x-www-form-urlencoded");
217217
return doDeleteSend(path, requestObj, head);
218218
}
219219

@@ -246,7 +246,7 @@ public QueryInstanceConsumeResponse doDeleteSend(String path, QueryInstanceConsu
246246
UrlPathParams urlPathParams,
247247
Map<String, String> customHeaders) throws RuntimeException {
248248
Map<String, String> head = new HashMap<>();
249-
head.put("Content-Type", "application/json");
249+
head.put("Content-Type", "application/x-www-form-urlencoded");
250250
if (customHeaders != null && !customHeaders.isEmpty()) {
251251
head.putAll(customHeaders);
252252
}
@@ -268,7 +268,7 @@ public QueryInstanceConsumeResponse doDeleteSend(String path, QueryInstanceConsu
268268
private QueryInstanceConsumeResponse executeWithV2(String method, String path, QueryInstanceConsumeRequest requestObj,
269269
Map<String, String> head, UrlPathParams urlPathParams) throws RuntimeException {
270270
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
271-
requestHeaders.putIfAbsent("Content-Type", "application/json");
271+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
272272

273273
// 调用底层 V2 方法获取完整响应
274274
HttpResponseWrapper wrapper = doRpcV2(path, requestObj, requestHeaders, method, urlPathParams);
@@ -323,7 +323,7 @@ private QueryInstanceConsumeResponse executeWithV2(String method, String path, Q
323323
*/
324324
public HttpResponseWrapper doPostWithContextV2(String path, QueryInstanceConsumeRequest requestObj) {
325325
Map<String, String> head = new HashMap<>();
326-
head.put("Content-Type", "application/json");
326+
head.put("Content-Type", "application/x-www-form-urlencoded");
327327
return doPostWithContextV2(path, requestObj, head);
328328
}
329329

@@ -341,7 +341,7 @@ public HttpResponseWrapper doPostWithContextV2(String path, QueryInstanceConsume
341341
*/
342342
public HttpResponseWrapper doPostWithContextV2(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) {
343343
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
344-
requestHeaders.putIfAbsent("Content-Type", "application/json");
344+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
345345
return doRpcV2(path, requestObj, requestHeaders, "post", null);
346346
}
347347

@@ -358,7 +358,7 @@ public HttpResponseWrapper doPostWithContextV2(String path, QueryInstanceConsume
358358
*/
359359
public HttpResponseWrapper doGetWithContextV2(String path, QueryInstanceConsumeRequest requestObj) {
360360
Map<String, String> head = new HashMap<>();
361-
head.put("Content-Type", "application/json");
361+
head.put("Content-Type", "application/x-www-form-urlencoded");
362362
return doGetWithContextV2(path, requestObj, head);
363363
}
364364

@@ -376,7 +376,7 @@ public HttpResponseWrapper doGetWithContextV2(String path, QueryInstanceConsumeR
376376
*/
377377
public HttpResponseWrapper doGetWithContextV2(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) {
378378
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
379-
requestHeaders.putIfAbsent("Content-Type", "application/json");
379+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
380380
return doRpcV2(path, requestObj, requestHeaders, "get", null);
381381
}
382382

@@ -393,7 +393,7 @@ public HttpResponseWrapper doGetWithContextV2(String path, QueryInstanceConsumeR
393393
*/
394394
public HttpResponseWrapper doPutWithContextV2(String path, QueryInstanceConsumeRequest requestObj) {
395395
Map<String, String> head = new HashMap<>();
396-
head.put("Content-Type", "application/json");
396+
head.put("Content-Type", "application/x-www-form-urlencoded");
397397
return doPutWithContextV2(path, requestObj, head);
398398
}
399399

@@ -411,7 +411,7 @@ public HttpResponseWrapper doPutWithContextV2(String path, QueryInstanceConsumeR
411411
*/
412412
public HttpResponseWrapper doPutWithContextV2(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) {
413413
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
414-
requestHeaders.putIfAbsent("Content-Type", "application/json");
414+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
415415
return doRpcV2(path, requestObj, requestHeaders, "put", null);
416416
}
417417

@@ -428,7 +428,7 @@ public HttpResponseWrapper doPutWithContextV2(String path, QueryInstanceConsumeR
428428
*/
429429
public HttpResponseWrapper doDeleteWithContextV2(String path, QueryInstanceConsumeRequest requestObj) {
430430
Map<String, String> head = new HashMap<>();
431-
head.put("Content-Type", "application/json");
431+
head.put("Content-Type", "application/x-www-form-urlencoded");
432432
return doDeleteWithContextV2(path, requestObj, head);
433433
}
434434

@@ -446,7 +446,7 @@ public HttpResponseWrapper doDeleteWithContextV2(String path, QueryInstanceConsu
446446
*/
447447
public HttpResponseWrapper doDeleteWithContextV2(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) {
448448
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
449-
requestHeaders.putIfAbsent("Content-Type", "application/json");
449+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
450450
return doRpcV2(path, requestObj, requestHeaders, "delete", null);
451451
}
452452

@@ -460,7 +460,7 @@ public HttpResponseWrapper doDeleteWithContextV2(String path, QueryInstanceConsu
460460
*/
461461
public QueryInstanceConsumeResponse doPost(String path, QueryInstanceConsumeRequest requestObj) throws Exception {
462462
Map<String, String> head = new HashMap<>();
463-
head.put("Content-Type", "application/json");
463+
head.put("Content-Type", "application/x-www-form-urlencoded");
464464
return doPost(path, requestObj, head);
465465
}
466466

@@ -475,7 +475,7 @@ public QueryInstanceConsumeResponse doPost(String path, QueryInstanceConsumeRequ
475475
*/
476476
public QueryInstanceConsumeResponse doPost(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) throws Exception {
477477
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
478-
requestHeaders.putIfAbsent("Content-Type", "application/json");
478+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
479479
String response = doRpc(path, requestObj, requestHeaders, "post");
480480
return JSON.parseObject(response, QueryInstanceConsumeResponse.class);
481481
}
@@ -489,7 +489,7 @@ public QueryInstanceConsumeResponse doPost(String path, QueryInstanceConsumeRequ
489489
*/
490490
public QueryInstanceConsumeResponse doPostRaw(String path, QueryInstanceConsumeRequest requestObj) throws Exception {
491491
Map<String, String> head = new HashMap<>();
492-
head.put("Content-Type", "application/json");
492+
head.put("Content-Type", "application/x-www-form-urlencoded");
493493
return doPostRaw(path, requestObj, head);
494494
}
495495

@@ -503,7 +503,7 @@ public QueryInstanceConsumeResponse doPostRaw(String path, QueryInstanceConsumeR
503503
*/
504504
public QueryInstanceConsumeResponse doPostRaw(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) throws Exception {
505505
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
506-
requestHeaders.putIfAbsent("Content-Type", "application/json");
506+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
507507
String response = doRpc(path, requestObj, requestHeaders, "post");
508508
return JSON.parseObject(response, QueryInstanceConsumeResponse.class);
509509
}
@@ -517,7 +517,7 @@ public QueryInstanceConsumeResponse doPostRaw(String path, QueryInstanceConsumeR
517517
*/
518518
public QueryInstanceConsumeResponse doGet(String path, QueryInstanceConsumeRequest requestObj) throws Exception {
519519
Map<String, String> head = new HashMap<>();
520-
head.putIfAbsent("Content-Type", "application/json");
520+
head.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
521521
return doGet(path, requestObj, head);
522522
}
523523

@@ -532,7 +532,7 @@ public QueryInstanceConsumeResponse doGet(String path, QueryInstanceConsumeReque
532532
*/
533533
public QueryInstanceConsumeResponse doGet(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) throws Exception {
534534
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
535-
requestHeaders.putIfAbsent("Content-Type", "application/json");
535+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
536536
String response = doRpc(path, requestObj, requestHeaders, "get");
537537
return JSON.parseObject(response, QueryInstanceConsumeResponse.class);
538538
}
@@ -547,7 +547,7 @@ public QueryInstanceConsumeResponse doGet(String path, QueryInstanceConsumeReque
547547
*/
548548
public QueryInstanceConsumeResponse doDelete(String path, QueryInstanceConsumeRequest requestObj) throws Exception {
549549
Map<String, String> head = new HashMap<>();
550-
head.put("Content-Type", "application/json");
550+
head.put("Content-Type", "application/x-www-form-urlencoded");
551551
return doDelete(path, requestObj, head);
552552
}
553553

@@ -562,7 +562,7 @@ public QueryInstanceConsumeResponse doDelete(String path, QueryInstanceConsumeRe
562562
*/
563563
public QueryInstanceConsumeResponse doDelete(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) throws Exception {
564564
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
565-
requestHeaders.putIfAbsent("Content-Type", "application/json");
565+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
566566
String response = doRpc(path, requestObj, requestHeaders, "delete");
567567
return JSON.parseObject(response, QueryInstanceConsumeResponse.class);
568568
}
@@ -578,7 +578,7 @@ public QueryInstanceConsumeResponse doDelete(String path, QueryInstanceConsumeRe
578578
*/
579579
public QueryInstanceConsumeResponse doPut(String path, QueryInstanceConsumeRequest requestObj) throws Exception {
580580
Map<String, String> head = new HashMap<>();
581-
head.putIfAbsent("Content-Type", "application/json");
581+
head.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
582582
return doPut(path, requestObj, head);
583583
}
584584

@@ -593,7 +593,7 @@ public QueryInstanceConsumeResponse doPut(String path, QueryInstanceConsumeReque
593593
*/
594594
public QueryInstanceConsumeResponse doPut(String path, QueryInstanceConsumeRequest requestObj, Map<String, String> head) throws Exception {
595595
final Map<String, String> requestHeaders = head != null ? new HashMap<>(head) : new HashMap<>();
596-
requestHeaders.putIfAbsent("Content-Type", "application/json");
596+
requestHeaders.putIfAbsent("Content-Type", "application/x-www-form-urlencoded");
597597
String response = doRpc(path, requestObj, requestHeaders, "put");
598598
return JSON.parseObject(response, QueryInstanceConsumeResponse.class);
599599
}

0 commit comments

Comments
 (0)