1and1 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/1and1-1.0.gem +0 -0
- data/1and1.gemspec +20 -0
- data/Gemfile +4 -0
- data/LICENSE +201 -0
- data/README.md +499 -0
- data/docs/reference.md +2447 -0
- data/examples/dvd_examples.rb +15 -0
- data/examples/example_app.rb +100 -0
- data/examples/firewall_examples.rb +137 -0
- data/examples/image_examples.rb +48 -0
- data/examples/load_balancer_examples.rb +145 -0
- data/examples/log_examples.rb +15 -0
- data/examples/monitoring_center_examples.rb +15 -0
- data/examples/monitoring_policy_examples.rb +343 -0
- data/examples/private_network_examples.rb +86 -0
- data/examples/public_ip_examples.rb +42 -0
- data/examples/role_examples.rb +113 -0
- data/examples/server_appliance_examples.rb +15 -0
- data/examples/server_examples.rb +438 -0
- data/examples/shared_storage_examples.rb +108 -0
- data/examples/usage_examples.rb +6 -0
- data/examples/user_examples.rb +113 -0
- data/examples/vpn_examples.rb +56 -0
- data/lib/1and1/datacenter.rb +73 -0
- data/lib/1and1/dvd.rb +73 -0
- data/lib/1and1/firewall.rb +427 -0
- data/lib/1and1/image.rb +231 -0
- data/lib/1and1/load_balancer.rb +448 -0
- data/lib/1and1/log.rb +77 -0
- data/lib/1and1/monitoring_center.rb +84 -0
- data/lib/1and1/monitoring_policy.rb +598 -0
- data/lib/1and1/oneandone.rb +57 -0
- data/lib/1and1/ping.rb +41 -0
- data/lib/1and1/ping_auth.rb +41 -0
- data/lib/1and1/pricing.rb +41 -0
- data/lib/1and1/private_network.rb +333 -0
- data/lib/1and1/public_ip.rb +192 -0
- data/lib/1and1/role.rb +381 -0
- data/lib/1and1/server.rb +1208 -0
- data/lib/1and1/server_appliance.rb +73 -0
- data/lib/1and1/shared_storage.rb +379 -0
- data/lib/1and1/usage.rb +58 -0
- data/lib/1and1/user.rb +374 -0
- data/lib/1and1/vpn.rb +249 -0
- data/lib/oneandone.rb +27 -0
- data/sphinx/Makefile +192 -0
- data/sphinx/_build/doctrees/dvds.doctree +0 -0
- data/sphinx/_build/doctrees/environment.pickle +0 -0
- data/sphinx/_build/doctrees/firewalls.doctree +0 -0
- data/sphinx/_build/doctrees/images.doctree +0 -0
- data/sphinx/_build/doctrees/index.doctree +0 -0
- data/sphinx/_build/doctrees/load_balancers.doctree +0 -0
- data/sphinx/_build/doctrees/logs.doctree +0 -0
- data/sphinx/_build/doctrees/monitoring_center.doctree +0 -0
- data/sphinx/_build/doctrees/monitoring_policies.doctree +0 -0
- data/sphinx/_build/doctrees/private_networks.doctree +0 -0
- data/sphinx/_build/doctrees/public_ips.doctree +0 -0
- data/sphinx/_build/doctrees/server_appliances.doctree +0 -0
- data/sphinx/_build/doctrees/servers.doctree +0 -0
- data/sphinx/_build/doctrees/shared_storages.doctree +0 -0
- data/sphinx/_build/doctrees/usages.doctree +0 -0
- data/sphinx/_build/doctrees/users.doctree +0 -0
- data/sphinx/_build/html/.buildinfo +4 -0
- data/sphinx/_build/html/_sources/dvds.txt +42 -0
- data/sphinx/_build/html/_sources/firewalls.txt +189 -0
- data/sphinx/_build/html/_sources/images.txt +101 -0
- data/sphinx/_build/html/_sources/index.txt +499 -0
- data/sphinx/_build/html/_sources/load_balancers.txt +231 -0
- data/sphinx/_build/html/_sources/logs.txt +55 -0
- data/sphinx/_build/html/_sources/monitoring_center.txt +55 -0
- data/sphinx/_build/html/_sources/monitoring_policies.txt +288 -0
- data/sphinx/_build/html/_sources/private_networks.txt +146 -0
- data/sphinx/_build/html/_sources/public_ips.txt +78 -0
- data/sphinx/_build/html/_sources/server_appliances.txt +42 -0
- data/sphinx/_build/html/_sources/servers.txt +630 -0
- data/sphinx/_build/html/_sources/shared_storages.txt +160 -0
- data/sphinx/_build/html/_sources/usages.txt +45 -0
- data/sphinx/_build/html/_sources/users.txt +172 -0
- data/sphinx/_build/html/_static/ajax-loader.gif +0 -0
- data/sphinx/_build/html/_static/alabaster.css +585 -0
- data/sphinx/_build/html/_static/basic.css +599 -0
- data/sphinx/_build/html/_static/comment-bright.png +0 -0
- data/sphinx/_build/html/_static/comment-close.png +0 -0
- data/sphinx/_build/html/_static/comment.png +0 -0
- data/sphinx/_build/html/_static/doctools.js +263 -0
- data/sphinx/_build/html/_static/down-pressed.png +0 -0
- data/sphinx/_build/html/_static/down.png +0 -0
- data/sphinx/_build/html/_static/file.png +0 -0
- data/sphinx/_build/html/_static/jquery-1.11.1.js +10308 -0
- data/sphinx/_build/html/_static/jquery.js +4 -0
- data/sphinx/_build/html/_static/minus.png +0 -0
- data/sphinx/_build/html/_static/plus.png +0 -0
- data/sphinx/_build/html/_static/pygments.css +63 -0
- data/sphinx/_build/html/_static/searchtools.js +651 -0
- data/sphinx/_build/html/_static/underscore-1.3.1.js +999 -0
- data/sphinx/_build/html/_static/underscore.js +31 -0
- data/sphinx/_build/html/_static/up-pressed.png +0 -0
- data/sphinx/_build/html/_static/up.png +0 -0
- data/sphinx/_build/html/_static/websupport.js +808 -0
- data/sphinx/_build/html/dvds.html +151 -0
- data/sphinx/_build/html/firewalls.html +397 -0
- data/sphinx/_build/html/genindex.html +114 -0
- data/sphinx/_build/html/images.html +236 -0
- data/sphinx/_build/html/index.html +571 -0
- data/sphinx/_build/html/load_balancers.html +409 -0
- data/sphinx/_build/html/logs.html +160 -0
- data/sphinx/_build/html/monitoring_center.html +160 -0
- data/sphinx/_build/html/monitoring_policies.html +530 -0
- data/sphinx/_build/html/objects.inv +0 -0
- data/sphinx/_build/html/private_networks.html +316 -0
- data/sphinx/_build/html/public_ips.html +215 -0
- data/sphinx/_build/html/rb-modindex.html +106 -0
- data/sphinx/_build/html/search.html +99 -0
- data/sphinx/_build/html/searchindex.js +1 -0
- data/sphinx/_build/html/server_appliances.html +153 -0
- data/sphinx/_build/html/servers.html +994 -0
- data/sphinx/_build/html/shared_storages.html +349 -0
- data/sphinx/_build/html/usages.html +140 -0
- data/sphinx/_build/html/users.html +363 -0
- data/sphinx/conf.py +287 -0
- data/sphinx/dvds.rst +42 -0
- data/sphinx/firewalls.rst +189 -0
- data/sphinx/images.rst +101 -0
- data/sphinx/index.rst +499 -0
- data/sphinx/load_balancers.rst +231 -0
- data/sphinx/logs.rst +55 -0
- data/sphinx/make.bat +263 -0
- data/sphinx/monitoring_center.rst +55 -0
- data/sphinx/monitoring_policies.rst +288 -0
- data/sphinx/private_networks.rst +146 -0
- data/sphinx/public_ips.rst +78 -0
- data/sphinx/server_appliances.rst +42 -0
- data/sphinx/servers.rst +630 -0
- data/sphinx/shared_storages.rst +160 -0
- data/sphinx/usages.rst +45 -0
- data/sphinx/users.rst +172 -0
- data/test/mock-api/add-firewall.json +66 -0
- data/test/mock-api/add-hdd.json +49 -0
- data/test/mock-api/add-lb.json +71 -0
- data/test/mock-api/add-new-ip.json +18 -0
- data/test/mock-api/add-pn.json +66 -0
- data/test/mock-api/add-port-mp.json +81 -0
- data/test/mock-api/add-process-mp.json +20 -0
- data/test/mock-api/add-rule-fp.json +33 -0
- data/test/mock-api/add-rule-lb.json +40 -0
- data/test/mock-api/add-server-ip.json +66 -0
- data/test/mock-api/add-server-mp.json +66 -0
- data/test/mock-api/assign-ip-fp.json +32 -0
- data/test/mock-api/assign-server-lb.json +39 -0
- data/test/mock-api/attach-server-pn.json +14 -0
- data/test/mock-api/attach-server-storage.json +24 -0
- data/test/mock-api/change-api-key.json +15 -0
- data/test/mock-api/change-password.json +5 -0
- data/test/mock-api/change-server-status.json +70 -0
- data/test/mock-api/clone-server.json +29 -0
- data/test/mock-api/create-fp.json +26 -0
- data/test/mock-api/create-image.json +30 -0
- data/test/mock-api/create-lb.json +33 -0
- data/test/mock-api/create-mp.json +81 -0
- data/test/mock-api/create-pn.json +11 -0
- data/test/mock-api/create-public-ip.json +10 -0
- data/test/mock-api/create-server.json +34 -0
- data/test/mock-api/create-snapshot.json +74 -0
- data/test/mock-api/create-storage.json +13 -0
- data/test/mock-api/create-user.json +14 -0
- data/test/mock-api/delete-fp.json +26 -0
- data/test/mock-api/delete-image.json +26 -0
- data/test/mock-api/delete-ip.json +15 -0
- data/test/mock-api/delete-lb.json +33 -0
- data/test/mock-api/delete-mp.json +71 -0
- data/test/mock-api/delete-pn.json +11 -0
- data/test/mock-api/delete-public-ip.json +10 -0
- data/test/mock-api/delete-rule-fp.json +26 -0
- data/test/mock-api/delete-server.json +50 -0
- data/test/mock-api/delete-snapshot.json +74 -0
- data/test/mock-api/delete-storage.json +24 -0
- data/test/mock-api/delete-user.json +15 -0
- data/test/mock-api/detach-server-lb.json +33 -0
- data/test/mock-api/detach-server-mp.json +65 -0
- data/test/mock-api/detach-server-storage.json +19 -0
- data/test/mock-api/edit-image.json +26 -0
- data/test/mock-api/eject-dvd.json +66 -0
- data/test/mock-api/fixed-server-flavors.json +70 -0
- data/test/mock-api/get-appliance.json +16 -0
- data/test/mock-api/get-dvd.json +9 -0
- data/test/mock-api/get-firewall.json +26 -0
- data/test/mock-api/get-fixed-server.json +17 -0
- data/test/mock-api/get-fp-rule.json +7 -0
- data/test/mock-api/get-hardware.json +13 -0
- data/test/mock-api/get-hdd.json +5 -0
- data/test/mock-api/get-image.json +26 -0
- data/test/mock-api/get-lb-rule.json +7 -0
- data/test/mock-api/get-lb-server.json +5 -0
- data/test/mock-api/get-load-balancer.json +33 -0
- data/test/mock-api/get-log.json +23 -0
- data/test/mock-api/get-monitoring-center.json +161 -0
- data/test/mock-api/get-mp-port.json +7 -0
- data/test/mock-api/get-mp-process.json +6 -0
- data/test/mock-api/get-mp-server.json +4 -0
- data/test/mock-api/get-mp.json +65 -0
- data/test/mock-api/get-pn-server.json +4 -0
- data/test/mock-api/get-private-network.json +20 -0
- data/test/mock-api/get-public-ip.json +10 -0
- data/test/mock-api/get-server-dvd.json +4 -0
- data/test/mock-api/get-server-image.json +4 -0
- data/test/mock-api/get-server-ip-fp.json +4 -0
- data/test/mock-api/get-server-ip.json +8 -0
- data/test/mock-api/get-server-pn.json +16 -0
- data/test/mock-api/get-server-status.json +4 -0
- data/test/mock-api/get-server-storage.json +5 -0
- data/test/mock-api/get-server.json +44 -0
- data/test/mock-api/get-storage.json +19 -0
- data/test/mock-api/get-usage.json +161 -0
- data/test/mock-api/get-user-api-key.json +3 -0
- data/test/mock-api/get-user-api.json +7 -0
- data/test/mock-api/get-user.json +15 -0
- data/test/mock-api/list-appliances.json +66 -0
- data/test/mock-api/list-credentials.json +5 -0
- data/test/mock-api/list-dvds.json +128 -0
- data/test/mock-api/list-firewalls.json +54 -0
- data/test/mock-api/list-fp-rules.json +16 -0
- data/test/mock-api/list-hdds.json +7 -0
- data/test/mock-api/list-images.json +54 -0
- data/test/mock-api/list-lb-rules.json +16 -0
- data/test/mock-api/list-lb-servers.json +12 -0
- data/test/mock-api/list-load-balancers.json +68 -0
- data/test/mock-api/list-logs.json +49 -0
- data/test/mock-api/list-monitoring-center-usages.json +90 -0
- data/test/mock-api/list-mp-ports.json +16 -0
- data/test/mock-api/list-mp-processes.json +14 -0
- data/test/mock-api/list-mp-servers.json +10 -0
- data/test/mock-api/list-mps.json +152 -0
- data/test/mock-api/list-pn-servers.json +10 -0
- data/test/mock-api/list-private-networks.json +24 -0
- data/test/mock-api/list-public-ips.json +44 -0
- data/test/mock-api/list-server-fps.json +4 -0
- data/test/mock-api/list-server-ips-fp.json +7 -0
- data/test/mock-api/list-server-ips.json +10 -0
- data/test/mock-api/list-server-lbs.json +6 -0
- data/test/mock-api/list-server-pns.json +6 -0
- data/test/mock-api/list-servers.json +66 -0
- data/test/mock-api/list-snapshots.json +7 -0
- data/test/mock-api/list-storages.json +47 -0
- data/test/mock-api/list-usages.json +144 -0
- data/test/mock-api/list-user-ips.json +5 -0
- data/test/mock-api/list-users.json +31 -0
- data/test/mock-api/load-dvd.json +63 -0
- data/test/mock-api/modify-fp.json +26 -0
- data/test/mock-api/modify-lb.json +33 -0
- data/test/mock-api/modify-mp.json +81 -0
- data/test/mock-api/modify-pn.json +20 -0
- data/test/mock-api/modify-port-mp.json +81 -0
- data/test/mock-api/modify-process-mp.json +73 -0
- data/test/mock-api/modify-public-ip.json +10 -0
- data/test/mock-api/modify-server-hardware.json +44 -0
- data/test/mock-api/modify-server-hdd.json +54 -0
- data/test/mock-api/modify-server.json +44 -0
- data/test/mock-api/modify-storage.json +19 -0
- data/test/mock-api/modify-user-api.json +15 -0
- data/test/mock-api/modify-user.json +15 -0
- data/test/mock-api/reinstall-image.json +52 -0
- data/test/mock-api/remove-firewall-policy.json +26 -0
- data/test/mock-api/remove-hdd.json +54 -0
- data/test/mock-api/remove-ip-fp.json +26 -0
- data/test/mock-api/remove-lb.json +66 -0
- data/test/mock-api/remove-pn.json +71 -0
- data/test/mock-api/remove-port-mp.json +73 -0
- data/test/mock-api/remove-process-mp.json +66 -0
- data/test/mock-api/remove-rule-lb.json +33 -0
- data/test/mock-api/remove-server-ip.json +58 -0
- data/test/mock-api/remove-server-pn.json +16 -0
- data/test/mock-api/restore-snapshot.json +55 -0
- data/test/mock-api/storage-servers.json +12 -0
- data/test/test_mock_dvd.rb +55 -0
- data/test/test_mock_firewall.rb +309 -0
- data/test/test_mock_image.rb +123 -0
- data/test/test_mock_load_balancer.rb +312 -0
- data/test/test_mock_log.rb +55 -0
- data/test/test_mock_monitoring_center.rb +55 -0
- data/test/test_mock_monitoring_policy.rb +587 -0
- data/test/test_mock_private_network.rb +206 -0
- data/test/test_mock_public_ip.rb +118 -0
- data/test/test_mock_server.rb +929 -0
- data/test/test_mock_server_appliance.rb +55 -0
- data/test/test_mock_shared_storage.rb +256 -0
- data/test/test_mock_usage.rb +34 -0
- data/test/test_mock_user.rb +270 -0
- metadata +360 -0
data/lib/oneandone.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'excon'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Top-Level Module
|
5
|
+
module OneAndOne
|
6
|
+
require_relative '1and1/oneandone'
|
7
|
+
require_relative '1and1/server'
|
8
|
+
require_relative '1and1/image'
|
9
|
+
require_relative '1and1/shared_storage'
|
10
|
+
require_relative '1and1/firewall'
|
11
|
+
require_relative '1and1/load_balancer'
|
12
|
+
require_relative '1and1/public_ip'
|
13
|
+
require_relative '1and1/private_network'
|
14
|
+
require_relative '1and1/monitoring_center'
|
15
|
+
require_relative '1and1/monitoring_policy'
|
16
|
+
require_relative '1and1/log'
|
17
|
+
require_relative '1and1/user'
|
18
|
+
require_relative '1and1/usage'
|
19
|
+
require_relative '1and1/server_appliance'
|
20
|
+
require_relative '1and1/dvd'
|
21
|
+
require_relative '1and1/datacenter'
|
22
|
+
require_relative '1and1/pricing'
|
23
|
+
require_relative '1and1/ping'
|
24
|
+
require_relative '1and1/ping_auth'
|
25
|
+
require_relative '1and1/vpn'
|
26
|
+
require_relative '1and1/role'
|
27
|
+
end
|
data/sphinx/Makefile
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
# Makefile for Sphinx documentation
|
2
|
+
#
|
3
|
+
|
4
|
+
# You can set these variables from the command line.
|
5
|
+
SPHINXOPTS =
|
6
|
+
SPHINXBUILD = sphinx-build
|
7
|
+
PAPER =
|
8
|
+
BUILDDIR = _build
|
9
|
+
|
10
|
+
# User-friendly check for sphinx-build
|
11
|
+
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
12
|
+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
13
|
+
endif
|
14
|
+
|
15
|
+
# Internal variables.
|
16
|
+
PAPEROPT_a4 = -D latex_paper_size=a4
|
17
|
+
PAPEROPT_letter = -D latex_paper_size=letter
|
18
|
+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
19
|
+
# the i18n builder cannot share the environment and doctrees with the others
|
20
|
+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
21
|
+
|
22
|
+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
|
23
|
+
|
24
|
+
help:
|
25
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
26
|
+
@echo " html to make standalone HTML files"
|
27
|
+
@echo " dirhtml to make HTML files named index.html in directories"
|
28
|
+
@echo " singlehtml to make a single large HTML file"
|
29
|
+
@echo " pickle to make pickle files"
|
30
|
+
@echo " json to make JSON files"
|
31
|
+
@echo " htmlhelp to make HTML files and a HTML help project"
|
32
|
+
@echo " qthelp to make HTML files and a qthelp project"
|
33
|
+
@echo " applehelp to make an Apple Help Book"
|
34
|
+
@echo " devhelp to make HTML files and a Devhelp project"
|
35
|
+
@echo " epub to make an epub"
|
36
|
+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
37
|
+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
38
|
+
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
39
|
+
@echo " text to make text files"
|
40
|
+
@echo " man to make manual pages"
|
41
|
+
@echo " texinfo to make Texinfo files"
|
42
|
+
@echo " info to make Texinfo files and run them through makeinfo"
|
43
|
+
@echo " gettext to make PO message catalogs"
|
44
|
+
@echo " changes to make an overview of all changed/added/deprecated items"
|
45
|
+
@echo " xml to make Docutils-native XML files"
|
46
|
+
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
47
|
+
@echo " linkcheck to check all external links for integrity"
|
48
|
+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
49
|
+
@echo " coverage to run coverage check of the documentation (if enabled)"
|
50
|
+
|
51
|
+
clean:
|
52
|
+
rm -rf $(BUILDDIR)/*
|
53
|
+
|
54
|
+
html:
|
55
|
+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
56
|
+
@echo
|
57
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
58
|
+
|
59
|
+
dirhtml:
|
60
|
+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
61
|
+
@echo
|
62
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
63
|
+
|
64
|
+
singlehtml:
|
65
|
+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
66
|
+
@echo
|
67
|
+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
68
|
+
|
69
|
+
pickle:
|
70
|
+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
71
|
+
@echo
|
72
|
+
@echo "Build finished; now you can process the pickle files."
|
73
|
+
|
74
|
+
json:
|
75
|
+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
76
|
+
@echo
|
77
|
+
@echo "Build finished; now you can process the JSON files."
|
78
|
+
|
79
|
+
htmlhelp:
|
80
|
+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
81
|
+
@echo
|
82
|
+
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
83
|
+
".hhp project file in $(BUILDDIR)/htmlhelp."
|
84
|
+
|
85
|
+
qthelp:
|
86
|
+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
87
|
+
@echo
|
88
|
+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
89
|
+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
90
|
+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/1and1RubySDK.qhcp"
|
91
|
+
@echo "To view the help file:"
|
92
|
+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/1and1RubySDK.qhc"
|
93
|
+
|
94
|
+
applehelp:
|
95
|
+
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
|
96
|
+
@echo
|
97
|
+
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
|
98
|
+
@echo "N.B. You won't be able to view it unless you put it in" \
|
99
|
+
"~/Library/Documentation/Help or install it in your application" \
|
100
|
+
"bundle."
|
101
|
+
|
102
|
+
devhelp:
|
103
|
+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
104
|
+
@echo
|
105
|
+
@echo "Build finished."
|
106
|
+
@echo "To view the help file:"
|
107
|
+
@echo "# mkdir -p $$HOME/.local/share/devhelp/1and1RubySDK"
|
108
|
+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/1and1RubySDK"
|
109
|
+
@echo "# devhelp"
|
110
|
+
|
111
|
+
epub:
|
112
|
+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
113
|
+
@echo
|
114
|
+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
115
|
+
|
116
|
+
latex:
|
117
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
118
|
+
@echo
|
119
|
+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
120
|
+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
121
|
+
"(use \`make latexpdf' here to do that automatically)."
|
122
|
+
|
123
|
+
latexpdf:
|
124
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
125
|
+
@echo "Running LaTeX files through pdflatex..."
|
126
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
127
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
128
|
+
|
129
|
+
latexpdfja:
|
130
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
131
|
+
@echo "Running LaTeX files through platex and dvipdfmx..."
|
132
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
133
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
134
|
+
|
135
|
+
text:
|
136
|
+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
137
|
+
@echo
|
138
|
+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
139
|
+
|
140
|
+
man:
|
141
|
+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
142
|
+
@echo
|
143
|
+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
144
|
+
|
145
|
+
texinfo:
|
146
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
147
|
+
@echo
|
148
|
+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
149
|
+
@echo "Run \`make' in that directory to run these through makeinfo" \
|
150
|
+
"(use \`make info' here to do that automatically)."
|
151
|
+
|
152
|
+
info:
|
153
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
154
|
+
@echo "Running Texinfo files through makeinfo..."
|
155
|
+
make -C $(BUILDDIR)/texinfo info
|
156
|
+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
157
|
+
|
158
|
+
gettext:
|
159
|
+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
160
|
+
@echo
|
161
|
+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
162
|
+
|
163
|
+
changes:
|
164
|
+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
165
|
+
@echo
|
166
|
+
@echo "The overview file is in $(BUILDDIR)/changes."
|
167
|
+
|
168
|
+
linkcheck:
|
169
|
+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
170
|
+
@echo
|
171
|
+
@echo "Link check complete; look for any errors in the above output " \
|
172
|
+
"or in $(BUILDDIR)/linkcheck/output.txt."
|
173
|
+
|
174
|
+
doctest:
|
175
|
+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
176
|
+
@echo "Testing of doctests in the sources finished, look at the " \
|
177
|
+
"results in $(BUILDDIR)/doctest/output.txt."
|
178
|
+
|
179
|
+
coverage:
|
180
|
+
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
|
181
|
+
@echo "Testing of coverage in the sources finished, look at the " \
|
182
|
+
"results in $(BUILDDIR)/coverage/python.txt."
|
183
|
+
|
184
|
+
xml:
|
185
|
+
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
186
|
+
@echo
|
187
|
+
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
188
|
+
|
189
|
+
pseudoxml:
|
190
|
+
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
191
|
+
@echo
|
192
|
+
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,42 @@
|
|
1
|
+
DVD's
|
2
|
+
*****************
|
3
|
+
|
4
|
+
.. rb:class:: OneAndOne::Dvd()
|
5
|
+
|
6
|
+
The :rb:class:`Dvd` class allows a user to perform actions against the 1and1 API.
|
7
|
+
|
8
|
+
|
9
|
+
.. rb:method:: list(page: nil, per_page: nil, sort: nil, q: nil, fields: nil)
|
10
|
+
|
11
|
+
List all DVD's on your account.
|
12
|
+
|
13
|
+
:param page: Allows the use of pagination. Indicate which page to start on.
|
14
|
+
:type page: ``int``
|
15
|
+
|
16
|
+
:param per_page: Number of items per page.
|
17
|
+
:type per_page: ``int``
|
18
|
+
|
19
|
+
:param sort: ``sort: 'name'`` retrieves a list of elements sorted
|
20
|
+
alphabetically. ``sort: 'creation_date'`` retrieves a list of elements
|
21
|
+
sorted by their creation date in descending order.
|
22
|
+
:type sort: ``str``
|
23
|
+
|
24
|
+
:param q: ``q`` is for query. Use this parameter to return only the items
|
25
|
+
that match your search query.
|
26
|
+
:type q: ``str``
|
27
|
+
|
28
|
+
:param fields: Returns only the parameters requested.
|
29
|
+
(i.e. fields: 'id, name, description, hardware.ram')
|
30
|
+
:type fields: ``str``
|
31
|
+
|
32
|
+
:rtype: JSON
|
33
|
+
|
34
|
+
|
35
|
+
.. rb:method:: get(dvd_id: nil)
|
36
|
+
|
37
|
+
Returns information about a DVD.
|
38
|
+
|
39
|
+
:param dvd_id: the unique identifier for the DVD.
|
40
|
+
:type dvd_id: ``str``
|
41
|
+
|
42
|
+
:rtype: JSON
|
@@ -0,0 +1,189 @@
|
|
1
|
+
Firewall Policies
|
2
|
+
*****************
|
3
|
+
|
4
|
+
.. rb:class:: OneAndOne::Firewall()
|
5
|
+
|
6
|
+
The :rb:class:`Firewall` class allows a user to perform actions against the 1and1 API.
|
7
|
+
|
8
|
+
|
9
|
+
.. rb:method:: list(page: nil, per_page: nil, sort: nil, q: nil, fields: nil)
|
10
|
+
|
11
|
+
Return a list of all shared storages.
|
12
|
+
|
13
|
+
:param page: Allows the use of pagination. Indicate which page to start on.
|
14
|
+
:type page: ``int``
|
15
|
+
|
16
|
+
:param per_page: Number of items per page.
|
17
|
+
:type per_page: ``int``
|
18
|
+
|
19
|
+
:param sort: ``sort: 'name'`` retrieves a list of elements sorted
|
20
|
+
alphabetically. ``sort: 'creation_date'`` retrieves a list of elements
|
21
|
+
sorted by their creation date in descending order.
|
22
|
+
:type sort: ``str``
|
23
|
+
|
24
|
+
:param q: ``q`` is for query. Use this parameter to return only the items
|
25
|
+
that match your search query.
|
26
|
+
:type q: ``str``
|
27
|
+
|
28
|
+
:param fields: Returns only the parameters requested.
|
29
|
+
(i.e. fields: 'id, name, description, hardware.ram')
|
30
|
+
:type fields: ``str``
|
31
|
+
|
32
|
+
:rtype: JSON
|
33
|
+
|
34
|
+
|
35
|
+
.. rb:method:: create(name: nil, description: nil, rules: nil)
|
36
|
+
|
37
|
+
Create a firewall policy.
|
38
|
+
|
39
|
+
:param name: firewall policy's name.
|
40
|
+
:type name: ``str``
|
41
|
+
|
42
|
+
:param description: firewall policy's name.
|
43
|
+
:type description: ``str``
|
44
|
+
|
45
|
+
:param rules: an array of rules for the new firewall policy.
|
46
|
+
:type rules: ``array``
|
47
|
+
|
48
|
+
:rtype: JSON
|
49
|
+
|
50
|
+
|
51
|
+
.. rb:method:: get(firewall_id: @id)
|
52
|
+
|
53
|
+
Returns a firewall policy's current specs.
|
54
|
+
|
55
|
+
:param firewall_id: the unique identifier for the firewall.
|
56
|
+
:type firewall_id: ``str``
|
57
|
+
|
58
|
+
:rtype: JSON
|
59
|
+
|
60
|
+
|
61
|
+
.. rb:method:: modify(firewall_id: @id, name: nil, description: nil)
|
62
|
+
|
63
|
+
Modify a firewall policy.
|
64
|
+
|
65
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
66
|
+
:type firewall_id: ``str``
|
67
|
+
|
68
|
+
:param name: firewall policy name.
|
69
|
+
:type name: ``str``
|
70
|
+
|
71
|
+
:param description: firewall policy description.
|
72
|
+
:type description: ``str``
|
73
|
+
|
74
|
+
:rtype: JSON
|
75
|
+
|
76
|
+
|
77
|
+
.. rb:method:: delete(firewall_id: @id)
|
78
|
+
|
79
|
+
Delete a firewall policy.
|
80
|
+
|
81
|
+
:param firewall_id: the unique identifier for the firewall.
|
82
|
+
:type firewall_id: ``str``
|
83
|
+
|
84
|
+
:rtype: JSON
|
85
|
+
|
86
|
+
|
87
|
+
.. rb:method:: ips(firewall_id: @id)
|
88
|
+
|
89
|
+
Returns a list of the IPs assigned to a firewall policy.
|
90
|
+
|
91
|
+
:param firewall_id: the unique identifier for the firewall.
|
92
|
+
:type firewall_id: ``str``
|
93
|
+
|
94
|
+
:rtype: JSON
|
95
|
+
|
96
|
+
|
97
|
+
.. rb:method:: ip(firewall_id: @id, ip_id: nil)
|
98
|
+
|
99
|
+
Returns information about an IP assigned to a firewall policy.
|
100
|
+
|
101
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
102
|
+
:type firewall_id: ``str``
|
103
|
+
|
104
|
+
:param ip_id: the unique identifier for the IP.
|
105
|
+
:type ip_id: ``str``
|
106
|
+
|
107
|
+
:rtype: JSON
|
108
|
+
|
109
|
+
|
110
|
+
.. rb:method:: add_ips(firewall_id: @id, ips: nil)
|
111
|
+
|
112
|
+
Add IPs to a firewall policy.
|
113
|
+
|
114
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
115
|
+
:type firewall_id: ``str``
|
116
|
+
|
117
|
+
:param ips: an array of IP ID's for the new firewall policy..
|
118
|
+
:type ips: ``array``
|
119
|
+
|
120
|
+
:rtype: JSON
|
121
|
+
|
122
|
+
|
123
|
+
.. rb:method:: remove_ip(firewall_id: @id, ip_id: nil)
|
124
|
+
|
125
|
+
Remove an IP from a firewall policy.
|
126
|
+
|
127
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
128
|
+
:type firewall_id: ``str``
|
129
|
+
|
130
|
+
:param ip_id: the unique identifier for the IP.
|
131
|
+
:type ip_id: ``str``
|
132
|
+
|
133
|
+
:rtype: JSON
|
134
|
+
|
135
|
+
|
136
|
+
.. rb:method:: rules(firewall_id: @id)
|
137
|
+
|
138
|
+
Returns a list the firewall policy's rules.
|
139
|
+
|
140
|
+
:param firewall_id: the unique identifier for the firewall.
|
141
|
+
:type firewall_id: ``str``
|
142
|
+
|
143
|
+
:rtype: JSON
|
144
|
+
|
145
|
+
|
146
|
+
.. rb:method:: rule(firewall_id: @id, rule_id: nil)
|
147
|
+
|
148
|
+
Returns information about a firewall policy's rule.
|
149
|
+
|
150
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
151
|
+
:type firewall_id: ``str``
|
152
|
+
|
153
|
+
:param rule_id: the unique identifier for the firewall rule.
|
154
|
+
:type rule_id: ``str``
|
155
|
+
|
156
|
+
:rtype: JSON
|
157
|
+
|
158
|
+
|
159
|
+
.. rb:method:: add_rules(firewall_id: @id, rules: nil)
|
160
|
+
|
161
|
+
Add rules to a firewall policy.
|
162
|
+
|
163
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
164
|
+
:type firewall_id: ``str``
|
165
|
+
|
166
|
+
:param rules: an array of rule objects.
|
167
|
+
:type rules: ``array``
|
168
|
+
|
169
|
+
:rtype: JSON
|
170
|
+
|
171
|
+
|
172
|
+
.. rb:method:: remove_rule(firewall_id: @id, rule_id: nil)
|
173
|
+
|
174
|
+
Remove a firewall policy's rule.
|
175
|
+
|
176
|
+
:param firewall_id: the unique identifier for the firewall policy.
|
177
|
+
:type firewall_id: ``str``
|
178
|
+
|
179
|
+
:param rule_id: the unique identifier for the firewall rule.
|
180
|
+
:type rule_id: ``str``
|
181
|
+
|
182
|
+
:rtype: JSON
|
183
|
+
|
184
|
+
|
185
|
+
.. rb:method:: wait_for()
|
186
|
+
|
187
|
+
Polls the firewall policy until an "ACTIVE" state is returned. Use this when chaining actions.
|
188
|
+
|
189
|
+
:rtype: ``nil``
|