You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/12/30 10:14:46 UTC

[06/11] libcloud git commit: Add missing documentation example.

Add missing documentation example.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6d6c2301
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6d6c2301
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6d6c2301

Branch: refs/heads/trunk
Commit: 6d6c2301bde102f346363f00b7074521295d48f7
Parents: 0ff2a66
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Wed Dec 30 16:52:40 2015 +0800
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Wed Dec 30 16:52:40 2015 +0800

----------------------------------------------------------------------
 docs/examples/http_proxy/constructor_argument.py | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6d6c2301/docs/examples/http_proxy/constructor_argument.py
----------------------------------------------------------------------
diff --git a/docs/examples/http_proxy/constructor_argument.py b/docs/examples/http_proxy/constructor_argument.py
new file mode 100644
index 0000000..7fc87ac
--- /dev/null
+++ b/docs/examples/http_proxy/constructor_argument.py
@@ -0,0 +1,8 @@
+from libcloud.compute.types import Provider
+from libcloud.compute.providers import get_driver
+
+PROXY_URL_NO_AUTH_1 = 'http://<proxy hostname 1>:<proxy port 2>'
+
+cls = get_driver(Provider.RACKSPACE)
+driver = cls('username', 'api key', region='ord',
+             http_proxy=PROXY_URL_NO_AUTH_1)