You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2010/09/23 14:55:29 UTC
svn commit: r1000438 - in /incubator/deltacloud/trunk/server: deltacloud.rb
lib/deltacloud/models/blob.rb lib/deltacloud/models/bucket.rb
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