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