Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4F6F78B4 for ; Fri, 25 Nov 2011 12:31:28 +0000 (UTC) Received: (qmail 38464 invoked by uid 500); 25 Nov 2011 12:31:28 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 38448 invoked by uid 500); 25 Nov 2011 12:31:28 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 38440 invoked by uid 99); 25 Nov 2011 12:31:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 12:31:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ladislav.martincik@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 12:31:20 +0000 Received: by wwg38 with SMTP id 38so5107910wwg.26 for ; Fri, 25 Nov 2011 04:30:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=dnVn7EKDevEgbChH2RGLY/hzCQovO+ffK4Sbi0nKeZU=; b=uSns+xqZkTktAUIg4rSwBFh1xTugUF6PA3h86qmwHv6A7qDeDOrx5wYFI/dU2JdnMZ pO4YOcZAhNTSxSQfGetDwP++p4VDw0OgjKVM0nsKlULSeBqScEdwLnwr1Wm40+5gd8Vh MfAgCRN+STbh3v/TRkuhGuxis4H7WBdOFBv6o= Received: by 10.227.198.76 with SMTP id en12mr16490384wbb.14.1322224259615; Fri, 25 Nov 2011 04:30:59 -0800 (PST) Received: from Ladislav-Martinciks-MacBook-Pro-2.local (ip-78-108-155-1.klient.poruba.net. [78.108.155.1]) by mx.google.com with ESMTPS id dy1sm10631359wib.18.2011.11.25.04.30.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Nov 2011 04:30:57 -0800 (PST) Date: Fri, 25 Nov 2011 13:30:55 +0100 From: Ladislav Martincik To: dev@deltacloud.apache.org Message-ID: <5499DA4437CA4A14B51892DBAC90ECD1@gmail.com> In-Reply-To: <1322222870-26511-1-git-send-email-marios@redhat.com> References: <1322222870-26511-1-git-send-email-marios@redhat.com> Subject: Re: [PATCH 1/2] Adds CIMI::VolumeImage to server.rb (index/show) X-Mailer: sparrow 1.4.2 (build 959.4) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4ecf8a7f_74b0dc51_162" --4ecf8a7f_74b0dc51_162 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Can someone help me sing off this mailing list? Could not find the way. Thank you, -- Ladislav On Friday, November 25, 2011 at 1:07 PM, marios@redhat.com wrote: > From: marios > > > Signed-off-by: marios > --- > server/lib/cimi/server.rb | 28 ++++++++++++++++++++++++++++ > 1 files changed, 28 insertions(+), 0 deletions(-) > > diff --git a/server/lib/cimi/server.rb b/server/lib/cimi/server.rb > index 2bd3a39..fdd7f17 100644 > --- a/server/lib/cimi/server.rb > +++ b/server/lib/cimi/server.rb > @@ -255,4 +255,32 @@ global_collection :volumes do > end > end > > +global_collection :volume_images do > + description 'This entity represents an image that could be place on a pre-loaded volume.' > + > + operation :index do > + description "List all volumes images" > + control do > + volume_images = VolumeImage.all(self) > + respond_to do |format| > + format.xml { volume_images.to_xml_cimi_collection(self) } > + format.json { volume_images.to_json_cimi_collection(self) } > + end > + end > + end > + > + operation :show do > + description "Show a specific volume image" > + param :id, :string, :required > + control do > + volume_image = VolumeImage.find(params[:id], self) > + respond_to do |format| > + format.xml { volume_image.to_xml } > + format.json { volume_image.to_json } > + end > + end > + end > + > +end > + > end > -- > 1.7.6.4 > > --4ecf8a7f_74b0dc51_162--