@Consumes(value="application/json")
public interface ProjectApi
Modifier and Type | Method and Description |
---|---|
Project |
get()
Get the current project.
|
Operation |
setCommonInstanceMetadata(Metadata metadata)
Sets metadata common to all instances within the current project using the data included in the request.
|
Operation |
setUsageExportBucket(String bucketName,
String reportNamePrefix) |
@Named(value="Projects:get") @GET Project get()
@Named(value="Projects:setCommonInstanceMetadata") @POST @Path(value="/setCommonInstanceMetadata") @Produces(value="application/json") Operation setCommonInstanceMetadata(Metadata metadata)
Metadata update = projectApi.get("myProject").getCommonInstanceMetadata().clone(); update.put("newItem","newItemValue"); projectApi.setCommonInstanceMetadata("myProject", update);
metadata
- the metadata to setCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.