Skip to content

Commit 7f124c9

Browse files
committed
Generated java-async 2017-09-08 for hbr.
1 parent b1be822 commit 7f124c9

24 files changed

+1152
-11
lines changed

hbr-20170908/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-20 Version: 2.0.14
2+
- Generated java-async 2017-09-08 for hbr.
3+
14
2025-08-05 Version: 2.0.10
25
- Generated java-async 2017-09-08 for hbr.
36

hbr-20170908/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-hbr20170908</artifactId>
6-
<version>2.0.10</version>
6+
<version>2.0.14</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-hbr20170908</name>
99
<description>Alibaba Cloud hbr (20170908) Async SDK for Java
@@ -104,12 +104,11 @@
104104
<plugin>
105105
<groupId>org.sonatype.central</groupId>
106106
<artifactId>central-publishing-maven-plugin</artifactId>
107-
<version>0.8.0</version>
107+
<version>0.9.0</version>
108108
<extensions>true</extensions>
109109
<configuration>
110110
<publishingServerId>central</publishingServerId>
111111
<autoPublish>true</autoPublish>
112-
<waitUntil>published</waitUntil>
113112
</configuration>
114113
</plugin>
115114
</plugins>

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,12 @@ static AsyncClient create() {
545545
*/
546546
CompletableFuture<InstallBackupClientsResponse> installBackupClients(InstallBackupClientsRequest request);
547547

548+
/**
549+
* @param request the request parameters of ListProtectedResources ListProtectedResourcesRequest
550+
* @return ListProtectedResourcesResponse
551+
*/
552+
CompletableFuture<ListProtectedResourcesResponse> listProtectedResources(ListProtectedResourcesRequest request);
553+
548554
/**
549555
* @param request the request parameters of OpenHbrService OpenHbrServiceRequest
550556
* @return OpenHbrServiceResponse

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,24 @@ public CompletableFuture<InstallBackupClientsResponse> installBackupClients(Inst
13531353
}
13541354
}
13551355

1356+
/**
1357+
* @param request the request parameters of ListProtectedResources ListProtectedResourcesRequest
1358+
* @return ListProtectedResourcesResponse
1359+
*/
1360+
@Override
1361+
public CompletableFuture<ListProtectedResourcesResponse> listProtectedResources(ListProtectedResourcesRequest request) {
1362+
try {
1363+
this.handler.validateRequestModel(request);
1364+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListProtectedResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
1365+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListProtectedResourcesResponse.create());
1366+
return this.handler.execute(params);
1367+
} catch (Exception e) {
1368+
CompletableFuture<ListProtectedResourcesResponse> future = new CompletableFuture<>();
1369+
future.completeExceptionally(e);
1370+
return future;
1371+
}
1372+
}
1373+
13561374
/**
13571375
* @param request the request parameters of OpenHbrService OpenHbrServiceRequest
13581376
* @return OpenHbrServiceResponse

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/models/CancelBackupJobRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
* <p>CancelBackupJobRequest</p>
1818
*/
1919
public class CancelBackupJobRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("Edition")
22+
private String edition;
23+
2024
@com.aliyun.core.annotation.Query
2125
@com.aliyun.core.annotation.NameInMap("JobId")
2226
@com.aliyun.core.annotation.Validation(required = true)
@@ -28,6 +32,7 @@ public class CancelBackupJobRequest extends Request {
2832

2933
private CancelBackupJobRequest(Builder builder) {
3034
super(builder);
35+
this.edition = builder.edition;
3136
this.jobId = builder.jobId;
3237
this.vaultId = builder.vaultId;
3338
}
@@ -45,6 +50,13 @@ public Builder toBuilder() {
4550
return new Builder(this);
4651
}
4752

53+
/**
54+
* @return edition
55+
*/
56+
public String getEdition() {
57+
return this.edition;
58+
}
59+
4860
/**
4961
* @return jobId
5062
*/
@@ -60,6 +72,7 @@ public String getVaultId() {
6072
}
6173

6274
public static final class Builder extends Request.Builder<CancelBackupJobRequest, Builder> {
75+
private String edition;
6376
private String jobId;
6477
private String vaultId;
6578

@@ -69,10 +82,20 @@ private Builder() {
6982

7083
private Builder(CancelBackupJobRequest request) {
7184
super(request);
85+
this.edition = request.edition;
7286
this.jobId = request.jobId;
7387
this.vaultId = request.vaultId;
7488
}
7589

90+
/**
91+
* Edition.
92+
*/
93+
public Builder edition(String edition) {
94+
this.putQueryParameter("Edition", edition);
95+
this.edition = edition;
96+
return this;
97+
}
98+
7699
/**
77100
* <p>The ID of the backup job.</p>
78101
* <p>This parameter is required.</p>

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/models/CancelRestoreJobRequest.java

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@
1717
* <p>CancelRestoreJobRequest</p>
1818
*/
1919
public class CancelRestoreJobRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("Edition")
22+
private String edition;
23+
2024
@com.aliyun.core.annotation.Query
2125
@com.aliyun.core.annotation.NameInMap("RestoreId")
2226
@com.aliyun.core.annotation.Validation(required = true)
2327
private String restoreId;
2428

2529
@com.aliyun.core.annotation.Query
2630
@com.aliyun.core.annotation.NameInMap("VaultId")
27-
@com.aliyun.core.annotation.Validation(required = true)
2831
private String vaultId;
2932

3033
private CancelRestoreJobRequest(Builder builder) {
3134
super(builder);
35+
this.edition = builder.edition;
3236
this.restoreId = builder.restoreId;
3337
this.vaultId = builder.vaultId;
3438
}
@@ -46,6 +50,13 @@ public Builder toBuilder() {
4650
return new Builder(this);
4751
}
4852

53+
/**
54+
* @return edition
55+
*/
56+
public String getEdition() {
57+
return this.edition;
58+
}
59+
4960
/**
5061
* @return restoreId
5162
*/
@@ -61,6 +72,7 @@ public String getVaultId() {
6172
}
6273

6374
public static final class Builder extends Request.Builder<CancelRestoreJobRequest, Builder> {
75+
private String edition;
6476
private String restoreId;
6577
private String vaultId;
6678

@@ -70,10 +82,20 @@ private Builder() {
7082

7183
private Builder(CancelRestoreJobRequest request) {
7284
super(request);
85+
this.edition = request.edition;
7386
this.restoreId = request.restoreId;
7487
this.vaultId = request.vaultId;
7588
}
7689

90+
/**
91+
* Edition.
92+
*/
93+
public Builder edition(String edition) {
94+
this.putQueryParameter("Edition", edition);
95+
this.edition = edition;
96+
return this;
97+
}
98+
7799
/**
78100
* <p>The ID of the restore job.</p>
79101
* <p>This parameter is required.</p>
@@ -89,7 +111,6 @@ public Builder restoreId(String restoreId) {
89111

90112
/**
91113
* <p>The ID of the backup vault.</p>
92-
* <p>This parameter is required.</p>
93114
*
94115
* <strong>example:</strong>
95116
* <p>v-*********************</p>

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/models/CreateBackupPlanRequest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
public class CreateBackupPlanRequest extends Request {
2020
@com.aliyun.core.annotation.Query
2121
@com.aliyun.core.annotation.NameInMap("BackupType")
22-
@com.aliyun.core.annotation.Validation(required = true)
2322
private String backupType;
2423

2524
@com.aliyun.core.annotation.Query
@@ -112,7 +111,7 @@ public class CreateBackupPlanRequest extends Request {
112111

113112
@com.aliyun.core.annotation.Query
114113
@com.aliyun.core.annotation.NameInMap("PlanName")
115-
@com.aliyun.core.annotation.Validation(required = true, maxLength = 64, minLength = 1)
114+
@com.aliyun.core.annotation.Validation(maxLength = 64, minLength = 1)
116115
private String planName;
117116

118117
@com.aliyun.core.annotation.Query
@@ -129,7 +128,6 @@ public class CreateBackupPlanRequest extends Request {
129128

130129
@com.aliyun.core.annotation.Query
131130
@com.aliyun.core.annotation.NameInMap("Schedule")
132-
@com.aliyun.core.annotation.Validation(required = true)
133131
private String schedule;
134132

135133
@com.aliyun.core.annotation.Query
@@ -498,7 +496,6 @@ private Builder(CreateBackupPlanRequest request) {
498496

499497
/**
500498
* <p>Backup type. Value: <strong>COMPLETE</strong>, indicating a full backup.</p>
501-
* <p>This parameter is required.</p>
502499
*
503500
* <strong>example:</strong>
504501
* <p>COMPLETE</p>
@@ -791,7 +788,6 @@ public Builder path(java.util.List<String> path) {
791788

792789
/**
793790
* <p>Name of the backup plan. 1 to 64 characters. The name must be unique for each data source type within a single backup vault.</p>
794-
* <p>This parameter is required.</p>
795791
*
796792
* <strong>example:</strong>
797793
* <p>planname</p>
@@ -841,7 +837,6 @@ public Builder rule(java.util.List<Rule> rule) {
841837
* <li><strong>startTime</strong>: Start time of the backup, in UNIX timestamp, in seconds.</li>
842838
* <li><strong>interval</strong>: ISO8601 time interval. For example, PT1H indicates an interval of one hour, and P1D indicates an interval of one day.</li>
843839
* </ul>
844-
* <p>This parameter is required.</p>
845840
*
846841
* <strong>example:</strong>
847842
* <p>I|1602673264|P1D</p>

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/models/CreateRestoreJobRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public class CreateRestoreJobRequest extends Request {
2929
@com.aliyun.core.annotation.NameInMap("CrossAccountUserId")
3030
private Long crossAccountUserId;
3131

32+
@com.aliyun.core.annotation.Query
33+
@com.aliyun.core.annotation.NameInMap("Edition")
34+
private String edition;
35+
3236
@com.aliyun.core.annotation.Body
3337
@com.aliyun.core.annotation.NameInMap("Exclude")
3438
private String exclude;
@@ -132,6 +136,7 @@ private CreateRestoreJobRequest(Builder builder) {
132136
this.crossAccountRoleName = builder.crossAccountRoleName;
133137
this.crossAccountType = builder.crossAccountType;
134138
this.crossAccountUserId = builder.crossAccountUserId;
139+
this.edition = builder.edition;
135140
this.exclude = builder.exclude;
136141
this.failbackDetail = builder.failbackDetail;
137142
this.include = builder.include;
@@ -192,6 +197,13 @@ public Long getCrossAccountUserId() {
192197
return this.crossAccountUserId;
193198
}
194199

200+
/**
201+
* @return edition
202+
*/
203+
public String getEdition() {
204+
return this.edition;
205+
}
206+
195207
/**
196208
* @return exclude
197209
*/
@@ -364,6 +376,7 @@ public static final class Builder extends Request.Builder<CreateRestoreJobReques
364376
private String crossAccountRoleName;
365377
private String crossAccountType;
366378
private Long crossAccountUserId;
379+
private String edition;
367380
private String exclude;
368381
private java.util.Map<String, ?> failbackDetail;
369382
private String include;
@@ -398,6 +411,7 @@ private Builder(CreateRestoreJobRequest request) {
398411
this.crossAccountRoleName = request.crossAccountRoleName;
399412
this.crossAccountType = request.crossAccountType;
400413
this.crossAccountUserId = request.crossAccountUserId;
414+
this.edition = request.edition;
401415
this.exclude = request.exclude;
402416
this.failbackDetail = request.failbackDetail;
403417
this.include = request.include;
@@ -464,6 +478,15 @@ public Builder crossAccountUserId(Long crossAccountUserId) {
464478
return this;
465479
}
466480

481+
/**
482+
* Edition.
483+
*/
484+
public Builder edition(String edition) {
485+
this.putQueryParameter("Edition", edition);
486+
this.edition = edition;
487+
return this;
488+
}
489+
467490
/**
468491
* <p>The path not to be restored. All documents under this path will not be restored. Maximum length is 255 characters.</p>
469492
*

hbr-20170908/src/main/java/com/aliyun/sdk/service/hbr20170908/models/DeleteBackupPlanRequest.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
* <p>DeleteBackupPlanRequest</p>
1818
*/
1919
public class DeleteBackupPlanRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("Edition")
22+
private String edition;
23+
2024
@com.aliyun.core.annotation.Query
2125
@com.aliyun.core.annotation.NameInMap("PlanId")
2226
@com.aliyun.core.annotation.Validation(required = true)
@@ -36,6 +40,7 @@ public class DeleteBackupPlanRequest extends Request {
3640

3741
private DeleteBackupPlanRequest(Builder builder) {
3842
super(builder);
43+
this.edition = builder.edition;
3944
this.planId = builder.planId;
4045
this.requireNoRunningJobs = builder.requireNoRunningJobs;
4146
this.sourceType = builder.sourceType;
@@ -55,6 +60,13 @@ public Builder toBuilder() {
5560
return new Builder(this);
5661
}
5762

63+
/**
64+
* @return edition
65+
*/
66+
public String getEdition() {
67+
return this.edition;
68+
}
69+
5870
/**
5971
* @return planId
6072
*/
@@ -84,6 +96,7 @@ public String getVaultId() {
8496
}
8597

8698
public static final class Builder extends Request.Builder<DeleteBackupPlanRequest, Builder> {
99+
private String edition;
87100
private String planId;
88101
private Boolean requireNoRunningJobs;
89102
private String sourceType;
@@ -95,12 +108,22 @@ private Builder() {
95108

96109
private Builder(DeleteBackupPlanRequest request) {
97110
super(request);
111+
this.edition = request.edition;
98112
this.planId = request.planId;
99113
this.requireNoRunningJobs = request.requireNoRunningJobs;
100114
this.sourceType = request.sourceType;
101115
this.vaultId = request.vaultId;
102116
}
103117

118+
/**
119+
* Edition.
120+
*/
121+
public Builder edition(String edition) {
122+
this.putQueryParameter("Edition", edition);
123+
this.edition = edition;
124+
return this;
125+
}
126+
104127
/**
105128
* <p>The ID of the backup plan.</p>
106129
* <p>This parameter is required.</p>

0 commit comments

Comments
 (0)