Skip to content

Commit cbf6a50

Browse files
committed
Generated java-async 2020-04-01 for eventbridge.
1 parent 41df9df commit cbf6a50

10 files changed

+1831
-1
lines changed

eventbridge-20200401/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-05-27 Version: 5.0.4
2+
- Generated java-async 2020-04-01 for eventbridge.
3+
14
2025-05-27 Version: 5.0.3
25
- Generated java-async 2020-04-01 for eventbridge.
36

eventbridge-20200401/pom.xml

Lines changed: 1 addition & 1 deletion
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-eventbridge20200401</artifactId>
6-
<version>5.0.3</version>
6+
<version>5.0.4</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-eventbridge20200401</name>
99
<description>Alibaba Cloud eventbridge (20200401) Async SDK for Java

eventbridge-20200401/src/main/java/com/aliyun/sdk/service/eventbridge20200401/AsyncClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ static AsyncClient create() {
160160
*/
161161
CompletableFuture<DisableRuleResponse> disableRule(DisableRuleRequest request);
162162

163+
/**
164+
* @param request the request parameters of DiscoverEventSource DiscoverEventSourceRequest
165+
* @return DiscoverEventSourceResponse
166+
*/
167+
CompletableFuture<DiscoverEventSourceResponse> discoverEventSource(DiscoverEventSourceRequest request);
168+
163169
/**
164170
* <b>description</b> :
165171
* <p>You can call this API operation to enable an event rule.</p>
@@ -361,6 +367,12 @@ static AsyncClient create() {
361367
*/
362368
CompletableFuture<TestEventPatternResponse> testEventPattern(TestEventPatternRequest request);
363369

370+
/**
371+
* @param request the request parameters of TestEventSourceConfig TestEventSourceConfigRequest
372+
* @return TestEventSourceConfigResponse
373+
*/
374+
CompletableFuture<TestEventSourceConfigResponse> testEventSourceConfig(TestEventSourceConfigRequest request);
375+
364376
/**
365377
* <b>description</b> :
366378
* <p>You can call this API operation to update an API destination.</p>

eventbridge-20200401/src/main/java/com/aliyun/sdk/service/eventbridge20200401/DefaultAsyncClient.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,24 @@ public CompletableFuture<DisableRuleResponse> disableRule(DisableRuleRequest req
372372
}
373373
}
374374

375+
/**
376+
* @param request the request parameters of DiscoverEventSource DiscoverEventSourceRequest
377+
* @return DiscoverEventSourceResponse
378+
*/
379+
@Override
380+
public CompletableFuture<DiscoverEventSourceResponse> discoverEventSource(DiscoverEventSourceRequest request) {
381+
try {
382+
this.handler.validateRequestModel(request);
383+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("DiscoverEventSource").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
384+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DiscoverEventSourceResponse.create());
385+
return this.handler.execute(params);
386+
} catch (Exception e) {
387+
CompletableFuture<DiscoverEventSourceResponse> future = new CompletableFuture<>();
388+
future.completeExceptionally(e);
389+
return future;
390+
}
391+
}
392+
375393
/**
376394
* <b>description</b> :
377395
* <p>You can call this API operation to enable an event rule.</p>
@@ -849,6 +867,24 @@ public CompletableFuture<TestEventPatternResponse> testEventPattern(TestEventPat
849867
}
850868
}
851869

870+
/**
871+
* @param request the request parameters of TestEventSourceConfig TestEventSourceConfigRequest
872+
* @return TestEventSourceConfigResponse
873+
*/
874+
@Override
875+
public CompletableFuture<TestEventSourceConfigResponse> testEventSourceConfig(TestEventSourceConfigRequest request) {
876+
try {
877+
this.handler.validateRequestModel(request);
878+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("TestEventSourceConfig").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
879+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(TestEventSourceConfigResponse.create());
880+
return this.handler.execute(params);
881+
} catch (Exception e) {
882+
CompletableFuture<TestEventSourceConfigResponse> future = new CompletableFuture<>();
883+
future.completeExceptionally(e);
884+
return future;
885+
}
886+
}
887+
852888
/**
853889
* <b>description</b> :
854890
* <p>You can call this API operation to update an API destination.</p>

0 commit comments

Comments
 (0)