Package com.google.genai.gaos
Class AsyncWebhooks
java.lang.Object
com.google.genai.gaos.AsyncWebhooks
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new Webhook.create(CreateWebhookRequest request) Creates a new Webhook.create(CreateWebhookRequest request, Options options) Creates a new Webhook.create(WebhookInput body) Deprecated.create(String apiVersion, WebhookInput body, Options options) Deprecated.delete()Deletes a Webhook.delete(DeleteWebhookRequest request) Deletes a Webhook.delete(DeleteWebhookRequest request, Options options) Deletes a Webhook.Deprecated.Deprecated.get()Gets a specific Webhook.get(GetWebhookRequest request) Gets a specific Webhook.get(GetWebhookRequest request, Options options) Gets a specific Webhook.Deprecated.Deprecated.list()Lists all Webhooks.list(ListWebhooksRequest request) Lists all Webhooks.list(ListWebhooksRequest request, Options options) Lists all Webhooks.Deprecated.Deprecated.ping()Sends a ping event to a Webhook.ping(PingWebhookRequest request) Sends a ping event to a Webhook.ping(PingWebhookRequest request, Options options) Sends a ping event to a Webhook.Deprecated.ping(String apiVersion, String id, PingWebhookRequest body, Options options) Deprecated.Generates a new signing secret for a Webhook.Generates a new signing secret for a Webhook.rotateSigningSecret(RotateSigningSecretRequest request, Options options) Generates a new signing secret for a Webhook.Deprecated.rotateSigningSecret(String apiVersion, String id, RotateSigningSecretRequest body, Options options) Deprecated.sync()Switches to the sync SDK.update()Updates an existing Webhook.update(UpdateWebhookRequest request) Updates an existing Webhook.update(UpdateWebhookRequest request, Options options) Updates an existing Webhook.update(String id, WebhookUpdate body) Deprecated.Deprecated.
-
Method Details
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
list
Lists all Webhooks.- Returns:
- The async call builder
-
list
Lists all Webhooks.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListWebhooksResponse>- The async response
-
list
public CompletableFuture<ListWebhooksResponse> list(@Nonnull ListWebhooksRequest request, @Nullable Options options) Lists all Webhooks.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<ListWebhooksResponse>- The async response
-
create
Creates a new Webhook.- Returns:
- The async call builder
-
create
Creates a new Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<CreateWebhookResponse>- The async response
-
create
public CompletableFuture<CreateWebhookResponse> create(@Nonnull CreateWebhookRequest request, @Nullable Options options) Creates a new Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<CreateWebhookResponse>- The async response
-
delete
Deletes a Webhook.- Returns:
- The async call builder
-
delete
Deletes a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<DeleteWebhookResponse>- The async response
-
delete
public CompletableFuture<DeleteWebhookResponse> delete(@Nonnull DeleteWebhookRequest request, @Nullable Options options) Deletes a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<DeleteWebhookResponse>- The async response
-
get
Gets a specific Webhook.- Returns:
- The async call builder
-
get
Gets a specific Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetWebhookResponse>- The async response
-
get
public CompletableFuture<GetWebhookResponse> get(@Nonnull GetWebhookRequest request, @Nullable Options options) Gets a specific Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetWebhookResponse>- The async response
-
update
Updates an existing Webhook.- Returns:
- The async call builder
-
update
Updates an existing Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<UpdateWebhookResponse>- The async response
-
update
public CompletableFuture<UpdateWebhookResponse> update(@Nonnull UpdateWebhookRequest request, @Nullable Options options) Updates an existing Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<UpdateWebhookResponse>- The async response
-
ping
Sends a ping event to a Webhook.- Returns:
- The async call builder
-
ping
Sends a ping event to a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<PingWebhookResponse>- The async response
-
ping
public CompletableFuture<PingWebhookResponse> ping(@Nonnull PingWebhookRequest request, @Nullable Options options) Sends a ping event to a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<PingWebhookResponse>- The async response
-
rotateSigningSecret
Generates a new signing secret for a Webhook.- Returns:
- The async call builder
-
rotateSigningSecret
public CompletableFuture<RotateSigningSecretResponse> rotateSigningSecret(@Nonnull RotateSigningSecretRequest request) Generates a new signing secret for a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<RotateSigningSecretResponse>- The async response
-
rotateSigningSecret
public CompletableFuture<RotateSigningSecretResponse> rotateSigningSecret(@Nonnull RotateSigningSecretRequest request, @Nullable Options options) Generates a new signing secret for a Webhook.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<RotateSigningSecretResponse>- The async response
-
listDirect
Deprecated. -
list
@Deprecated public CompletableFuture<ListWebhooksResponse> list(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
create
Deprecated. -
create
@Deprecated public CompletableFuture<CreateWebhookResponse> create(@Nullable String apiVersion, @Nonnull WebhookInput body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public CompletableFuture<DeleteWebhookResponse> delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public CompletableFuture<GetWebhookResponse> get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
update
@Deprecated public CompletableFuture<UpdateWebhookResponse> update(@Nonnull String id, @Nonnull WebhookUpdate body) Deprecated. -
update
@Deprecated public CompletableFuture<UpdateWebhookResponse> update(@Nullable String apiVersion, @Nonnull String id, @Nullable String updateMask, @Nonnull WebhookUpdate body, @Nullable Options options) Deprecated. -
ping
Deprecated. -
ping
@Deprecated public CompletableFuture<PingWebhookResponse> ping(@Nullable String apiVersion, @Nonnull String id, @Nullable PingWebhookRequest body, @Nullable Options options) Deprecated. -
rotateSigningSecret
@Deprecated public CompletableFuture<RotateSigningSecretResponse> rotateSigningSecret(@Nonnull String id, @Nonnull RotateSigningSecretRequest body) Deprecated. -
rotateSigningSecret
@Deprecated public CompletableFuture<RotateSigningSecretResponse> rotateSigningSecret(@Nullable String apiVersion, @Nonnull String id, @Nonnull RotateSigningSecretRequest body, @Nullable Options options) Deprecated.
-
create(com.google.genai.gaos.models.operations.CreateWebhookRequest)withCreateWebhookRequest.builder()instead.