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") 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") com.google.common.collect.FluentIterable<Webhook> create(List<CreateWebhook> webhooks)
webhooks
- A list of webhooks.CreateWebhook
,
Webhook
,
Group
,
CreateScalingPolicy
@Named(value="Webhook:list") com.google.common.collect.FluentIterable<Webhook> list()
CreateWebhook
,
Webhook
,
Group
,
CreateScalingPolicy
@Named(value="webhook:get") @Nullable Webhook get(String id)
String
- id The id of the webhook.CreateWebhook
,
Webhook
,
Group
,
CreateScalingPolicy
@Named(value="webhook:update") boolean update(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") boolean delete(String id)
String
- id The id of the webhook.CreateWebhook
,
Webhook
,
Group
,
CreateScalingPolicy
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.