@@ -372,6 +372,24 @@ public CompletableFuture<DisableRuleResponse> disableRule(DisableRuleRequest req
372
372
}
373
373
}
374
374
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
+
375
393
/**
376
394
* <b>description</b> :
377
395
* <p>You can call this API operation to enable an event rule.</p>
@@ -849,6 +867,24 @@ public CompletableFuture<TestEventPatternResponse> testEventPattern(TestEventPat
849
867
}
850
868
}
851
869
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
+
852
888
/**
853
889
* <b>description</b> :
854
890
* <p>You can call this API operation to update an API destination.</p>
0 commit comments