Return-Path: Delivered-To: apmail-incubator-deltacloud-commits-archive@minotaur.apache.org Received: (qmail 31034 invoked from network); 23 Sep 2010 12:55:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 12:55:52 -0000 Received: (qmail 2237 invoked by uid 500); 23 Sep 2010 12:55:52 -0000 Delivered-To: apmail-incubator-deltacloud-commits-archive@incubator.apache.org Received: (qmail 2207 invoked by uid 500); 23 Sep 2010 12:55:51 -0000 Mailing-List: contact deltacloud-commits-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-commits@incubator.apache.org Received: (qmail 2199 invoked by uid 99); 23 Sep 2010 12:55:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 12:55:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 12:55:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 05490238899C; Thu, 23 Sep 2010 12:55:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1000438 - in /incubator/deltacloud/trunk/server: deltacloud.rb lib/deltacloud/models/blob.rb lib/deltacloud/models/bucket.rb Date: Thu, 23 Sep 2010 12:55:29 -0000 To: deltacloud-commits@incubator.apache.org From: marios@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100923125530.05490238899C@eris.apache.org> Author: marios Date: Thu Sep 23 12:55:29 2010 New Revision: 1000438 URL: http://svn.apache.org/viewvc?rev=1000438&view=rev Log: Adds blob and bucket models for blobstore api Added: incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb Modified: incubator/deltacloud/trunk/server/deltacloud.rb Modified: incubator/deltacloud/trunk/server/deltacloud.rb URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/deltacloud.rb?rev=1000438&r1=1000437&r2=1000438&view=diff ============================================================================== --- incubator/deltacloud/trunk/server/deltacloud.rb (original) +++ incubator/deltacloud/trunk/server/deltacloud.rb Thu Sep 23 12:55:29 2010 @@ -13,6 +13,8 @@ require 'deltacloud/models/key' require 'deltacloud/models/instance_profile' require 'deltacloud/models/storage_snapshot' require 'deltacloud/models/storage_volume' +require 'deltacloud/models/bucket' +require 'deltacloud/models/blob' require 'deltacloud/validation' require 'deltacloud/helpers' Added: incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb?rev=1000438&view=auto ============================================================================== --- incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb (added) +++ incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb Thu Sep 23 12:55:29 2010 @@ -0,0 +1,26 @@ +# +# Copyright (C) 2009 Red Hat, Inc. +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. The +# ASF licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# 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 Blob < BaseModel + #already has an id from basemodel (for the key) + attr_accessor :bucket + attr_accessor :content_length + attr_accessor :content_type + attr_accessor :last_modified + attr_accessor :content +end Added: incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb?rev=1000438&view=auto ============================================================================== --- incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb (added) +++ incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb Thu Sep 23 12:55:29 2010 @@ -0,0 +1,24 @@ +# +# Copyright (C) 2009 Red Hat, Inc. +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. The +# ASF licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# 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 Bucket < BaseModel + + attr_accessor :name + attr_accessor :size + attr_accessor :blob_list +end