@Consumes(value="application/json") @Path(value="/webhooks") public interface WebhookApi extends Closeable
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.FluentIterable<Webhook> |
create(List<CreateWebhook> webhooks)
Create webhooks.
|
com.google.common.collect.FluentIterable<Webhook> |
create(String name,
Map<String,Object> metadata)
Create a webhook.
|
boolean |
delete(String id)
Delete a webhook.
|
Webhook |
get(String id)
Get a webhook.
|
com.google.common.collect.FluentIterable<Webhook> |
list()
List webhooks.
|
boolean |
update(String id,
String name,
Map<String,Object> metadata)
Update a webhook.
|
@Named(value="Webhook:create") @POST com.google.common.collect.FluentIterable<Webhook> create(String name, Map<String,Object> metadata)
name - The webhook name. Required.metadata - A map of associated metadata. Use String keys. Required.CreateWebhook,
Webhook,
Group,
CreateScalingPolicy@Named(value="webhook:create") @POST com.google.common.collect.FluentIterable<Webhook> create(List<CreateWebhook> webhooks)
webhooks - A list of webhooks.CreateWebhook,
Webhook,
Group,
CreateScalingPolicy@Named(value="Webhook:list") @GET com.google.common.collect.FluentIterable<Webhook> list()
CreateWebhook,
Webhook,
Group,
CreateScalingPolicy@Named(value="webhook:get")
@GET
@Path(value="/{webhookId}")
@Nullable
Webhook get(@PathParam(value="webhookId")
String id)
String - id The id of the webhook.CreateWebhook,
Webhook,
Group,
CreateScalingPolicy@Named(value="webhook:update")
@PUT
@Path(value="/{webhookId}")
boolean update(@PathParam(value="webhookId")
String id,
String name,
Map<String,Object> metadata)
id - The webhook idname - The webhook namemetadata - A map of associated metadata. Use String keys.CreateWebhook,
Webhook,
Group,
CreateScalingPolicy@Named(value="webhook:delete")
@DELETE
@Path(value="/{webhookId}")
boolean delete(@PathParam(value="webhookId")
String id)
String - id The id of the webhook.CreateWebhook,
Webhook,
Group,
CreateScalingPolicyCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.