Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 462639F73 for ; Wed, 16 Nov 2011 11:22:16 +0000 (UTC) Received: (qmail 55675 invoked by uid 500); 16 Nov 2011 11:22:16 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 55658 invoked by uid 500); 16 Nov 2011 11:22:16 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 55650 invoked by uid 99); 16 Nov 2011 11:22:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 11:22:16 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mandreou@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 11:22:10 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pAGBLnj2024815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 16 Nov 2011 06:21:49 -0500 Received: from [10.36.112.17] (ovpn-112-17.ams2.redhat.com [10.36.112.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pAGBLl4j005960 for ; Wed, 16 Nov 2011 06:21:48 -0500 Message-ID: <4EC39CCB.3070102@redhat.com> Date: Wed, 16 Nov 2011 13:21:47 +0200 From: "marios@redhat.com" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: deltacloud-dev@incubator.apache.org Subject: Re: [PATCH core 4/5] CIMI: Added MachineConfiguration model References: <1321283371-2298-1-git-send-email-mfojtik@redhat.com> <1321283371-2298-5-git-send-email-mfojtik@redhat.com> In-Reply-To: <1321283371-2298-5-git-send-email-mfojtik@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 minor comment inline (otherwise ACK): On 14/11/11 17:09, mfojtik@redhat.com wrote: > From: Michal Fojtik > > +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the > +# License for the specific language governing permissions and limitations > +# under the License. > + > +class CIMI::Model::MachineConfiguration < CIMI::Model::Base > + > + scalar :memory > + text :cpu > + > + array :disk do > + scalar :capacity also, :format and :attachment_point > + end > + > + array :operations do > + scalar :rel, :href > + end > +end > diff --git a/server/spec/cimi/data/machine_configuration.json b/server/spec/cimi/data/machine_configuration.json > new file mode 100644 > index 0000000..8864340 > --- /dev/null > +++ b/server/spec/cimi/data/machine_configuration.json > @@ -0,0 +1,17 @@ > +{ > + "uri": "http://cimi.example.org/machine_configurations/1", > + "name": "MachineConfiguration1", > + "description": "Example MachineConfiguration One", > + "created": "2011-11-14", > + "cpu": "2", > + "memory" : { "quantity": "1", "units": "gigabyte" }, > + "disks" : [ > + { "capacity": { "quantity": "1", "units": "terabyte", "format": "ext4", "attachmentPoint": "/" } } > + ], I think this will be: "disks" : [ { "capacity": { "quantity": "1", "units": "terabyte"}}, {"format": "ext4"}, {"attachmentPoint": "/" } > + ], > + "properties": [ { "name": "architectore", "value" : "i386" } ], > + "operations": [ > + { "rel": "edit", > + "href": "http://cimi.example.org/machine_images/1/edit" }, > + { "rel": "delete", > + "href": "http://cimi.example.org/machine_images/1/delete" }] > +} > diff --git a/server/spec/cimi/data/machine_configuration.xml b/server/spec/cimi/data/machine_configuration.xml > new file mode 100644 > index 0000000..788a185 > --- /dev/null > +++ b/server/spec/cimi/data/machine_configuration.xml > @@ -0,0 +1,14 @@ > + > + http://cimi.example.org/machine_configurations/1 > + MachineConfiguration1 > + Example MachineConfiguration One > + 2011-11-14 > + i386 > + 2 > + > + > + > + again, I think its: I should raise a mantis issue since I can't see this in any of the examples, even though :format and :attachmentPoint are mandatory.