| Modifier and Type | Method and Description |
|---|---|
Project |
get(String projectName)
Returns the specified project resource.
|
Operation |
setCommonInstanceMetadata(String projectName,
Map<String,String> metadata,
String fingerprint)
Sets metadata common to all instances within the specified project using the data included in the request.
|
@Named(value="Projects:get") Project get(String projectName)
projectName - name of the project to return@Named(value="Projects:setCommonInstanceMetadata") Operation setCommonInstanceMetadata(String projectName, Map<String,String> metadata, String fingerprint)
Metadata.Builder current = projectApi.get("myProject").getCommonInstanceMetadata().toBuilder();
current.addItem("newItem","newItemValue");
projectApi.setCommonInstanceMetadata(current.build());
projectName - name of the project to returnmetadata - the metadata to setfingerprint - The current fingerprint for the metadataCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.