didata_cloud_sdk 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +4 -0
- data/README.md +63 -0
- data/doc/Cloud-REST-API-v09-121313.pdf +0 -0
- data/doc/deprecated_sections.txt +21 -0
- data/doc/doc.txt +11201 -0
- data/doc/pagination-and-filtering.txt +24 -0
- data/doc/schemas.txt +10 -0
- data/doc/sections.txt +101 -0
- data/doc/urls.txt +101 -0
- data/lib/opsource/api/account.rb +13 -0
- data/lib/opsource/api/core.rb +127 -0
- data/lib/opsource/api/directory.rb +8 -0
- data/lib/opsource/api/image.rb +24 -0
- data/lib/opsource/api/network.rb +65 -0
- data/lib/opsource/api/report.rb +24 -0
- data/lib/opsource/api/server.rb +185 -0
- data/lib/opsource/api/vip.rb +125 -0
- data/lib/opsource/client.rb +91 -0
- data/lib/opsource/connection.rb +60 -0
- data/lib/opsource/exceptions.rb +14 -0
- data/lib/opsource/params.rb +62 -0
- data/lib/opsource/version.rb +22 -0
- data/lib/opsource/xml.rb +53 -0
- data/lib/opsource.rb +22 -0
- data/opsource.gemspec +27 -0
- metadata +157 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ed196d074119be28999a07af334e8daaf648dafb
|
4
|
+
data.tar.gz: b3e7d907e00443d51465826b0e5a95ef10dfebeb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 410588b3b7ee1c7c4c34b4942c092cd6076da494ba663a3bba6ae14d7714f2ef3f080dbb868c1364bf9511755e929a583cc59035c48788fa6df3dd67c5c9e544
|
7
|
+
data.tar.gz: 25a6d44b3e3204b3364457a0b09b29b41f532ce2f7fdae1d0b07904d4a533e8db8f4bf93d77177705a97c82079ab72633003ed712eaef38f19a6b4bcb50ecfca
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
## opsource-gem
|
2
|
+
|
3
|
+
Opsource Cloud API gem designed for easy extensibility.
|
4
|
+
|
5
|
+
See `lib/opsource/api` folder for examples how to add additional endpoints.
|
6
|
+
|
7
|
+
Inspired by https://github.com/udayakiran/opsource.
|
8
|
+
|
9
|
+
|
10
|
+
### Install
|
11
|
+
|
12
|
+
either install as a gem via Bundler
|
13
|
+
|
14
|
+
__or__
|
15
|
+
|
16
|
+
clone into your project, install gems from `opsource.gemspec` and do:
|
17
|
+
|
18
|
+
```
|
19
|
+
$: << 'opsource/lib'
|
20
|
+
require 'opsource.rb'
|
21
|
+
```
|
22
|
+
|
23
|
+
### Usage
|
24
|
+
|
25
|
+
```
|
26
|
+
api_base = "https://cloudapi.nttamerica.com/oec/0.9"
|
27
|
+
dev_org_id = 'my-super-secret-org-numbersandletters'
|
28
|
+
dev_user = 'me'
|
29
|
+
dev_password = 'very secret'
|
30
|
+
|
31
|
+
c = Opsource::Client.new(api_base, dev_org_id, dev_user, dev_password)
|
32
|
+
|
33
|
+
server = c.server.list(name: 'myfavoritevm')
|
34
|
+
pp c.server.show_with_disks(server.network_id, server.id)
|
35
|
+
```
|
36
|
+
|
37
|
+
### Examples
|
38
|
+
|
39
|
+
```
|
40
|
+
#create a new network
|
41
|
+
c.network.create("network-name", "description", "EU1")
|
42
|
+
#list networks
|
43
|
+
pp c.network.list
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
### Add your own API calls
|
48
|
+
|
49
|
+
For already supported methods see:
|
50
|
+
```
|
51
|
+
api/directory.rb
|
52
|
+
api/image.rb
|
53
|
+
api/network.rb
|
54
|
+
api/server.rb
|
55
|
+
api/vip.rb
|
56
|
+
```
|
57
|
+
|
58
|
+
See `doc` folder for API info needed for adding you own methods. `api/core.rb` is the plumbing.
|
59
|
+
|
60
|
+
|
61
|
+
### TODO
|
62
|
+
|
63
|
+
Write some tests. Make pull requests.
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
10. Deprecated Functions
|
2
|
+
10.1. List Data Centers with Limits
|
3
|
+
10.2. List Multi-Geography Data Centers
|
4
|
+
10.3. Get Server Details
|
5
|
+
10.4. List Deployed Servers
|
6
|
+
10.5. List Pending Deployment Servers
|
7
|
+
10.6. Reserve Public IP Block
|
8
|
+
10.7. List Deployed Servers on Network with Software Labels
|
9
|
+
10.8. List Pending Deployment Servers on Network
|
10
|
+
10.9. List Deployed Customer Images in Location
|
11
|
+
10.10. List OS Server Images in Location
|
12
|
+
10.11. List Deployed Servers on Network with Status
|
13
|
+
10.12. Restart Server
|
14
|
+
10.13. List Deployed Servers on Network
|
15
|
+
10.14. List Data Centers
|
16
|
+
10.15. List Web/DB Server Images
|
17
|
+
10.16. List Customer Server Images
|
18
|
+
10.17. List Partner Server Images
|
19
|
+
10.18. List Servers
|
20
|
+
10.19. Stop Server
|
21
|
+
10.20. List Servers on Network
|