From 233cc822c0c9b71fd8a67a4005cd2f3cb8fe5db4 Mon Sep 17 00:00:00 2001 From: Richard Downer Date: Mon, 7 Nov 2011 13:35:05 +0200 Subject: [PATCH 1/2] Complete the Cloudstack "template" API --- .../jclouds/cloudstack/domain/Template.java | 13 + .../cloudstack/domain/TemplatePermission.java | 159 ++++++++++++ .../features/TemplateAsyncClient.java | 79 ++++++ .../cloudstack/features/TemplateClient.java | 98 ++++++- .../options/CreateTemplateOptions.java | 129 ++++++++++ .../options/DeleteTemplateOptions.java | 56 ++++ .../options/ExtractTemplateOptions.java | 48 ++++ .../options/RegisterTemplateOptions.java | 145 +++++++++++ .../options/UpdateTemplateOptions.java | 116 +++++++++ .../UpdateTemplatePermissionsOptions.java | 108 ++++++++ .../features/TemplateAsyncClientTest.java | 243 ++++++++++++++++++ 11 files changed, 1191 insertions(+), 3 deletions(-) create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/TemplatePermission.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/CreateTemplateOptions.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/DeleteTemplateOptions.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/ExtractTemplateOptions.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/RegisterTemplateOptions.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/UpdateTemplateOptions.java create mode 100644 sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/UpdateTemplatePermissionsOptions.java diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java index a1af5bdb7d..00e2309330 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java @@ -233,6 +233,19 @@ public class Template implements Comparable