|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProjectApi
Provides access to Projects via their REST API.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
@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 metadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||