Package com.google.genai.gaos
Class Webhooks
java.lang.Object
com.google.genai.gaos.Webhooks
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.create()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.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
-
async
Switches to the async SDK.- Returns:
- The async SDK
-
list
Lists all Webhooks.- Returns:
- The call builder
-
list
Lists all Webhooks.- 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 all Webhooks.- 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 Webhook.- Returns:
- The call builder
-
create
Creates a new Webhook.- 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 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
delete
Deletes a Webhook.- Returns:
- The call builder
-
delete
Deletes a Webhook.- 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 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
get
Gets a specific Webhook.- Returns:
- The call builder
-
get
Gets a specific Webhook.- 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 a specific Webhook.- 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 an existing Webhook.- Returns:
- The call builder
-
update
Updates an existing Webhook.- 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 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
ping
Sends a ping event to a Webhook.- Returns:
- The call builder
-
ping
Sends a ping event to a Webhook.- 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
-
ping
Sends a ping event to a Webhook.- 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
-
rotateSigningSecret
Generates a new signing secret for a Webhook.- Returns:
- The call builder
-
rotateSigningSecret
Generates a new signing secret for a Webhook.- 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
-
rotateSigningSecret
public 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
listDirect
Deprecated. -
list
@Deprecated public ListWebhooksResponse list(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
create
Deprecated. -
create
@Deprecated public CreateWebhookResponse create(@Nullable String apiVersion, @Nonnull WebhookInput body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public DeleteWebhookResponse delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public GetWebhookResponse get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
update
Deprecated. -
update
@Deprecated public UpdateWebhookResponse update(@Nullable String apiVersion, @Nonnull String id, @Nullable String updateMask, @Nonnull WebhookUpdate body, @Nullable Options options) Deprecated. -
ping
Deprecated. -
ping
@Deprecated public PingWebhookResponse ping(@Nullable String apiVersion, @Nonnull String id, @Nullable PingWebhookRequest body, @Nullable Options options) Deprecated. -
rotateSigningSecret
@Deprecated public RotateSigningSecretResponse rotateSigningSecret(@Nonnull String id, @Nonnull RotateSigningSecretRequest body) Deprecated. -
rotateSigningSecret
@Deprecated public 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.