From d2f7efcda9c02c9c57c624750c5b40964e0ea793 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Tue, 9 Oct 2012 12:31:44 -0700 Subject: [PATCH] Fixing CloudStack TemplateFilter enum to work with 3.x API properly --- .../jclouds/cloudstack/domain/TemplateFilter.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java index ecd39c6e92..bd578010d2 100644 --- a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java +++ b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplateFilter.java @@ -40,6 +40,15 @@ public enum TemplateFilter { * to deploy a new VM */ SELF_EXECUTABLE, + /** + * templates that have been registered/created by the owner that can be used + * to deploy a new VM - 3.x filter value. + */ + SELFEXECUTABLE, + /** + * templates that have been granted to the calling user by another user + */ + SHAREDEXECUTABLE, /** * all templates that can be used to deploy a new VM */ @@ -47,7 +56,11 @@ public enum TemplateFilter { /** * templates that are public */ - COMMUNITY; + COMMUNITY, + /** + * All templates + */ + ALL; @Override public String toString() {