Package com.google.genai.gaos
Class AsyncTriggers
java.lang.Object
com.google.genai.gaos.AsyncTriggers
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new trigger that will invoke the specified agent on the given cron schedule.create(CreateTriggerRequest request) Creates a new trigger that will invoke the specified agent on the given cron schedule.create(CreateTriggerRequest request, Options options) Creates a new trigger that will invoke the specified agent on the given cron schedule.create(TriggerCreateParams body) Deprecated.create(String apiVersion, TriggerCreateParams body, Options options) Deprecated.delete()Deletes a trigger.delete(DeleteTriggerRequest request) Deletes a trigger.delete(DeleteTriggerRequest request, Options options) Deletes a trigger.Deprecated.Deprecated.get()Gets details of a single trigger.get(GetTriggerRequest request) Gets details of a single trigger.get(GetTriggerRequest request, Options options) Gets details of a single trigger.Deprecated.Deprecated.list()Lists triggers for a project.list(ListTriggersRequest request) Lists triggers for a project.list(ListTriggersRequest request, Options options) Lists triggers for a project.Deprecated.Deprecated.Lists executions for a trigger.Lists executions for a trigger.listExecutions(ListTriggerExecutionsRequest request, Options options) Lists executions for a trigger.listExecutions(String triggerId) Deprecated.listExecutions(String apiVersion, Integer pageSize, String pageToken, String triggerId, Options options) Deprecated.run()Runs a trigger immediately.run(RunTriggerRequest request) Runs a trigger immediately.run(RunTriggerRequest request, Options options) Runs a trigger immediately.Deprecated.Deprecated.sync()Switches to the sync SDK.update()Updates a trigger.update(UpdateTriggerRequest request) Updates a trigger.update(UpdateTriggerRequest request, Options options) Updates a trigger.update(String id, TriggerUpdate body) Deprecated.update(String apiVersion, String id, TriggerUpdate body, Options options) Deprecated.
-
Method Details
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
list
Lists triggers for a project.- Returns:
- The async call builder
-
list
Lists triggers for a project.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListTriggersResponse>- The async response
-
list
public CompletableFuture<ListTriggersResponse> list(@Nonnull ListTriggersRequest request, @Nullable Options options) Lists triggers for a project.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<ListTriggersResponse>- The async response
-
create
Creates a new trigger that will invoke the specified agent on the given cron schedule.- Returns:
- The async call builder
-
create
Creates a new trigger that will invoke the specified agent on the given cron schedule.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<CreateTriggerResponse>- The async response
-
create
public CompletableFuture<CreateTriggerResponse> create(@Nonnull CreateTriggerRequest request, @Nullable Options options) Creates a new trigger that will invoke the specified agent on the given cron schedule.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<CreateTriggerResponse>- The async response
-
delete
Deletes a trigger.- Returns:
- The async call builder
-
delete
Deletes a trigger.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<DeleteTriggerResponse>- The async response
-
delete
public CompletableFuture<DeleteTriggerResponse> delete(@Nonnull DeleteTriggerRequest request, @Nullable Options options) Deletes a trigger.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<DeleteTriggerResponse>- The async response
-
get
Gets details of a single trigger.- Returns:
- The async call builder
-
get
Gets details of a single trigger.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetTriggerResponse>- The async response
-
get
public CompletableFuture<GetTriggerResponse> get(@Nonnull GetTriggerRequest request, @Nullable Options options) Gets details of a single trigger.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetTriggerResponse>- The async response
-
update
Updates a trigger.- Returns:
- The async call builder
-
update
Updates a trigger.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<UpdateTriggerResponse>- The async response
-
update
public CompletableFuture<UpdateTriggerResponse> update(@Nonnull UpdateTriggerRequest request, @Nullable Options options) Updates a trigger.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<UpdateTriggerResponse>- The async response
-
listExecutions
Lists executions for a trigger.- Returns:
- The async call builder
-
listExecutions
public CompletableFuture<ListTriggerExecutionsResponse> listExecutions(@Nonnull ListTriggerExecutionsRequest request) Lists executions for a trigger.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListTriggerExecutionsResponse>- The async response
-
listExecutions
public CompletableFuture<ListTriggerExecutionsResponse> listExecutions(@Nonnull ListTriggerExecutionsRequest request, @Nullable Options options) Lists executions for a trigger.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<ListTriggerExecutionsResponse>- The async response
-
run
Runs a trigger immediately.- Returns:
- The async call builder
-
run
Runs a trigger immediately.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<RunTriggerResponse>- The async response
-
run
public CompletableFuture<RunTriggerResponse> run(@Nonnull RunTriggerRequest request, @Nullable Options options) Runs a trigger immediately.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<RunTriggerResponse>- The async response
-
listDirect
Deprecated. -
list
@Deprecated public CompletableFuture<ListTriggersResponse> list(@Nullable String apiVersion, @Nullable String filter, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
create
@Deprecated public CompletableFuture<CreateTriggerResponse> create(@Nonnull TriggerCreateParams body) Deprecated. -
create
@Deprecated public CompletableFuture<CreateTriggerResponse> create(@Nullable String apiVersion, @Nonnull TriggerCreateParams body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public CompletableFuture<DeleteTriggerResponse> delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public CompletableFuture<GetTriggerResponse> get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
update
@Deprecated public CompletableFuture<UpdateTriggerResponse> update(@Nonnull String id, @Nonnull TriggerUpdate body) Deprecated. -
update
@Deprecated public CompletableFuture<UpdateTriggerResponse> update(@Nullable String apiVersion, @Nonnull String id, @Nonnull TriggerUpdate body, @Nullable Options options) Deprecated. -
listExecutions
@Deprecated public CompletableFuture<ListTriggerExecutionsResponse> listExecutions(@Nonnull String triggerId) Deprecated. -
listExecutions
@Deprecated public CompletableFuture<ListTriggerExecutionsResponse> listExecutions(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nonnull String triggerId, @Nullable Options options) Deprecated. -
run
Deprecated. -
run
@Deprecated public CompletableFuture<RunTriggerResponse> run(@Nullable String apiVersion, @Nonnull String triggerId, @Nullable Options options) Deprecated.
-
create(com.google.genai.gaos.models.operations.CreateTriggerRequest)withCreateTriggerRequest.builder()instead.