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") Project get()
@Named(value="Projects:setCommonInstanceMetadata") 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-2016 The Apache Software Foundation. All Rights Reserved.