Interface ProjectApi
@Consumes("application/json")
public interface ProjectApi
-
Method Summary
Modifier and TypeMethodDescriptionget()
Get the current project.setCommonInstanceMetadata
(Metadata metadata) Sets metadata common to all instances within the current project using the data included in the request.setUsageExportBucket
(String bucketName, String reportNamePrefix)
-
Method Details
-
get
Get the current project. -
setCommonInstanceMetadata
@Named("Projects:setCommonInstanceMetadata") @POST @Path("/setCommonInstanceMetadata") @Produces("application/json") Operation setCommonInstanceMetadata(Metadata metadata) Sets metadata common to all instances within the current project using the data included in the request. NOTE: This *sets* metadata items on the project (vs *adding* items to metadata), if there are existing metadata that must be kept these must be fetched first and then re-sent on update.Metadata update = projectApi.get("myProject").getCommonInstanceMetadata().clone(); update.put("newItem","newItemValue"); projectApi.setCommonInstanceMetadata("myProject", update);
- Parameters:
metadata
- the metadata to set- Returns:
- an Operations resource. To check on the status of an operation, poll the Operations resource returned to you, and look for the status field.
-
setUsageExportBucket
-