Return-Path: Delivered-To: apmail-incubator-libcloud-commits-archive@minotaur.apache.org Received: (qmail 10531 invoked from network); 7 Feb 2010 17:50:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Feb 2010 17:50:13 -0000 Received: (qmail 9084 invoked by uid 500); 7 Feb 2010 17:50:13 -0000 Delivered-To: apmail-incubator-libcloud-commits-archive@incubator.apache.org Received: (qmail 9069 invoked by uid 500); 7 Feb 2010 17:50:13 -0000 Mailing-List: contact libcloud-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud-dev@incubator.apache.org Delivered-To: mailing list libcloud-commits@incubator.apache.org Received: (qmail 9060 invoked by uid 99); 7 Feb 2010 17:50:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2010 17:50:13 +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; Sun, 07 Feb 2010 17:50:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D297123889DA; Sun, 7 Feb 2010 17:49:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r907458 - /incubator/libcloud/trunk/libcloud/interface.py Date: Sun, 07 Feb 2010 17:49:42 -0000 To: libcloud-commits@incubator.apache.org From: jerry@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100207174942.D297123889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jerry Date: Sun Feb 7 17:49:42 2010 New Revision: 907458 URL: http://svn.apache.org/viewvc?rev=907458&view=rev Log: 80-col formatting update: interface.py Modified: incubator/libcloud/trunk/libcloud/interface.py Modified: incubator/libcloud/trunk/libcloud/interface.py URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/interface.py?rev=907458&r1=907457&r2=907458&view=diff ============================================================================== --- incubator/libcloud/trunk/libcloud/interface.py (original) +++ incubator/libcloud/trunk/libcloud/interface.py Sun Feb 7 17:49:42 2010 @@ -66,7 +66,8 @@ ram = Attribute("""Amount of RAM provided in MB (256MB, 1740MB)""") disk = Attribute("""Amount of disk provided in GB (200GB)""") bandwidth = Attribute("""Amount of total transfer bandwidth in GB""") - price = Attribute("""Hourly price of this server in USD, estimated if monthly""") + price = Attribute("""Hourly price of this server in USD, estimated if + monthly""") driver = Attribute("""The NodeDriver that belongs to this Image""") @@ -84,7 +85,7 @@ """ A machine image """ - id = Attribute("""Unique ID provided by the provider (ami-abcd1234, etc)""") + id = Attribute("""Unique ID provided by the provider (ami-abcd1234)""") name = Attribute("""Name provided by the provider (Ubuntu 8.1)""") driver = Attribute("""The NodeDriver that belongs to this Image""") extra = Attribute("""Dict containing provider specific data""") @@ -102,10 +103,11 @@ """ Physical Location of a node """ - id = Attribute("""Unique ID provided by the provider for a physical datacenter""") + id = Attribute("""Unique ID provided by the provider for a physical + datacenter""") name = Attribute("""Name provided by the provider ('Austin Texas DC 1')""") - country = Attribute("""ISO 3166 country code of the physical location of the data center - """) + country = Attribute("""ISO 3166 country code of the physical location of + the data center (iso.org)""") driver = Attribute("""The NodeDriver that belongs to this Location""") class INodeLocationFactory(Interface): @@ -129,7 +131,8 @@ class INodeDriver(Interface): """ - A driver which provides nodes, such as an Amazon EC2 instance, or Slicehost slice + A driver which provides nodes, such as an Amazon EC2 instance, + or Slicehost slice """ connection = Attribute("""Represents the IConnection for this driver""") @@ -141,7 +144,8 @@ def create_node(**kwargs): """ - Creates a new node based on provided params. Name is ignored on some providers. + Creates a new node based on provided params. Name is ignored on + some providers. To specify provider-specific options, use keyword arguments. """ @@ -217,22 +221,24 @@ def add_default_params(params): """ - Adds default parameters (such as API key, version, etc.) to the passed `params` + Adds default parameters (such as API key, version, etc.) + to the passed `params` Should return a dictionary. """ def add_default_headers(headers): """ - Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` + Adds default headers (such as Authorization, X-Foo-Bar) + to the passed `headers` Should return a dictionary. """ def encode_data(data): """ - Data may need to be encoded before sent in a request. If not, simply - return the data. + Data may need to be encoded before sent in a request. + If not, simply return the data. """ @@ -245,7 +251,8 @@ class IConnectionUserAndKey(IConnectionKey): """ - IConnection which depends on a user identifier and an API for authentication. + IConnection which depends on a user identifier and an API + for authentication. """ user_id = Attribute("""User identifier""") @@ -286,7 +293,8 @@ """ A response as provided by a given HTTP Client. """ - object = Attribute("""The processed response object, e.g. via lxml or json""") + object = Attribute("""The processed response object, + e.g. via lxml or json""") body = Attribute("""Unparsed response body""") status = Attribute("""Response status code""") headers = Attribute("""Response headers""")