didata_cloud_sdk 0.3.1 → 0.3.2
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 +4 -4
- data/.gitignore +1 -0
- data/LICENSE +20 -0
- data/README.md +11 -7
- data/{opsource.gemspec → ddcloud.gemspec} +4 -3
- data/lib/{opsource → ddcloud}/api/account.rb +1 -1
- data/lib/{opsource → ddcloud}/api/core.rb +1 -1
- data/lib/{opsource → ddcloud}/api/directory.rb +2 -2
- data/lib/{opsource → ddcloud}/api/image.rb +2 -2
- data/lib/{opsource → ddcloud}/api/network.rb +1 -1
- data/lib/{opsource → ddcloud}/api/report.rb +1 -1
- data/lib/{opsource → ddcloud}/api/server.rb +1 -1
- data/lib/{opsource → ddcloud}/api/vip.rb +1 -1
- data/lib/{opsource → ddcloud}/client.rb +11 -11
- data/lib/{opsource → ddcloud}/connection.rb +1 -1
- data/lib/{opsource → ddcloud}/exceptions.rb +2 -2
- data/lib/{opsource → ddcloud}/params.rb +2 -2
- data/lib/{opsource → ddcloud}/version.rb +2 -2
- data/lib/{opsource → ddcloud}/xml.rb +1 -1
- data/lib/ddcloud.rb +22 -0
- metadata +22 -20
- data/lib/opsource.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa0d979868dddb28db6d03b20bb37af5d460645c
|
4
|
+
data.tar.gz: f7e5101a550d9be5a94c5513a109f1b5d1d177c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9338df5b87eeb3308381034ac8f0055a40446575c88d68e52097d581880328cb282b1be1524e66a8a45da8aa0ba6fbc64f68d33e178c0effa89dfe8136817795
|
7
|
+
data.tar.gz: 43529b77a8fc7b2ec83fd486d64e4b43185633b59ac660315e50aa349b9d4eb9ab12d371df7a76a069c174728f15468fcc9c54f720e3e8aab5e6736fd117575f
|
data/.gitignore
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 tintoy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
##
|
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.
|
1
|
+
## Dimension Data Cloud gem
|
8
2
|
|
3
|
+
Dimension Data Cloud API gem designed for easy extensibility.
|
9
4
|
|
10
5
|
### Install
|
11
6
|
|
12
7
|
either install as a gem via Bundler
|
8
|
+
```
|
9
|
+
gem install gem install didata_cloud_sdk
|
10
|
+
```
|
13
11
|
|
14
12
|
__or__
|
15
13
|
|
@@ -57,6 +55,12 @@ api/vip.rb
|
|
57
55
|
|
58
56
|
See `doc` folder for API info needed for adding you own methods. `api/core.rb` is the plumbing.
|
59
57
|
|
58
|
+
See `lib/opsource/api` folder for examples how to add additional endpoints.
|
59
|
+
|
60
|
+
Inspired by https://github.com/udayakiran/opsource.
|
61
|
+
|
62
|
+
|
63
|
+
|
60
64
|
|
61
65
|
### TODO
|
62
66
|
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "
|
3
|
+
require "ddcloud/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "didata_cloud_sdk"
|
7
|
-
s.version =
|
7
|
+
s.version = DDcloud::VERSION
|
8
8
|
s.authors = ["Juozas Gaigalas", "Tim Wade", "Stijn Muylle"]
|
9
9
|
s.email = ["juozasgaigalas@gmail.com", "pimpingeezer@gmail.com", "stijnmuylle@gmail.com"]
|
10
|
+
s.licenses = ['MIT']
|
10
11
|
s.homepage = ""
|
11
12
|
s.summary = %q{Dimension Data REST API client gem}
|
12
13
|
s.description = %q{SDK to access Dimension Data Cloud api'}
|
13
14
|
|
14
|
-
s.rubyforge_project = "
|
15
|
+
s.rubyforge_project = "ddcloud"
|
15
16
|
|
16
17
|
s.files = `git ls-files`.split("\n")
|
17
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -1,8 +1,8 @@
|
|
1
|
-
module
|
1
|
+
module DDcloud
|
2
2
|
class Client
|
3
|
-
include
|
4
|
-
include
|
5
|
-
include
|
3
|
+
include DDcloud::Connection
|
4
|
+
include DDcloud::Params
|
5
|
+
include DDcloud::XML
|
6
6
|
|
7
7
|
attr_reader :api_base, :org_id, :username, :password
|
8
8
|
attr_reader :image, :directory, :network, :server, :account, :report
|
@@ -35,31 +35,31 @@ module Opsource
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def directory
|
38
|
-
|
38
|
+
DDcloud::API::Directory.new(self)
|
39
39
|
end
|
40
40
|
|
41
41
|
def image
|
42
|
-
|
42
|
+
DDcloud::API::Image.new(self)
|
43
43
|
end
|
44
44
|
|
45
45
|
def network
|
46
|
-
|
46
|
+
DDcloud::API::Network.new(self)
|
47
47
|
end
|
48
48
|
|
49
49
|
def server
|
50
|
-
|
50
|
+
DDcloud::API::Server.new(self)
|
51
51
|
end
|
52
52
|
|
53
53
|
def account
|
54
|
-
|
54
|
+
DDcloud::API::Account.new(self)
|
55
55
|
end
|
56
56
|
|
57
57
|
def report
|
58
|
-
|
58
|
+
DDcloud::API::Report.new(self)
|
59
59
|
end
|
60
60
|
|
61
61
|
def vip
|
62
|
-
|
62
|
+
DDcloud::API::VIP.new(self)
|
63
63
|
end
|
64
64
|
|
65
65
|
def filter_params
|
data/lib/ddcloud.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'active_support/core_ext/object'
|
2
|
+
require 'active_support/core_ext/string'
|
3
|
+
require 'typhoeus'
|
4
|
+
require 'xmlsimple'
|
5
|
+
require 'hashie'
|
6
|
+
|
7
|
+
require './ddcloud/version.rb'
|
8
|
+
require './ddcloud/exceptions.rb'
|
9
|
+
|
10
|
+
require './ddcloud/connection.rb'
|
11
|
+
require './ddcloud/params.rb'
|
12
|
+
require './ddcloud/xml.rb'
|
13
|
+
require './ddcloud/client.rb'
|
14
|
+
|
15
|
+
require './ddcloud/api/core.rb'
|
16
|
+
require './ddcloud/api/directory.rb'
|
17
|
+
require './ddcloud/api/image.rb'
|
18
|
+
require './ddcloud/api/network.rb'
|
19
|
+
require './ddcloud/api/server.rb'
|
20
|
+
require './ddcloud/api/vip.rb'
|
21
|
+
require './ddcloud/api/account.rb'
|
22
|
+
require './ddcloud/api/report.rb'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: didata_cloud_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juozas Gaigalas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-12-
|
13
|
+
date: 2014-12-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n
|
@@ -107,7 +107,9 @@ extra_rdoc_files: []
|
|
107
107
|
files:
|
108
108
|
- .gitignore
|
109
109
|
- Gemfile
|
110
|
+
- LICENSE
|
110
111
|
- README.md
|
112
|
+
- ddcloud.gemspec
|
111
113
|
- doc/Cloud-REST-API-v09-121313.pdf
|
112
114
|
- doc/deprecated_sections.txt
|
113
115
|
- doc/doc.txt
|
@@ -115,24 +117,24 @@ files:
|
|
115
117
|
- doc/schemas.txt
|
116
118
|
- doc/sections.txt
|
117
119
|
- doc/urls.txt
|
118
|
-
- lib/
|
119
|
-
- lib/
|
120
|
-
- lib/
|
121
|
-
- lib/
|
122
|
-
- lib/
|
123
|
-
- lib/
|
124
|
-
- lib/
|
125
|
-
- lib/
|
126
|
-
- lib/
|
127
|
-
- lib/
|
128
|
-
- lib/
|
129
|
-
- lib/
|
130
|
-
- lib/
|
131
|
-
- lib/
|
132
|
-
- lib/
|
133
|
-
- opsource.gemspec
|
120
|
+
- lib/ddcloud.rb
|
121
|
+
- lib/ddcloud/api/account.rb
|
122
|
+
- lib/ddcloud/api/core.rb
|
123
|
+
- lib/ddcloud/api/directory.rb
|
124
|
+
- lib/ddcloud/api/image.rb
|
125
|
+
- lib/ddcloud/api/network.rb
|
126
|
+
- lib/ddcloud/api/report.rb
|
127
|
+
- lib/ddcloud/api/server.rb
|
128
|
+
- lib/ddcloud/api/vip.rb
|
129
|
+
- lib/ddcloud/client.rb
|
130
|
+
- lib/ddcloud/connection.rb
|
131
|
+
- lib/ddcloud/exceptions.rb
|
132
|
+
- lib/ddcloud/params.rb
|
133
|
+
- lib/ddcloud/version.rb
|
134
|
+
- lib/ddcloud/xml.rb
|
134
135
|
homepage: ''
|
135
|
-
licenses:
|
136
|
+
licenses:
|
137
|
+
- MIT
|
136
138
|
metadata: {}
|
137
139
|
post_install_message:
|
138
140
|
rdoc_options: []
|
@@ -149,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
151
|
- !ruby/object:Gem::Version
|
150
152
|
version: '0'
|
151
153
|
requirements: []
|
152
|
-
rubyforge_project:
|
154
|
+
rubyforge_project: ddcloud
|
153
155
|
rubygems_version: 2.4.5
|
154
156
|
signing_key:
|
155
157
|
specification_version: 4
|
data/lib/opsource.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'active_support/core_ext/object'
|
2
|
-
require 'active_support/core_ext/string'
|
3
|
-
require 'typhoeus'
|
4
|
-
require 'xmlsimple'
|
5
|
-
require 'hashie'
|
6
|
-
|
7
|
-
require './opsource/version.rb'
|
8
|
-
require './opsource/exceptions.rb'
|
9
|
-
|
10
|
-
require './opsource/connection.rb'
|
11
|
-
require './opsource/params.rb'
|
12
|
-
require './opsource/xml.rb'
|
13
|
-
require './opsource/client.rb'
|
14
|
-
|
15
|
-
require './opsource/api/core.rb'
|
16
|
-
require './opsource/api/directory.rb'
|
17
|
-
require './opsource/api/image.rb'
|
18
|
-
require './opsource/api/network.rb'
|
19
|
-
require './opsource/api/server.rb'
|
20
|
-
require './opsource/api/vip.rb'
|
21
|
-
require './opsource/api/account.rb'
|
22
|
-
require './opsource/api/report.rb'
|