From 5f75778eca3c0d6cd32267ef363d9cfcbc53fd82 Mon Sep 17 00:00:00 2001 From: travis-ci Date: Sat, 29 Aug 2015 00:40:02 +0000 Subject: [PATCH] Update docs after merge to master. --- latest/.buildinfo | 2 +- latest/_modules/gcloud/bigquery/client.html | 10 +++--- .../_modules/gcloud/bigquery/connection.html | 21 +++++------- latest/_modules/gcloud/bigquery/dataset.html | 10 +++--- latest/_modules/gcloud/bigquery/job.html | 10 +++--- latest/_modules/gcloud/bigquery/table.html | 10 +++--- latest/_modules/gcloud/client.html | 10 +++--- latest/_modules/gcloud/connection.html | 19 +++++++---- latest/_modules/gcloud/credentials.html | 10 +++--- latest/_modules/gcloud/datastore/batch.html | 10 +++--- latest/_modules/gcloud/datastore/client.html | 10 +++--- .../_modules/gcloud/datastore/connection.html | 20 +++++------ latest/_modules/gcloud/datastore/entity.html | 10 +++--- latest/_modules/gcloud/datastore/key.html | 10 +++--- latest/_modules/gcloud/datastore/query.html | 10 +++--- .../gcloud/datastore/transaction.html | 10 +++--- latest/_modules/gcloud/exceptions.html | 10 +++--- latest/_modules/gcloud/pubsub/client.html | 10 +++--- latest/_modules/gcloud/pubsub/connection.html | 29 ++++++++-------- .../_modules/gcloud/pubsub/subscription.html | 10 +++--- latest/_modules/gcloud/pubsub/topic.html | 10 +++--- .../gcloud/resource_manager/client.html | 10 +++--- .../gcloud/resource_manager/connection.html | 26 +++++++++------ .../gcloud/resource_manager/project.html | 10 +++--- latest/_modules/gcloud/storage/acl.html | 10 +++--- latest/_modules/gcloud/storage/blob.html | 10 +++--- latest/_modules/gcloud/storage/bucket.html | 10 +++--- latest/_modules/gcloud/storage/client.html | 10 +++--- .../_modules/gcloud/storage/connection.html | 31 ++++++++++-------- latest/_modules/index.html | 10 +++--- latest/bigquery-client.html | 18 +++++----- latest/bigquery-dataset.html | 10 +++--- latest/bigquery-job.html | 10 +++--- latest/bigquery-table.html | 10 +++--- latest/bigquery-usage.html | 10 +++--- latest/datastore-batches.html | 10 +++--- latest/datastore-client.html | 22 ++++++------- latest/datastore-entities.html | 10 +++--- latest/datastore-keys.html | 10 +++--- latest/datastore-queries.html | 12 +++---- latest/datastore-transactions.html | 10 +++--- latest/gcloud-api.html | 17 +++++++--- latest/gcloud-auth.html | 10 +++--- latest/genindex.html | 24 ++++++++------ latest/index.html | 10 +++--- latest/objects.inv | Bin 3809 -> 3804 bytes latest/pubsub-client.html | 31 +++++++++++++----- latest/pubsub-subscription.html | 10 +++--- latest/pubsub-topic.html | 10 +++--- latest/pubsub-usage.html | 10 +++--- latest/py-modindex.html | 10 +++--- latest/resource-manager-api.html | 10 +++--- latest/resource-manager-client.html | 31 +++++++++++++----- latest/resource-manager-project.html | 10 +++--- latest/search.html | 10 +++--- latest/searchindex.js | 2 +- latest/storage-acl.html | 10 +++--- latest/storage-blobs.html | 10 +++--- latest/storage-buckets.html | 10 +++--- latest/storage-client.html | 31 +++++++++++++----- 60 files changed, 414 insertions(+), 352 deletions(-) diff --git a/latest/.buildinfo b/latest/.buildinfo index e8e62a1599cd..813873ab5b70 100644 --- a/latest/.buildinfo +++ b/latest/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0deb8fc384262123dd47cdf354cd6b6a +config: 96eb07a54560688d81b867b3ad0b553e tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/latest/_modules/gcloud/bigquery/client.html b/latest/_modules/gcloud/bigquery/client.html index a58739e0597f..05f4fab25d65 100644 --- a/latest/_modules/gcloud/bigquery/client.html +++ b/latest/_modules/gcloud/bigquery/client.html @@ -5,7 +5,7 @@ - gcloud.bigquery.client — gcloud fa4563d documentation + gcloud.bigquery.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/bigquery/connection.html b/latest/_modules/gcloud/bigquery/connection.html index cfe8c56cea3f..30b3e2701812 100644 --- a/latest/_modules/gcloud/bigquery/connection.html +++ b/latest/_modules/gcloud/bigquery/connection.html @@ -5,7 +5,7 @@ - gcloud.bigquery.connection — gcloud fa4563d documentation + gcloud.bigquery.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -110,11 +110,6 @@

Source code for gcloud.bigquery.connection

 from gcloud import connection as base_connection
 
 
-SCOPE = ('https://www.googleapis.com/auth/bigquery',
-         'https://www.googleapis.com/auth/cloud-platform')
-"""The scopes required for authenticating as a Cloud BigQuery consumer."""
-
-
 
[docs]class Connection(base_connection.JSONConnection): """A connection to Google Cloud Pubsub via the JSON REST API.""" @@ -127,9 +122,9 @@

Source code for gcloud.bigquery.connection

     API_URL_TEMPLATE = '{api_base_url}/bigquery/{api_version}{path}'
     """A template for the URL of a particular API call."""
 
-    def __init__(self, credentials=None, http=None):
-        credentials = self._create_scoped_credentials(credentials, SCOPE)
-        super(Connection, self).__init__(credentials=credentials, http=http)
+ SCOPE = ('https://www.googleapis.com/auth/bigquery', + 'https://www.googleapis.com/auth/cloud-platform') + """The scopes required for authenticating as a Cloud BigQuery consumer."""
diff --git a/latest/_modules/gcloud/bigquery/dataset.html b/latest/_modules/gcloud/bigquery/dataset.html index 02afeed0170e..98ed686908d3 100644 --- a/latest/_modules/gcloud/bigquery/dataset.html +++ b/latest/_modules/gcloud/bigquery/dataset.html @@ -5,7 +5,7 @@ - gcloud.bigquery.dataset — gcloud fa4563d documentation + gcloud.bigquery.dataset — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/bigquery/job.html b/latest/_modules/gcloud/bigquery/job.html index b07f912acbaf..9079c14a6595 100644 --- a/latest/_modules/gcloud/bigquery/job.html +++ b/latest/_modules/gcloud/bigquery/job.html @@ -5,7 +5,7 @@ - gcloud.bigquery.job — gcloud fa4563d documentation + gcloud.bigquery.job — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/bigquery/table.html b/latest/_modules/gcloud/bigquery/table.html index 84060070a108..6cf1c5fdb7ff 100644 --- a/latest/_modules/gcloud/bigquery/table.html +++ b/latest/_modules/gcloud/bigquery/table.html @@ -5,7 +5,7 @@ - gcloud.bigquery.table — gcloud fa4563d documentation + gcloud.bigquery.table — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/client.html b/latest/_modules/gcloud/client.html index 1c879bcfa459..2d377943f675 100644 --- a/latest/_modules/gcloud/client.html +++ b/latest/_modules/gcloud/client.html @@ -5,7 +5,7 @@ - gcloud.client — gcloud fa4563d documentation + gcloud.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/connection.html b/latest/_modules/gcloud/connection.html index 441c33f7cecc..7d6061627d7d 100644 --- a/latest/_modules/gcloud/connection.html +++ b/latest/_modules/gcloud/connection.html @@ -5,7 +5,7 @@ - gcloud.connection — gcloud fa4563d documentation + gcloud.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -162,9 +162,16 @@

Source code for gcloud.connection

     USER_AGENT = "gcloud-python/{0}".format(get_distribution('gcloud').version)
     """The user agent for gcloud-python requests."""
 
+    SCOPE = None
+    """The scopes required for authenticating with a service.
+
+    Needs to be set by subclasses.
+    """
+
     def __init__(self, credentials=None, http=None):
         self._http = http
-        self._credentials = credentials
+        self._credentials = self._create_scoped_credentials(
+            credentials, self.SCOPE)
 
     @property
     def credentials(self):
diff --git a/latest/_modules/gcloud/credentials.html b/latest/_modules/gcloud/credentials.html
index 5d6202cbb2c2..5ea461a49f7e 100644
--- a/latest/_modules/gcloud/credentials.html
+++ b/latest/_modules/gcloud/credentials.html
@@ -5,7 +5,7 @@
   
     
     
-    gcloud.credentials — gcloud fa4563d documentation
+    gcloud.credentials — gcloud 3687302 documentation
     
     
     
@@ -14,7 +14,7 @@
     
     
     
-    
+    
      
   
   
@@ -65,7 +65,7 @@ 

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/batch.html b/latest/_modules/gcloud/datastore/batch.html index 7bc83a5a8453..f63949edf17d 100644 --- a/latest/_modules/gcloud/datastore/batch.html +++ b/latest/_modules/gcloud/datastore/batch.html @@ -5,7 +5,7 @@ - gcloud.datastore.batch — gcloud fa4563d documentation + gcloud.datastore.batch — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/client.html b/latest/_modules/gcloud/datastore/client.html index 06bbd227d2a2..bbf9cde66c0a 100644 --- a/latest/_modules/gcloud/datastore/client.html +++ b/latest/_modules/gcloud/datastore/client.html @@ -5,7 +5,7 @@ - gcloud.datastore.client — gcloud fa4563d documentation + gcloud.datastore.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/connection.html b/latest/_modules/gcloud/datastore/connection.html index 3ba5b32084f3..86800e391c5c 100644 --- a/latest/_modules/gcloud/datastore/connection.html +++ b/latest/_modules/gcloud/datastore/connection.html @@ -5,7 +5,7 @@ - gcloud.datastore.connection — gcloud fa4563d documentation + gcloud.datastore.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -115,11 +115,6 @@

Source code for gcloud.datastore.connection

 from gcloud.datastore import _datastore_v1_pb2 as datastore_pb
 
 
-SCOPE = ('https://www.googleapis.com/auth/datastore',
-         'https://www.googleapis.com/auth/userinfo.email')
-"""The scopes required for authenticating as a Cloud Datastore consumer."""
-
-
 
[docs]class Connection(connection.Connection): """A connection to the Google Cloud Datastore via the Protobuf API. @@ -144,8 +139,11 @@

Source code for gcloud.datastore.connection

                         '/datasets/{dataset_id}/{method}')
     """A template for the URL of a particular API call."""
 
+    SCOPE = ('https://www.googleapis.com/auth/datastore',
+             'https://www.googleapis.com/auth/userinfo.email')
+    """The scopes required for authenticating as a Cloud Datastore consumer."""
+
     def __init__(self, credentials=None, http=None, api_base_url=None):
-        credentials = self._create_scoped_credentials(credentials, SCOPE)
         super(Connection, self).__init__(credentials=credentials, http=http)
         if api_base_url is None:
             api_base_url = os.getenv(GCD_HOST,
diff --git a/latest/_modules/gcloud/datastore/entity.html b/latest/_modules/gcloud/datastore/entity.html
index f4f8b6188ee0..bd74e15432e4 100644
--- a/latest/_modules/gcloud/datastore/entity.html
+++ b/latest/_modules/gcloud/datastore/entity.html
@@ -5,7 +5,7 @@
   
     
     
-    gcloud.datastore.entity — gcloud fa4563d documentation
+    gcloud.datastore.entity — gcloud 3687302 documentation
     
     
     
@@ -14,7 +14,7 @@
     
     
     
-    
+    
      
   
   
@@ -65,7 +65,7 @@ 

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/key.html b/latest/_modules/gcloud/datastore/key.html index cef6d2b552f1..c4421f144d68 100644 --- a/latest/_modules/gcloud/datastore/key.html +++ b/latest/_modules/gcloud/datastore/key.html @@ -5,7 +5,7 @@ - gcloud.datastore.key — gcloud fa4563d documentation + gcloud.datastore.key — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/query.html b/latest/_modules/gcloud/datastore/query.html index 88b424cf7cdf..4e88ab8ea35c 100644 --- a/latest/_modules/gcloud/datastore/query.html +++ b/latest/_modules/gcloud/datastore/query.html @@ -5,7 +5,7 @@ - gcloud.datastore.query — gcloud fa4563d documentation + gcloud.datastore.query — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/datastore/transaction.html b/latest/_modules/gcloud/datastore/transaction.html index 4eb1684b4703..b8e63a3e6f1f 100644 --- a/latest/_modules/gcloud/datastore/transaction.html +++ b/latest/_modules/gcloud/datastore/transaction.html @@ -5,7 +5,7 @@ - gcloud.datastore.transaction — gcloud fa4563d documentation + gcloud.datastore.transaction — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/exceptions.html b/latest/_modules/gcloud/exceptions.html index b0ea7ccebaa6..fab847b6e2f0 100644 --- a/latest/_modules/gcloud/exceptions.html +++ b/latest/_modules/gcloud/exceptions.html @@ -5,7 +5,7 @@ - gcloud.exceptions — gcloud fa4563d documentation + gcloud.exceptions — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/pubsub/client.html b/latest/_modules/gcloud/pubsub/client.html index cf9080195bef..0b20bdfa037a 100644 --- a/latest/_modules/gcloud/pubsub/client.html +++ b/latest/_modules/gcloud/pubsub/client.html @@ -5,7 +5,7 @@ - gcloud.pubsub.client — gcloud fa4563d documentation + gcloud.pubsub.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/pubsub/connection.html b/latest/_modules/gcloud/pubsub/connection.html index f31e62b6103d..c0a575cb3ab5 100644 --- a/latest/_modules/gcloud/pubsub/connection.html +++ b/latest/_modules/gcloud/pubsub/connection.html @@ -5,7 +5,7 @@ - gcloud.pubsub.connection — gcloud fa4563d documentation + gcloud.pubsub.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -110,13 +110,16 @@

Source code for gcloud.pubsub.connection

 from gcloud import connection as base_connection
 
 
-SCOPE = ('https://www.googleapis.com/auth/pubsub',
-         'https://www.googleapis.com/auth/cloud-platform')
-"""The scopes required for authenticating as a Cloud Pub/Sub consumer."""
+
[docs]class Connection(base_connection.JSONConnection): + """A connection to Google Cloud Pubsub via the JSON REST API. + :type credentials: :class:`oauth2client.client.OAuth2Credentials` + :param credentials: (Optional) The OAuth2 Credentials to use for this + connection. -
[docs]class Connection(base_connection.JSONConnection): - """A connection to Google Cloud Pubsub via the JSON REST API.""" + :type http: :class:`httplib2.Http` or class that defines ``request()``. + :param http: (Optional) HTTP object to make requests. + """ API_BASE_URL = 'https://pubsub.googleapis.com' """The base of the API call URL.""" @@ -127,9 +130,9 @@

Source code for gcloud.pubsub.connection

     API_URL_TEMPLATE = '{api_base_url}/{api_version}{path}'
     """A template for the URL of a particular API call."""
 
-    def __init__(self, credentials=None, http=None):
-        credentials = self._create_scoped_credentials(credentials, SCOPE)
-        super(Connection, self).__init__(credentials=credentials, http=http)
+ SCOPE = ('https://www.googleapis.com/auth/pubsub', + 'https://www.googleapis.com/auth/cloud-platform') + """The scopes required for authenticating as a Cloud Pub/Sub consumer."""
diff --git a/latest/_modules/gcloud/pubsub/subscription.html b/latest/_modules/gcloud/pubsub/subscription.html index 2b4965e9ea5b..89272aae8dec 100644 --- a/latest/_modules/gcloud/pubsub/subscription.html +++ b/latest/_modules/gcloud/pubsub/subscription.html @@ -5,7 +5,7 @@ - gcloud.pubsub.subscription — gcloud fa4563d documentation + gcloud.pubsub.subscription — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/pubsub/topic.html b/latest/_modules/gcloud/pubsub/topic.html index 510b16692206..8ba1b7ece4ad 100644 --- a/latest/_modules/gcloud/pubsub/topic.html +++ b/latest/_modules/gcloud/pubsub/topic.html @@ -5,7 +5,7 @@ - gcloud.pubsub.topic — gcloud fa4563d documentation + gcloud.pubsub.topic — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/resource_manager/client.html b/latest/_modules/gcloud/resource_manager/client.html index 78eee1e515fe..ac6a2821ee04 100644 --- a/latest/_modules/gcloud/resource_manager/client.html +++ b/latest/_modules/gcloud/resource_manager/client.html @@ -5,7 +5,7 @@ - gcloud.resource_manager.client — gcloud fa4563d documentation + gcloud.resource_manager.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/resource_manager/connection.html b/latest/_modules/gcloud/resource_manager/connection.html index 44b6a3b21bdb..94eaf18eeffd 100644 --- a/latest/_modules/gcloud/resource_manager/connection.html +++ b/latest/_modules/gcloud/resource_manager/connection.html @@ -5,7 +5,7 @@ - gcloud.resource_manager.connection — gcloud fa4563d documentation + gcloud.resource_manager.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -113,12 +113,16 @@

Source code for gcloud.resource_manager.connection

from gcloud import connection as base_connection -SCOPE = ('https://www.googleapis.com/auth/cloud-platform',) -"""The scopes required for authenticating as a Resouce Manager consumer.""" +
[docs]class Connection(base_connection.JSONConnection): + """A connection to Google Cloud Resource Manager via the JSON REST API. + :type credentials: :class:`oauth2client.client.OAuth2Credentials` + :param credentials: (Optional) The OAuth2 Credentials to use for this + connection. -
[docs]class Connection(base_connection.JSONConnection): - """A connection to Google Cloud Resource Manager via the JSON REST API.""" + :type http: :class:`httplib2.Http` or class that defines ``request()``. + :param http: (Optional) HTTP object to make requests. + """ API_BASE_URL = 'https://cloudresourcemanager.googleapis.com' """The base of the API call URL.""" @@ -129,6 +133,9 @@

Source code for gcloud.resource_manager.connection

API_URL_TEMPLATE = '{api_base_url}/{api_version}{path}' """A template for the URL of a particular API call.""" + SCOPE = ('https://www.googleapis.com/auth/cloud-platform',) + """The scopes required for authenticating as a Resouce Manager consumer.""" + def __init__(self, credentials=None, http=None): if isinstance(credentials, AssertionCredentials): message = ('credentials (%r) inherits from ' @@ -136,7 +143,6 @@

Source code for gcloud.resource_manager.connection

'used with the Resource Manager API. ' % (credentials,)) raise TypeError(message) - credentials = self._create_scoped_credentials(credentials, SCOPE) super(Connection, self).__init__(credentials=credentials, http=http)

diff --git a/latest/_modules/gcloud/resource_manager/project.html b/latest/_modules/gcloud/resource_manager/project.html index 749b9ac5ea1e..691bd6a6d259 100644 --- a/latest/_modules/gcloud/resource_manager/project.html +++ b/latest/_modules/gcloud/resource_manager/project.html @@ -5,7 +5,7 @@ - gcloud.resource_manager.project — gcloud fa4563d documentation + gcloud.resource_manager.project — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/storage/acl.html b/latest/_modules/gcloud/storage/acl.html index 81fc704f9db9..8508ef442ddc 100644 --- a/latest/_modules/gcloud/storage/acl.html +++ b/latest/_modules/gcloud/storage/acl.html @@ -5,7 +5,7 @@ - gcloud.storage.acl — gcloud fa4563d documentation + gcloud.storage.acl — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/storage/blob.html b/latest/_modules/gcloud/storage/blob.html index a2a17ce7a13d..0a7b4edeca68 100644 --- a/latest/_modules/gcloud/storage/blob.html +++ b/latest/_modules/gcloud/storage/blob.html @@ -5,7 +5,7 @@ - gcloud.storage.blob — gcloud fa4563d documentation + gcloud.storage.blob — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/storage/bucket.html b/latest/_modules/gcloud/storage/bucket.html index b45733b8e7db..d9b347342f52 100644 --- a/latest/_modules/gcloud/storage/bucket.html +++ b/latest/_modules/gcloud/storage/bucket.html @@ -5,7 +5,7 @@ - gcloud.storage.bucket — gcloud fa4563d documentation + gcloud.storage.bucket — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/storage/client.html b/latest/_modules/gcloud/storage/client.html index 403c4315b14c..c232869af5c7 100644 --- a/latest/_modules/gcloud/storage/client.html +++ b/latest/_modules/gcloud/storage/client.html @@ -5,7 +5,7 @@ - gcloud.storage.client — gcloud fa4563d documentation + gcloud.storage.client — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

diff --git a/latest/_modules/gcloud/storage/connection.html b/latest/_modules/gcloud/storage/connection.html index 123aa4598cb8..8c6d352aeb39 100644 --- a/latest/_modules/gcloud/storage/connection.html +++ b/latest/_modules/gcloud/storage/connection.html @@ -5,7 +5,7 @@ - gcloud.storage.connection — gcloud fa4563d documentation + gcloud.storage.connection — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - + @@ -65,7 +65,7 @@

- + Report an Issue @@ -77,7 +77,7 @@

@@ -110,14 +110,16 @@

Source code for gcloud.storage.connection

 from gcloud import connection as base_connection
 
 
-SCOPE = ('https://www.googleapis.com/auth/devstorage.full_control',
-         'https://www.googleapis.com/auth/devstorage.read_only',
-         'https://www.googleapis.com/auth/devstorage.read_write')
-"""The scopes required for authenticating as a Cloud Storage consumer."""
+
[docs]class Connection(base_connection.JSONConnection): + """A connection to Google Cloud Storage via the JSON REST API. + :type credentials: :class:`oauth2client.client.OAuth2Credentials` + :param credentials: (Optional) The OAuth2 Credentials to use for this + connection. -
[docs]class Connection(base_connection.JSONConnection): - """A connection to Google Cloud Storage via the JSON REST API.""" + :type http: :class:`httplib2.Http` or class that defines ``request()``. + :param http: (Optional) HTTP object to make requests. + """ API_BASE_URL = base_connection.API_BASE_URL """The base of the API call URL.""" @@ -128,9 +130,10 @@

Source code for gcloud.storage.connection

     API_URL_TEMPLATE = '{api_base_url}/storage/{api_version}{path}'
     """A template for the URL of a particular API call."""
 
-    def __init__(self, credentials=None, http=None):
-        credentials = self._create_scoped_credentials(credentials, SCOPE)
-        super(Connection, self).__init__(credentials=credentials, http=http)
+ SCOPE = ('https://www.googleapis.com/auth/devstorage.full_control', + 'https://www.googleapis.com/auth/devstorage.read_only', + 'https://www.googleapis.com/auth/devstorage.read_write') + """The scopes required for authenticating as a Cloud Storage consumer."""
diff --git a/latest/_modules/index.html b/latest/_modules/index.html index 326f09743412..e2a6a90c7a45 100644 --- a/latest/_modules/index.html +++ b/latest/_modules/index.html @@ -5,7 +5,7 @@ - Overview: module code — gcloud fa4563d documentation + Overview: module code — gcloud 3687302 documentation @@ -14,7 +14,7 @@ - +