Skip to content

Commit 02c903b

Browse files
committed
Adding 0.4.0 docs in own folder and in latest.
1 parent 2323c88 commit 02c903b

190 files changed

Lines changed: 43688 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

0.4.0/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 1d529ca5c4de23d889ad8afec5832604
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
<!DOCTYPE html>
2+
3+
4+
<html xmlns="http://www.w3.org/1999/xhtml">
5+
<head>
6+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7+
8+
<title>gcloud.connection &mdash; gcloud 0.4.0 documentation</title>
9+
10+
<link rel="stylesheet" href="../../_static/css/main.css" type="text/css" />
11+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
12+
<link rel="stylesheet" href="../../_static/css/normalize.css" type="text/css" />
13+
<link rel="stylesheet" href="../../_static/css/github.min.css" type="text/css" />
14+
15+
<script type="text/javascript">
16+
var DOCUMENTATION_OPTIONS = {
17+
URL_ROOT: '../../',
18+
VERSION: '0.4.0',
19+
COLLAPSE_INDEX: false,
20+
FILE_SUFFIX: '.html',
21+
HAS_SOURCE: true
22+
};
23+
</script>
24+
<script type="text/javascript" src="../../_static/js/vendor/modernizr-2.6.2.min.js"></script>
25+
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
26+
<link rel="top" title="gcloud 0.4.0 documentation" href="../../index.html" />
27+
<link rel="up" title="Module code" href="../index.html" />
28+
</head>
29+
<body>
30+
<header class="page-header fixed" role="banner">
31+
<h1 class="logo">
32+
<a href="index.html" title="back to home">
33+
<img src="../../_static/images/logo.svg" alt="Google Cloud Platform" />
34+
<span class="gcloud">gcloud</span>
35+
</a>
36+
</h1>
37+
<nav class="main-nav">
38+
<div class="nav-current">Python</div>
39+
<ul class="menu">
40+
<li>
41+
<a href="
42+
https://googlecloudplatform.github.io/gcloud-node" title="Node.js docs page">
43+
<img src="../../_static/images/icon-lang-nodejs.svg" alt="Node.js icon" class="menu-icon" />
44+
Node.js
45+
</a>
46+
</li>
47+
<li>
48+
<a href="#" title="Python docs page">
49+
<img src="../../_static/images/icon-lang-python.svg" alt="Python icon" class="menu-icon" />
50+
Python
51+
</a>
52+
</li>
53+
</ul>
54+
</nav><!-- end of .main-nav -->
55+
</header><!-- end of .page-header -->
56+
57+
<article class="main lang-page" role="main">
58+
59+
<header class="docs-header">
60+
<h1 class="page-title">Python</h1>
61+
62+
<div class="versions">
63+
<span class="v-current">0.4.0</span>
64+
<!--
65+
<a href="versions.html" class="v-btn">
66+
<img src="_static/images/icon-arrow-bullet.svg" />
67+
See version History
68+
</a>-->
69+
</div><!-- end of .versions -->
70+
</header>
71+
72+
<section class="content">
73+
74+
<h1>Source code for gcloud.connection</h1><div class="highlight"><pre>
75+
<span class="c"># Copyright 2014 Google Inc. All rights reserved.</span>
76+
<span class="c">#</span>
77+
<span class="c"># Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span>
78+
<span class="c"># you may not use this file except in compliance with the License.</span>
79+
<span class="c"># You may obtain a copy of the License at</span>
80+
<span class="c">#</span>
81+
<span class="c"># http://www.apache.org/licenses/LICENSE-2.0</span>
82+
<span class="c">#</span>
83+
<span class="c"># Unless required by applicable law or agreed to in writing, software</span>
84+
<span class="c"># distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
85+
<span class="c"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
86+
<span class="c"># See the License for the specific language governing permissions and</span>
87+
<span class="c"># limitations under the License.</span>
88+
89+
<span class="sd">&quot;&quot;&quot; Shared implementation of connections to API servers.&quot;&quot;&quot;</span>
90+
91+
<span class="kn">from</span> <span class="nn">pkg_resources</span> <span class="kn">import</span> <span class="n">get_distribution</span>
92+
93+
<span class="kn">import</span> <span class="nn">httplib2</span>
94+
95+
96+
<div class="viewcode-block" id="Connection"><a class="viewcode-back" href="../../gcloud-api.html#gcloud.connection.Connection">[docs]</a><span class="k">class</span> <span class="nc">Connection</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
97+
<span class="sd">&quot;&quot;&quot;A generic connection to Google Cloud Platform.</span>
98+
99+
<span class="sd"> Subclasses should understand only the basic types in method arguments,</span>
100+
<span class="sd"> however they should be capable of returning advanced types.</span>
101+
<span class="sd"> &quot;&quot;&quot;</span>
102+
103+
<span class="n">API_BASE_URL</span> <span class="o">=</span> <span class="s">&#39;https://www.googleapis.com&#39;</span>
104+
<span class="sd">&quot;&quot;&quot;The base of the API call URL.&quot;&quot;&quot;</span>
105+
106+
<span class="n">_EMPTY</span> <span class="o">=</span> <span class="nb">object</span><span class="p">()</span>
107+
<span class="sd">&quot;&quot;&quot;A pointer to represent an empty value for default arguments.&quot;&quot;&quot;</span>
108+
109+
<span class="n">USER_AGENT</span> <span class="o">=</span> <span class="s">&quot;gcloud-python/{0}&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">get_distribution</span><span class="p">(</span><span class="s">&#39;gcloud&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">version</span><span class="p">)</span>
110+
<span class="sd">&quot;&quot;&quot;The user agent for gcloud-python requests.&quot;&quot;&quot;</span>
111+
112+
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">credentials</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
113+
<span class="sd">&quot;&quot;&quot;Constructor for Connection.</span>
114+
115+
<span class="sd"> :type credentials: :class:`oauth2client.client.OAuth2Credentials` or</span>
116+
<span class="sd"> :class:`NoneType`</span>
117+
<span class="sd"> :param credentials: The OAuth2 Credentials to use for this connection.</span>
118+
<span class="sd"> &quot;&quot;&quot;</span>
119+
<span class="bp">self</span><span class="o">.</span><span class="n">_http</span> <span class="o">=</span> <span class="bp">None</span>
120+
<span class="bp">self</span><span class="o">.</span><span class="n">_credentials</span> <span class="o">=</span> <span class="n">credentials</span>
121+
122+
<span class="nd">@property</span>
123+
<div class="viewcode-block" id="Connection.credentials"><a class="viewcode-back" href="../../gcloud-api.html#gcloud.connection.Connection.credentials">[docs]</a> <span class="k">def</span> <span class="nf">credentials</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
124+
<span class="sd">&quot;&quot;&quot;Getter for current credentials.</span>
125+
126+
<span class="sd"> :rtype: :class:`oauth2client.client.OAuth2Credentials` or</span>
127+
<span class="sd"> :class:`NoneType`</span>
128+
<span class="sd"> :returns: The credentials object associated with this connection.</span>
129+
<span class="sd"> &quot;&quot;&quot;</span>
130+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_credentials</span>
131+
</div>
132+
<span class="nd">@property</span>
133+
<div class="viewcode-block" id="Connection.http"><a class="viewcode-back" href="../../gcloud-api.html#gcloud.connection.Connection.http">[docs]</a> <span class="k">def</span> <span class="nf">http</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
134+
<span class="sd">&quot;&quot;&quot;A getter for the HTTP transport used in talking to the API.</span>
135+
136+
<span class="sd"> :rtype: :class:`httplib2.Http`</span>
137+
<span class="sd"> :returns: A Http object used to transport data.</span>
138+
<span class="sd"> &quot;&quot;&quot;</span>
139+
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_http</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
140+
<span class="bp">self</span><span class="o">.</span><span class="n">_http</span> <span class="o">=</span> <span class="n">httplib2</span><span class="o">.</span><span class="n">Http</span><span class="p">()</span>
141+
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_credentials</span><span class="p">:</span>
142+
<span class="bp">self</span><span class="o">.</span><span class="n">_http</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_credentials</span><span class="o">.</span><span class="n">authorize</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_http</span><span class="p">)</span>
143+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_http</span></div></div>
144+
</pre></div>
145+
146+
</section><!-- end of .content -->
147+
<nav class="side-nav">
148+
<ul><li><a href="../../index.html">gcloud</a></li></ul>
149+
<ul>
150+
<li class="toctree-l1"><a class="reference internal" href="../../gcloud-api.html">GCloud Package</a></li>
151+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-api.html">Datastore</a></li>
152+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-entities.html">Entities</a></li>
153+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-keys.html">Keys</a></li>
154+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-queries.html">Queries</a></li>
155+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-transactions.html">Transactions</a></li>
156+
<li class="toctree-l1"><a class="reference internal" href="../../datastore-batches.html">Batches</a></li>
157+
<li class="toctree-l1"><a class="reference internal" href="../../storage-api.html">Storage</a></li>
158+
<li class="toctree-l1"><a class="reference internal" href="../../storage-blobs.html">Blobs / Objects</a></li>
159+
<li class="toctree-l1"><a class="reference internal" href="../../storage-buckets.html">Buckets</a></li>
160+
<li class="toctree-l1"><a class="reference internal" href="../../storage-acl.html">ACL</a></li>
161+
</ul>
162+
163+
<ul class="external-links">
164+
<li>
165+
<a href="https://github.com/GoogleCloudPlatform/gcloud-python/" title="Python on Github">
166+
<img src="../../_static/images/icon-link-github.svg" alt="Github icon" />
167+
Github
168+
</a>
169+
</li>
170+
<li>
171+
<a href="https://github.com/GoogleCloudPlatform/gcloud-python/issues" title="Python issues on Github">
172+
<img src="../../_static/images/icon-link-github.svg" alt="Github icon" />
173+
Issues
174+
</a>
175+
</li>
176+
<li>
177+
<a href="http://stackoverflow.com/questions/tagged/gcloud-python" title="gcloud on StackOverflow">
178+
<img src="../../_static/images/icon-link-stackoverflow.svg" alt="StackOverflow icon" />
179+
gcloud
180+
</a>
181+
</li>
182+
<li>
183+
<a href="https://pypi.python.org/pypi/gcloud" title="Python package manager">
184+
<img src="../../_static/images/icon-link-package-manager.svg" alt="Package Manager icon" />
185+
Package Manager
186+
</a>
187+
</li>
188+
</ul>
189+
</nav><!-- end of .side-nav -->
190+
</article><!-- end of .main -->
191+
192+
<script src="../../_static/js/vendor/jquery-1.10.2.min.js"></script>
193+
<script src="../../_static/js/plugins.js"></script>
194+
<script src="../../_static/js/main.js"></script>
195+
196+
</body>
197+
</html>

0 commit comments

Comments
 (0)