@Override public void define(WebService.NewController controller) { WebService.NewAction action = controller.createAction("deliveries") .setSince("6.2") .setDescription("Get the recent deliveries for a specified project or Compute Engine task.<br/>" + "Require 'Administer' permission on the related project.<br/>" + "Note that additional information are returned by api/webhooks/delivery.") .setResponseExample(Resources.getResource(this.getClass(), "example-deliveries.json")) .setHandler(this); action.createParam(PARAM_COMPONENT) .setDescription("Key of the project") .setExampleValue("my-project"); action.createParam(PARAM_TASK) .setDescription("Id of the Compute Engine task") .setExampleValue(Uuids.UUID_EXAMPLE_01); action.createParam(PARAM_WEBHOOK) .setSince("7.1") .setDescription("Key of the webhook that triggered those deliveries, " + "auto-generated value that can be obtained through api/webhooks/create or api/webhooks/list") .setExampleValue(UUID_EXAMPLE_02); action.addPagingParamsSince(10, MAX_LIMIT, "7.1"); }
@Override public void define(WebService.NewController controller) { WebService.NewAction action = controller.createAction("deliveries") .setSince("6.2") .setDescription("Get the recent deliveries for a specified project or Compute Engine task.<br/>" + "Require 'Administer' permission on the related project.<br/>" + "Note that additional information are returned by api/webhooks/delivery.") .setResponseExample(Resources.getResource(this.getClass(), "example-deliveries.json")) .setHandler(this); action.createParam(PARAM_COMPONENT) .setDescription("Key of the project") .setExampleValue("my-project"); action.createParam(PARAM_TASK) .setDescription("Id of the Compute Engine task") .setExampleValue(Uuids.UUID_EXAMPLE_01); action.createParam(PARAM_WEBHOOK) .setSince("7.1") .setDescription("Key of the webhook that triggered those deliveries," + "auto-generated value that can be obtained through api/webhooks/create or api/webhooks/list") .setExampleValue(UUID_EXAMPLE_02); action.addPagingParamsSince(10, MAX_LIMIT, "7.1"); }